D
Dino Buljubasic
Hi,
I would like to build my app so it can connect to SQL Server, Oracle
or mySQL and query data.
Data queries should be parameterized to reduce impact of SQL
Injection.
SQLServer Dataprovider uses named parameters (i.e. @name)
OracleClient Dataprovider uses named parameters (i.e. :name)
mySQL ODBC Dataprovider uses question marks (i.e. ?) on the place of a
parameter (so order of question marks is important)
How do I write my queries easily so they will work with all 3 of these
data providers?
For example how do I write this to work with all tree:
SELECT a1, a2 FROM table1 WHERE a1 = 'blah' AND a2 = 'blahblah'
thank you
_dino_
I would like to build my app so it can connect to SQL Server, Oracle
or mySQL and query data.
Data queries should be parameterized to reduce impact of SQL
Injection.
SQLServer Dataprovider uses named parameters (i.e. @name)
OracleClient Dataprovider uses named parameters (i.e. :name)
mySQL ODBC Dataprovider uses question marks (i.e. ?) on the place of a
parameter (so order of question marks is important)
How do I write my queries easily so they will work with all 3 of these
data providers?
For example how do I write this to work with all tree:
SELECT a1, a2 FROM table1 WHERE a1 = 'blah' AND a2 = 'blahblah'
thank you
_dino_