I am trying to connect to a secured access 2000 mdb using vb.net. I have an app.config file that has the following connection string:-
<add key="SqlConnectionString" value="User ID=karen;pwd=karen;Data Source=C:\Development\EPOSImport\EPOSImport2000.mdb;Mode=Read/Write;Jet OLEDB:System database=l:\cas\system.mdw"/>
When I try to run the app, I get errors like:
Keyword not supported: Mode or if this is removeed:
Keyword not supported: Jet OLEDB:System database
I am using the following code to get to the data:
ssql = "select max(tblbatchesprocessed.id) as maxbatchid" & _
" from tblbatchesprocessed;"
Dim myConnrsgetbatchinfo As SqlConnection
myConnrsgetbatchinfo = New SqlConnection(ConfigurationSettings.AppSettings("SqlConnectionString"))
Dim myAdapterrsgetbatchinfo As New SqlDataAdapter(ssql, myConnrsgetbatchinfo)
myConnrsgetbatchinf
pen()
Dim myDSrsgetbatchinfo As New DataSet
Dim myDRrsgetbatchinfo As DataRow
myAdapterrsgetbatchinfo.Fill
(myDSrsgetbatchinfo, "myDSrsgetbatchinfo")
Can anyone out there tell me where I am going wrong??
Regards,
Alan
<add key="SqlConnectionString" value="User ID=karen;pwd=karen;Data Source=C:\Development\EPOSImport\EPOSImport2000.mdb;Mode=Read/Write;Jet OLEDB:System database=l:\cas\system.mdw"/>
When I try to run the app, I get errors like:
Keyword not supported: Mode or if this is removeed:
Keyword not supported: Jet OLEDB:System database
I am using the following code to get to the data:
ssql = "select max(tblbatchesprocessed.id) as maxbatchid" & _
" from tblbatchesprocessed;"
Dim myConnrsgetbatchinfo As SqlConnection
myConnrsgetbatchinfo = New SqlConnection(ConfigurationSettings.AppSettings("SqlConnectionString"))
Dim myAdapterrsgetbatchinfo As New SqlDataAdapter(ssql, myConnrsgetbatchinfo)
myConnrsgetbatchinf
Dim myDSrsgetbatchinfo As New DataSet
Dim myDRrsgetbatchinfo As DataRow
myAdapterrsgetbatchinfo.Fill
(myDSrsgetbatchinfo, "myDSrsgetbatchinfo")
Can anyone out there tell me where I am going wrong??
Regards,
Alan