REALBasic reporting with SQLite3 DB - sqlite

How do I create a report using SQLite3 DB? I'd appreciate just step by step or pseudo-code.

That's quite a big open-ended question. SQLite is really the built-in REALSQLDatabase class and it inherits from the generic Database class so it works just like every other database class in REALbasic.
There are numerous ways to do a report in RB. The first way is to use the built-in reporting tool in REAL Studio itself. Look for examples in the Example folder that comes with RB.
You could use RSReport from Roth Soft available at http://www.rothsoft.ch/realbasic/rsreport/
You could use On-Target Reports at http://www.ontargetreports.com/
That doesn't answer your question directly because those are the tools involved. Each tool has its strengths and weaknesses so you should check each of them out.
There are tutorials available for all of these tools in the Association of REALbasic Professionals (ARBP) source code repository at http://arbpmembers.org (free registration required to access the repository).

1) Last few years (2013-2015) you can use Valentina Reports to produce PDF/HTML/JPG reports using data from your SQLite database:
on any OS: mac, win, linux
with a lots of API: Xojo, LiceCode, C++, ObjC, C#, Java, PHP, ...
you can produce application with embedded report engine
or you can create application, which connects to Valentina SERVER, which may work as a Report Server.
Valentina Studio Pro allows you to design reports visually, without programming. You can use many tools to design reports: Labels, TextFields, Pictures, BarCodes, Graphics, Shapes, ...
It is a good idea to use Valentina Report Server because of many reasons. For example, during development team members can seat around VServer and design/develop/debug different reports independently.
2) Valentina Server 6.0 is even better, because now it can act as 3 in 1:
- Valentina DB Server
- Valentina SQLite Server
- Valentina Report Server
Thanks to this, you can put SQLite database under VServer, and use it in multi-user way to Update/Search it and to produce reports.
3) Valentina Server can be used free providing 5 connections to Valentina DB and reports and 10 connections to SQLite.
4) Valentina ADKs can be used free as CLIENTS to that Valentina Server
5) Valentina Studio is free totally
6) Valentina Studio Pro, enables report designer. This is a commercial option.

Related

Teradata SQL Assistant: Alternatives {on Windows}

Are there alternatives to Teradata SQL Assistant {on windows}, possibly freeware?
Heidi is great but it does not support Teradata.
What are the pros and cons of the alternatives?
Teradata Studio and Studio Express are the long term replacements for SQL Assistant from Teradata. They are developed around an Eclipse based IDE and are available to download from Teradata Developer Exchange.
Database .NET is a Free universal database manager for Windows All,
It supports most popular databases, including Teradata database.
Not sure if the reason is price, but the latest version of SQL Assistant is downloadable free from Teradata's website:
http://downloads.teradata.com/download/tools/teradata-studio
You don't have to install everything, just pick and choose what you want.

How to Choose a Microsoft SQL Server Edition 2012 as a Developer?

I hope this question isn't too obtuse; however, I couldn't find anything specific. I'm a web-developer and I have an MSDN Subscription that gives me access to any SQL server edition I want. As a developer, I would like to know what I should choose to install on a dev machine based on this criteria (which other developers may relate to):
I need access to all the tools for SQL and T-SQL programming (I think all editions come with this?)
I want it to be efficient--I don't want it to take up too much ram\cpu processing time. My queries will not be very heavy so I'd rather trade off longer queries than to have the server taking up valuable resources.
I am programming for an enterprise sql version hosted somwhere else, but I don't need more than 1 Gigs of space, 1 CPU core support,
I never really worked with reporting tools, but would as a developer (Aka, non-DBA) would I ever need them on a dev machine?
Best integration with VS2013
I know that the SQL Server Developer edition is basically Enterprise, but without the liscence to use it for non-dev purposes. Based on the above criteria is there any sense for me to install it? Or should I choose SQL Express with Advanced Services? Perhaps Web?
Thanks for all your help,
All editions come with all the tools (unless you get into the BI side of things, then I think Express won't come with all of those tools).
In general, the edition won't make your local development environment any different in terms of resource usage. There are a few things that Enterprise / Developer have (like online index rebuild, certain optimizations etc.) that can make some operations more efficient, but these are highly unlikely to impact your day-to-day work or really change the number of resources SQL Server uses (these are very easy to cap through configuration anyway, e.g. if you don't want SQL Server to use more than x GB of memory, you can set that).
If you don't need more than 1 GB / 1 CPU in the ultimate deployment, you should probably develop on Express. This will prevent you from using Enterprise features inadvertently (which can happen if you use Developer). The down-side is that if you later do need features that aren't in Express (say you have another project where you will be deploying to Enterprise), you'll need to add an instance (with or without removing the old one). Given that you have access to MSDN, maybe the best solution is to install two instances - one Express, and one Developer, and then you can target the edition you want by using the appropriate instance locally.
I think that Express with Advanced Services come with these things, but I'm not an SSRS guy, so I'm not sure.
No single aspect of integration with Visual Studio should be edition-dependent.
Also, Web is not an edition that is suitable for your workstation - try to find a license somewhere. This edition is exclusively for web hosts and resellers who offer SQL Server as part of their hosted offerings.

