|
-
Aug 14th, 2003, 03:01 AM
#1
Thread Starter
Registered User
How to connect VB.NET to MySQL database?
I'm trying to connect my VB.NET project to MySQL Database. I used ODBCDataAdapter and ODBCConnect, but failed.
Actually I can successfully connect to MySQL Database in VB 6.0 last time using ODBC.
How can I make it in VB.NET?
Please guide, thank you!
-
Aug 14th, 2003, 03:32 AM
#2
Member
When I Connected my SQLserver database I just Added a connection in the "Server Explorer".
Checked that ole db pro.... sql server was setted
checked for the database, name, password
then ok
I did almost same with my MS Access database. Only difference is that I chooced MS Jet 4.0 ole db provider
After that.
Added a dataadapter (dbconnection is created also) and select what info you want
and then right click on your dataadapter and generate a dataset and you should got what you want
Not sure if the info is what you wanted but hopefully it can help some.
-
Aug 14th, 2003, 04:14 PM
#3
Addicted Member
To connect via ODBC you'll need the driver: http://www.mysql.com/products/myodbc/index.html
I'm not sure if there's a way to connect via OLEDB.
-
Aug 15th, 2003, 12:59 AM
#4
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|