Leena_A
09-14-2000, 06:42 AM
Hi!
I had written the following code in a program which is giving an error.
The code:
---------
dim cn as connection
dim rs as recordset
Public Sub Form_Load()
set cn=new connection
cn.open "Provider=SQLOLEDB;server=serverlab2;uid=sa;pwd="
cn.defaultdatabase="pubs"
set rs=new recordset
rs.open "Authors",cn,adopenkeyset,adlockoptimistic
End Sub
The error:
----------
Run-time error '-2147467259 (80004005)'
[Microsoft][ODBC Driver Manager] Data Source Name not found and no default driver specified
What could be possibly wrong?
TIA
Leena
I had written the following code in a program which is giving an error.
The code:
---------
dim cn as connection
dim rs as recordset
Public Sub Form_Load()
set cn=new connection
cn.open "Provider=SQLOLEDB;server=serverlab2;uid=sa;pwd="
cn.defaultdatabase="pubs"
set rs=new recordset
rs.open "Authors",cn,adopenkeyset,adlockoptimistic
End Sub
The error:
----------
Run-time error '-2147467259 (80004005)'
[Microsoft][ODBC Driver Manager] Data Source Name not found and no default driver specified
What could be possibly wrong?
TIA
Leena