Hi,
I'm writing an application which reads a file, and inserts records into either a SQL server database or a MySQL database. The table structures are the same in each database.
My first thought was to use ODBC to connect to the different databases. But one further reading it looks like these are being discontinued.
So then I started to look at ADO .NET
I have found the System.Data.SqlClient to connect to the SQL server database
and I have found a MySql.Data.MySqlClient to connect to the MySQL database.
To insert the rows from my file do I have to write seperate code for each ADO .NET driver? Or am I just missing something here? Just a little confused.
Thanks
MJ
I'm writing an application which reads a file, and inserts records into either a SQL server database or a MySQL database. The table structures are the same in each database.
My first thought was to use ODBC to connect to the different databases. But one further reading it looks like these are being discontinued.
So then I started to look at ADO .NET
I have found the System.Data.SqlClient to connect to the SQL server database
and I have found a MySql.Data.MySqlClient to connect to the MySQL database.
To insert the rows from my file do I have to write seperate code for each ADO .NET driver? Or am I just missing something here? Just a little confused.
Thanks
MJ