K
Keith Norris
I am having a problem connecting to my SQL Server with the following ASP
code:
set cn = server.createobject("adodb.connection")
cn.connectionstring = "Provider=sqloledb; data source=midatlanticus;
Integrated Security=SSPI"
cn.open
But, if I use the same connection string in a VB program, I connect
successfully. The VB code that works successfully is as follows:
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.ConnectionString = "provider=sqloledb; data source=midatlanticus;
Integrated Security=SSPI"
cn.Open
Please tell me why this connection string will work successfully in VB but
not ASP/VBScript. What am I doing wrong with the ASP version? What do I do
to get a successful connection in the ASP/VBScript version?
Thank you very much!
Keith
code:
set cn = server.createobject("adodb.connection")
cn.connectionstring = "Provider=sqloledb; data source=midatlanticus;
Integrated Security=SSPI"
cn.open
But, if I use the same connection string in a VB program, I connect
successfully. The VB code that works successfully is as follows:
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.ConnectionString = "provider=sqloledb; data source=midatlanticus;
Integrated Security=SSPI"
cn.Open
Please tell me why this connection string will work successfully in VB but
not ASP/VBScript. What am I doing wrong with the ASP version? What do I do
to get a successful connection in the ASP/VBScript version?
Thank you very much!
Keith