954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

mysql and oledb .net problems

is this possible, i had to use the mysql class to connect to the database, but i would rather use oledb.

the connection string i used is "Provider=MySQLProv;Data Source=mySQLDB;User Id=myUsername;Password=myPassword"

when i try to connect a popup titled "MySql Data Source Name Setup" always comes up. even if i try entering the login information i fail to connect. Has anyone else experienced this and/or knows the solution?

plazmo
Posting Whiz in Training
207 posts since Aug 2005
Reputation Points: 23
Solved Threads: 16
 

guess this isnt possible, DX

plazmo
Posting Whiz in Training
207 posts since Aug 2005
Reputation Points: 23
Solved Threads: 16
 

This is how I use the OleDb...

Imports System.Data.OleDb


Dim connectString As String

Dim sqlString As String

Dim ObjConnection As OleDbConnection

Dim objCmd As OleDbCommand


connectString = "Provider=SQLOLEDB;Data Source=PFCI-DB1;Initial Catalog=Master_Training;Persist Security Info=True;User ID=mt;Password=training"
sqlString = "Update "

ObjConnection = New OleDbConnection(connectString)
objCmd = New OleDbCommand(sqlString, ObjConnection)
ObjConnection.Open()
objCmd.ExecuteNonQuery()
ObjConnection.Close()

brittboy
Newbie Poster
1 post since Mar 2008
Reputation Points: 10
Solved Threads: 1
 

1) you just bumped 2 years old post
2) you are not using coding tags
3) you did not mention the language you using (i guess it is VB) and we do not know what language plazmo been using in that time

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You