SQL differences between SqlServer and Oracle
Posted: Tue 07 Dec 2004 19:30
I have an application which should be working with SqlServer and Oracle.
Why do I need Unidirect? Isn't it the same as using the interfaces IDBConnection and IDBCommand?
Or does it solve Sql differences?
A query like 'select * from sometable where somedatecol < getdate()' will only work with SqlServer, and 'getdate()' should be replaced by 'sysdate' to make it work with Oracle. And this is only a simple issue. How about other sqlcommands like 'update tblA set a.col1 = b.col3, a.col2 = b.col from tblA as a, tblB as b where etc...'. This will never work on an Oracle database. Even using a UniCommand I cannot have a common sourcecode for both databases. Or don't I understand the Unidirect product?
Why do I need Unidirect? Isn't it the same as using the interfaces IDBConnection and IDBCommand?
Or does it solve Sql differences?
A query like 'select * from sometable where somedatecol < getdate()' will only work with SqlServer, and 'getdate()' should be replaced by 'sysdate' to make it work with Oracle. And this is only a simple issue. How about other sqlcommands like 'update tblA set a.col1 = b.col3, a.col2 = b.col from tblA as a, tblB as b where etc...'. This will never work on an Oracle database. Even using a UniCommand I cannot have a common sourcecode for both databases. Or don't I understand the Unidirect product?