Tom Holmes Jr.
2007-07-12 02:35:08 UTC
I have copied the SDF (SQL Compact Edition) file to the desktop. I
remember writing code to open to this file, but I can't remember how I did
it. So, here is what I am doing:
Dim oConn As OleDb.OleDbConnection
oConnect = ""
oConnect = oConnect +
"Provider=Microsoft.SqlServer.Mobile.OleDb.3.0;"
oConnect = oConnect + "Data
Source=C:\\PROJECTS\\BRISTOL\\bcmcp.sdf;"
oConnect = oConnect + "Password=mypassword;"
'Instantiate the connectors
oConn = New OleDbConnection()
oConn.ConnectionString = oConnect
'*** Open connection
oConn.Open()
I get this error message:
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.
Just wondering ... can I use OLEDB Connection? I used OLEDB Connection to
open to an Access MDB file.
I want to open to this SDF file which is on the desktop .... NOT the device.
Thanks!
Tom
remember writing code to open to this file, but I can't remember how I did
it. So, here is what I am doing:
Dim oConn As OleDb.OleDbConnection
oConnect = ""
oConnect = oConnect +
"Provider=Microsoft.SqlServer.Mobile.OleDb.3.0;"
oConnect = oConnect + "Data
Source=C:\\PROJECTS\\BRISTOL\\bcmcp.sdf;"
oConnect = oConnect + "Password=mypassword;"
'Instantiate the connectors
oConn = New OleDbConnection()
oConn.ConnectionString = oConnect
'*** Open connection
oConn.Open()
I get this error message:
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.
Just wondering ... can I use OLEDB Connection? I used OLEDB Connection to
open to an Access MDB file.
I want to open to this SDF file which is on the desktop .... NOT the device.
Thanks!
Tom