Delphi Interbase Sql Conversion to Sql Server and Oracle -


i have delphi application uses database interbase / firebird. consult , write data use interbase components palette (ibtable, ibquery, ibdataset). i'm performing conversion of system sqlserver / oracle have thousands of queries assembled @ runtime sql instructions specific of database interbase/firebird. know component or tool makes parse commands interbase -> sql server or interbase-> oracle ?

what need like:

var   parser: tparser;   outputsql: string; begin    parser := tparser.create();    parser.text := 'select first 10 cityname tbcity';     if firebird       outputsql := parser.parseto('sqlserver');     if oracle       outputsql := parser.parseto('oracle');     componentaccess.sql.text := outputsql;    ... 

the result of:

parser.parseto('sqlserver'); 

will be

'select top 10 cityname tbcity'

and

parser.parseto('oracle'); 

will be

'select cityname tbcity rownum <= 10'

1) afaik, libraries anydac, have sql abstraction syntax. may can use feature in sql command text.

2) if assembling sql @ runtime, why not code that:

if firebird   sql.add(...) else if oracle   sql.add(...) ... 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -