I have tried to connect to my local server buts but can't wihout setting the prompt to ALWAYS.
Anybody have a clue? The code is right out of MS BOL.
Here is my code
m_ConnectionString=
"driver={SQL Server};server=MDHOME;database=BasePkg;Data Source=Select * from FD__CLIENT;trusted_connection=Yes"
Set cn = New ADODB.Connection
cn.ConnectionString = m_ConnectionString
'' cn.Properties("Prompt"
= 1
cn.open
The error I get is:
Data sourse name not found and no default driver specified.
If I enable the prompt and get the connection and then inspect the connectstring:
?cn.ConnectionString
Provider=MSDASQL.1;Data Source=Select * from FD__CLIENT;Extended Properties="driver={SQL Server};server=mdhome;database=BasePkg;DSN=BasePkg"
If I use this, i get the same error.
Mike Davis
MSsql, VB and Crystal Reports Developer
Anybody have a clue? The code is right out of MS BOL.
Here is my code
m_ConnectionString=
"driver={SQL Server};server=MDHOME;database=BasePkg;Data Source=Select * from FD__CLIENT;trusted_connection=Yes"
Set cn = New ADODB.Connection
cn.ConnectionString = m_ConnectionString
'' cn.Properties("Prompt"
cn.open
The error I get is:
Data sourse name not found and no default driver specified.
If I enable the prompt and get the connection and then inspect the connectstring:
?cn.ConnectionString
Provider=MSDASQL.1;Data Source=Select * from FD__CLIENT;Extended Properties="driver={SQL Server};server=mdhome;database=BasePkg;DSN=BasePkg"
If I use this, i get the same error.
Mike Davis
MSsql, VB and Crystal Reports Developer