Pdf creation Suggestions

I have a small web application based on asp.net 2010 that manages invoices.
After the invoice is saved, it should automatically generate a pdf file.
which of the following solutions would be fast and easy to incorporate?
Use Sql Server 2008 Reports
Use Crystal Reports 2008 and Crystal Reports 2008 for VS 2010
Use itextsharp to create the pdf file
Use XSLFO to create the pdf file
The point here is I dont know any of the above. Which one is easy and quick to learn and implement. Are there any other solution to achieve this functionality?
The first two options sound a bit heavyweight for your requirements.
You don't say if you require it to be free (open source) or if you are happy to pay for a solution; a quick search found this: ExpertPDF HtmlToPdf Converter
I have to admit that I have never used it but it might be an easy solution if you are already displaying the invoice on your web page.
I would go for XSL-FO as it is open standard and you are not being locked in a proprietary solution. You also have access to visual XSL-FO editors/designers and 3 or 4 high volume server to choose from.
As far as I know, many invoicing statements solutions today use XSL-FO becuse it is very powerful - you can footnotes or very complex pagination, 10-20 output formats, etc.
I personally prefer iTextSharp as it is very flexible as you build the PDF from code as you need it. However as it is a port of the iText open source java library for PDF it is not 100% intuitive (well from a c# perspective)..
However said there are a lot of help blogs and articles.
I have found:-
SQL server 2008 needs a lot of configuration and does not quite give you what you want.
You need to purchase Crystal Reports, however said it is quite a good product
iTextSharp - Free, fairly easy to set up but not 100% intuitive
I have used this and found it tough going although it is possible to get the desired ouput.
edit
For question regarding VS2010, I used it with VS2005 a number of years ago as the basic version came shipped with VS2005. According to the website it appears to integrate into Visual Studio 2010, however this I suspect depends on what version you have.
SAP Crystal Reports can open and edit
files created with SAP Crystal
Reports, version for Visual Studio
2010 (and vice-versa), providing a
fuller set of report design features
compared to SAP Crystal Reports,
version for Visual Studio 2010. SAP
Crystal Reports does not include
tooling to support the Visual Studio
2010 development environment but
developers can use the SAP Crystal
Reports, version for Visual Studio
2010 runtime engine to deploy SAP
Crystal Reports RPT files with all the
extended design features.
i have done something similar with XSLFO - if you know XSLT then XSLFO is very simple to add to XSLT
For me, using Aspose.Words with the mailmerge feature was always the fastest and most flexible/comfortable solution, although not the cheapest.
The super simple way is use third party converter such as ABCPdf, Winnovative PDF Converter. But they cost abount $500 USD.
You said you bought Crystal Report, it can use to generate pdf as well, just use Crystal Report design the pdf template, connect to your database (dataset,datatables). In your code to push data from your database and fill the pdf template finally save as pdf.
But deploy Crystal Report you need merge some modules, otherwise you need install Crystal Report on your server as well.

Clustered search results for .net app on Win '03 / '08

i'm building a .net app using ASP.net 3.5 on win '03 or '08 (not sure yet) using SQL Server 2008.
A major part of the app is building a powerful search function which has to cluster search results similar to this site.
e.g. search for blindness and you see a cluster of results for blindness but also for visually impaired, eye etc.
I'm looking for recommendations for approaches working with off the shelf indexing technology on windows server 2003/2008 (preferably open source).
I've looked at:
Carrot2 - http://search.carrot2.org/stable/search
which looks very powerful but seems to rely on other indexes like Lucene and Solr.
Has anyone any experience working with these technologies on a windows platform? Do they play nicely with IIS?
Many thanks for any assistance.
Ed
There is a c# port of lucene (called lucene.NET) which works perfectly on windows (as you would expect, since it's using .NET).

Using TeraData for not so big applications

Few months back I saw TeraData Express Edition. I have no idea of this beast. I want to know whether it still comes with Express Edition and whether it is a good idea to use this database for Windows based mid-sized apps.
It really depends on what you want to do with this application. From an application perspective, a great weakness of Teradata is that it does not support read committed transaction isolation. If you are attempting to use Teradata as an OLTP database, then you might want to try something else. If you are using it to crunch numbers, then yes, go with it. The one issue is that Teradata Express Edition is not supported that well. Express edition is essentially a snapshot of the database for a certain release. If you find and report a bug, it will take a long time for you to receive a fix. Teradata only releases the express editions once per db release. However (imo), if you buy the real version, you will receive a pretty quick patch which will be rolled into the database software.
I use teradata in my technical support work. I work on database middleware, and Teradata is one of our supported data stores. Define mid-sized? 1-200 transactions per second? I'd stand ANY commonly used database up against that. 10000 tps? Maybe not - maybe you go to the enterprise edition.

Resources