James-R
Dec 23rd, 2006, 07:37 AM
I am trying to make a program for a WM5 Pocket PC.
I want it to use an access db for storing all the data when I tried this:
Dim sqlCon As New Data.SqlClient.SqlConnection()
sqlCon.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=ProStudent.mdb"
'sqlCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\ProStudent.mdb;"
sqlCon.Open()
It said that there was an option error with the connection string.
What am i doing wrong? / What connection string should I use ?
I want it to use an access db for storing all the data when I tried this:
Dim sqlCon As New Data.SqlClient.SqlConnection()
sqlCon.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=ProStudent.mdb"
'sqlCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\ProStudent.mdb;"
sqlCon.Open()
It said that there was an option error with the connection string.
What am i doing wrong? / What connection string should I use ?