I have a delphi application that uses the interbase / firebird database. To consult and write data, I use InterBase Component Panels (IBTable, IBQuery, IBDataset). I'm converting my system to sqlserver / Oracle, but I have thousands of queries that are collected at runtime with SQL statements InterBase / Firebird database specification. Does anyone know any component or tool that makes Parse Interbase -> SQL Server or Interbase-> Oracle commands?
what i need is something like:
Var
Parser: TParser;
OutputSql: String;
Begin
Parser := TParser.Create();
Parser.Text := 'SELECT FIRST 10 CITYNAME FROM TBCITY';
if Firebird then
OutPutSql := Parser.ParseTo('SQLSERVER');
if Oracle then
OutPutSql := Parser.ParseTo('ORACLE');
ComponentAccess.Sql.Text := OutPutSql;
...
Result:
Parser.ParseTo('SQLSERVER');
Will be
'CHOOSE TOP 10 CITIES FROM TEXT'
and
Parser.ParseTo('ORACLE');
Will be
'CHOOSE FAMILY FROM TEXT WHERE ROWNUM <= 10'