Database compatability

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am writing an application that I want to work with either a SQL Server
2000 database or an Oracle database.

All of the SQL statements will be coded into the application itself - I do
not want to use stored procedures. My question is this - is there a good book
or other reference material available that will help me ensure that the SQL I
write is compatible with both SQL Server and Oracle? My concern is around
datatypes and in particular manipulating dates within SQL code.

Thanks for any advice given
 
¤ Hi,
¤
¤ I am writing an application that I want to work with either a SQL Server
¤ 2000 database or an Oracle database.
¤
¤ All of the SQL statements will be coded into the application itself - I do
¤ not want to use stored procedures. My question is this - is there a good book
¤ or other reference material available that will help me ensure that the SQL I
¤ write is compatible with both SQL Server and Oracle? My concern is around
¤ datatypes and in particular manipulating dates within SQL code.
¤
¤ Thanks for any advice given

I'm not aware of any reference material that identifies the differences so you will likely need to
digest both PL/SQL and Transact-SQL.

However, if all SQL statements are coded in the application there is practically no chance for
compatibility, that is unless you use the simplest of data access methods. Your chances are far
better with stored procedures since in many instances the data access layer or database server
handles the database specific implementation features.

With respect to the handling of dates in a SQL statement which is passed to the database server for
execution, Oracle typically requires that you use a function called TO_DATE for inserts and updates.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top