S
serge calderara
Dear all,
Does any one have any idea why an sql statment with INNER
JOIN syntax is working well with odbcprovider but not with
Oledbprovider when accessing an access 2000 database?
here is the code I have used with oledbprovider which fails
Dim monodbc As New
OleDb.OleDbConnection 'Odbc.OdbcConnection
monodbc.ConnectionString = ("Jet OLEDB:Global
Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=1;Data Source='D:\Nomos Net
Suite\Runtime\Config\NetDBConf.mdb';Jet OLEDB:Engine
Type=5;Provider='Microsoft.Jet.OLEDB.4.0';Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security
info=False;Extended Properties=;Mode=Share Deny None;Jet
OLEDB:Encrypt Database=False;Jet OLEDB:Create System
Database=False;Jet OLEDBon't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Global Bulk
Transactions=1")
'"MaxBufferSize=2048;FIL=MS
Access;DSN=TRYME;PageTimeout=5;UID=admin;DBQ=D:\Nomos Net
Suite\Runtime\Config\NetDBConf.mdb;DriverId=25"
monodbc.Open()
Dim momo As OleDb.OleDbDataAdapter
momo = New OleDb.OleDbDataAdapter
Dim sds As OleDb.OleDbCommand
sds = New OleDb.OleDbCommand(Query, monodbc)
momo.SelectCommand = sds
Return momo.SelectCommand.ExecuteReader()
if I use exactly the same thing but with odbcprovider no
problem works ok.
regards
serge
Does any one have any idea why an sql statment with INNER
JOIN syntax is working well with odbcprovider but not with
Oledbprovider when accessing an access 2000 database?
here is the code I have used with oledbprovider which fails
Dim monodbc As New
OleDb.OleDbConnection 'Odbc.OdbcConnection
monodbc.ConnectionString = ("Jet OLEDB:Global
Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=1;Data Source='D:\Nomos Net
Suite\Runtime\Config\NetDBConf.mdb';Jet OLEDB:Engine
Type=5;Provider='Microsoft.Jet.OLEDB.4.0';Jet OLEDB:System
database=;Jet OLEDB:SFP=False;persist security
info=False;Extended Properties=;Mode=Share Deny None;Jet
OLEDB:Encrypt Database=False;Jet OLEDB:Create System
Database=False;Jet OLEDBon't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Global Bulk
Transactions=1")
'"MaxBufferSize=2048;FIL=MS
Access;DSN=TRYME;PageTimeout=5;UID=admin;DBQ=D:\Nomos Net
Suite\Runtime\Config\NetDBConf.mdb;DriverId=25"
monodbc.Open()
Dim momo As OleDb.OleDbDataAdapter
momo = New OleDb.OleDbDataAdapter
Dim sds As OleDb.OleDbCommand
sds = New OleDb.OleDbCommand(Query, monodbc)
momo.SelectCommand = sds
Return momo.SelectCommand.ExecuteReader()
if I use exactly the same thing but with odbcprovider no
problem works ok.
regards
serge