AlexTeslin
Registered User.
- Local time
- Today, 13:13
- Joined
- Jul 10, 2008
- Messages
- 55
Hi,
I wrote a module which connects to Jet database (Access) through ADO and runs a query. The code runs only when i import those tables from a SQL server. When I try to link those tables (so that every time code runs a query generates updated results) I get "ODBC Connection to Server Failed" error. The connection code lookes like this:
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\MyFolder\MyAccessFile.mdb;"
Set rst = New ADODB.Recordset
rst.CursorLocation = adUseClient
rst.Open "Resp_Create_Users", cn, adOpenKeyset, adLockPessimistic, _
adCmdTable
I am not sure whether I should try to link tables through access OR should I try to connect straight to Microsoft SQL Server? I heard that connecting directly to Server improves the performance, but I don't know by how much? If it does improves greatly, then perhaps I should consider the latter option? Also whatever is easier to implement?
Any suggestions will be much appreciated
Thanks
I wrote a module which connects to Jet database (Access) through ADO and runs a query. The code runs only when i import those tables from a SQL server. When I try to link those tables (so that every time code runs a query generates updated results) I get "ODBC Connection to Server Failed" error. The connection code lookes like this:
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\MyFolder\MyAccessFile.mdb;"
Set rst = New ADODB.Recordset
rst.CursorLocation = adUseClient
rst.Open "Resp_Create_Users", cn, adOpenKeyset, adLockPessimistic, _
adCmdTable
I am not sure whether I should try to link tables through access OR should I try to connect straight to Microsoft SQL Server? I heard that connecting directly to Server improves the performance, but I don't know by how much? If it does improves greatly, then perhaps I should consider the latter option? Also whatever is easier to implement?
Any suggestions will be much appreciated
Thanks