Advertisement

08.01.2008 at 03:57AM PDT, ID: 23613739
[x]
Attachment Details

sql server could not connect on the remote server?

Asked by logudotcom in Active Server Pages (ASP), MS SQL Server

i have the below code to connect the sql server on my asp web application, it is not connecting, it gives me the error,

my db connect
================
 Set ObjConn      = Server.CreateObject ("ADODB.Connection")
   Set ObjRs      = Server.CreateObject("ADODB.Recordset")

   ObjConn.Open "Provider=SQLOLEDB; Data Source=ip address; Initial Catalog=dbname; User Id=testxxx; Password=xxxx;"
   ObjRs.ActiveConnection = ObjConn

ERROR
==============
Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Invalid Instance()).]Invalid connection.

/test/staging/includes/dbConnect.asp, line 21
Start Free Trial
[+][-]08.01.2008 at 04:13AM PDT, ID: 22137091

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), MS SQL Server
Sign Up Now!
Solution Provided By: jogos
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628