Thanks all for your valuable inputs.
In our earlier application, we used SQL Server with stored procedures for many reports. No we are moving away from SPs.
We have developed in SQL Server and now in PostGreSQL. New to SQLite. For few customers, where portability is required, we plan to use SQLite. Complete app with DB in a pendrive / external HDD, which can be used in any computer. Yes we may need to install SQLite drivers, if not available. TopwizProgramming's ODBC API and RunAndWait will be handy in those situations.
We should choose a common minimum features available in all database servers.
Also, We need to find a way to solve the following issues
1. As already pointed out, we need a way to fetch Top N rows ... the syntax differs from SQL Server to PostGreSQL. No idea about SQLite. Is there any common (ansi) way to fetch the top N records? Can this limit be set in a datawindow (graphics mode), that it can translate to equivalent DB ?
2. Computed Columns
In PostGreSQL
Date field Cast(null as date) as field2 returns date as datatype in datawindow, ODBC
In SQL Server
Date field cast(null as date) as field2 returns char(10) as datatype, OLE DB.
returns date as datatype, SNC SQL Native Client
Should go with different dw objects, if required.
Will analyze further in the coming days.
Happiness Always
BKR Sivaprakash