H
Herby
Im trying to use prepared SQL and need to support both Oracle and SQL
server. Im only dealing with the abstraction - i.e. DbConnection
object.
When using DbParameters, for Oracle i have to use :myVar but for SQL
Server i have to use @myVar. So the abstraction breaks down here.
Consequently i need to ask "What database server are you?" to then
prefix the correct parameter marker character( bring back the ? ).
Iv checked the DbConnection object and there do not seem to be any
appropriate methods, whereby the provider can override some method
which will return the identity.
How best can i determine the type of the DBMS i am currently connected
too?
I do not want to burden the user with having to pass across some
identity...
Thanks.
server. Im only dealing with the abstraction - i.e. DbConnection
object.
When using DbParameters, for Oracle i have to use :myVar but for SQL
Server i have to use @myVar. So the abstraction breaks down here.
Consequently i need to ask "What database server are you?" to then
prefix the correct parameter marker character( bring back the ? ).
Iv checked the DbConnection object and there do not seem to be any
appropriate methods, whereby the provider can override some method
which will return the identity.
How best can i determine the type of the DBMS i am currently connected
too?
I do not want to burden the user with having to pass across some
identity...
Thanks.