Hello,
I'm a visual foxpro programmer. As database I use SQL server. For the connection between SQL server and VFP 6.0 I use a ODBC connection. This means that I have to make these ODBC connection on every computer where my program is running.
To solve this problem I tought to use ADO instead of ODBC.
I run the following code
oado =createobject('adodb.connection')
oado.connectionstring = "driver= {SQL server};server=
NTSERVER;uid=sa;pwd=mypassword;"
oado.open
When I run this code I get the following error at the last line (oado.open)
OLE|dispatch exception code 0 frm Microsoft OLE DB
Provider for ODBC drivers: [Microsoft][ODBC driver
manager]
Data source name not found and no default driver
specified.
Can somebody help me with these error ?
Thanks for your time and answer.
Devriendt Nico
Informat CV
Informat@unicall.be
I'm a visual foxpro programmer. As database I use SQL server. For the connection between SQL server and VFP 6.0 I use a ODBC connection. This means that I have to make these ODBC connection on every computer where my program is running.
To solve this problem I tought to use ADO instead of ODBC.
I run the following code
oado =createobject('adodb.connection')
oado.connectionstring = "driver= {SQL server};server=
NTSERVER;uid=sa;pwd=mypassword;"
oado.open
When I run this code I get the following error at the last line (oado.open)
OLE|dispatch exception code 0 frm Microsoft OLE DB
Provider for ODBC drivers: [Microsoft][ODBC driver
manager]
Data source name not found and no default driver
specified.
Can somebody help me with these error ?
Thanks for your time and answer.
Devriendt Nico
Informat CV
Informat@unicall.be