0

I just want to be able to connect to a remote 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

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, I've downloaded and installed it, but using MySql.Data; gives red squiggle. Do I need to add a reference or DLL or something?
Ah added the DLL's manually with reference now, working, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.