开发者

ASP.net connect to MySql without installing DB

开发者 https://www.devze.com 2023-02-20 11:03 出处:网络
I just want to be able to connect to a remot开发者_开发知识库e MySQL database on my ASP.net c# website running on localhost.

I just want to be able to connect to a remot开发者_开发知识库e MySQL database on my ASP.net c# website running on localhost.

It's so I can grab some records, and insert them into my SQL server database. Do I need to download any drivers? And how do I connect and fetch records?

Thanks


Get the ADO.Net driver for MySQL. This will allow you to connect to a MySQL database and use all of the .Net ADO standard stuff to get your data and put it elsewhere.

The added benefit about using the ADO.Net driver is that you can easily use the same data objects (DataTable, DataRow, etc.) when inserting the data into SQL Server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号