Connecting Tech Pros Worldwide Help | Site Map

still having problem with connection of sql server

Newbie
 
Join Date: May 2007
Posts: 6
#1: Jun 4 '07
hi,

im still having problem with sql server connection. my server is not at the same place, it's at other country. the command that i have used is as below :

<%
Set demoConn = Server.CreateObject("ADODB.Connection")
demoPath="DRIVER={SQLServer};" & _
"SERVER=ip address of server;UID=username;" & _
"PWD=password;DATABASE=database"
demoConn.open demoPath
%>

is it the coding correct and is there any setup i have to be done from my end, to make the connection successful.

thanks
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#2: Jun 4 '07

re: still having problem with connection of sql server


What errors do you get? What language is this?
Newbie
 
Join Date: May 2007
Posts: 6
#3: Jun 5 '07

re: still having problem with connection of sql server


The language that im using is asp.The error is as below :

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]General network error. Check your network documentation.

/prodview.asp, line 7

Thanks
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#4: Jun 5 '07

re: still having problem with connection of sql server


I have moved your post to the ASP forum because I feel that your issue is tide more closely to a problem with ASP rather than SQL Server.
Reply