N
Nicolas Hilaire
Hi all,
i need to make a connection to a database, but i can't know in advance
what kind of database it will be. That can be an oracle database,
access database, sql server database, and so on ...
My user will create an ODBC DSN and will set it's name in my
application.
Then i will have only this information : the DSN NAME
i thought that odbc can implement a generic way of connection. So i've
create an OleDbConnection object :
Private theOleDbConnection As OleDbConnection
....
theOleDbConnection = New OleDbConnection
theOleDbConnection.ConnectionString = ??
what kind of connection string should i use (i've tried some without
any result) ? is there's an other way to have a generic connection ??
thanks a lot in advance for your help.
Nicolas H.
i need to make a connection to a database, but i can't know in advance
what kind of database it will be. That can be an oracle database,
access database, sql server database, and so on ...
My user will create an ODBC DSN and will set it's name in my
application.
Then i will have only this information : the DSN NAME
i thought that odbc can implement a generic way of connection. So i've
create an OleDbConnection object :
Private theOleDbConnection As OleDbConnection
....
theOleDbConnection = New OleDbConnection
theOleDbConnection.ConnectionString = ??
what kind of connection string should i use (i've tried some without
any result) ? is there's an other way to have a generic connection ??
thanks a lot in advance for your help.
Nicolas H.