Hi all,
I'm writing an application which allows user choose database of SQL Server or MS Access.
My problem is that I must check the choice of user each time I manual with database, if SQL Server, i must create three objects of SQLConnection, SQLDataAdapter, SQLCommandBuilder, else I must create three objects of OLEDB...
I need your solution or your opinion to help me to give a idea to check create them once and use through the solution.
Please ask me if you don't understand my question ?
Thanks !
I'm writing an application which allows user choose database of SQL Server or MS Access.
My problem is that I must check the choice of user each time I manual with database, if SQL Server, i must create three objects of SQLConnection, SQLDataAdapter, SQLCommandBuilder, else I must create three objects of OLEDB...
I need your solution or your opinion to help me to give a idea to check create them once and use through the solution.
Please ask me if you don't understand my question ?
Thanks !