plook
IS-IT--Management
- Apr 1, 2000
- 33
- 0
- 0
Hi there..
I am trying to set up a connection to my database from a different server, but i'm having difficulties.
I was given this code to connect...
"
<%
Set conn = Server.CreateObject("ADODB.Connection"
DSNtemp="DRIVER={SQL Server};SERVER=ServerName;UID=USER;PWD=password;DATABASE=databasename"
conn.open DSNtemp
%>
"
It looks cool, but, can I put the IP of the server instead of the "ServerName" ? If I can't put the IP, what would I need to do in order to connect to a remote DB like that ?
Thanks for your help
Dominic
I am trying to set up a connection to my database from a different server, but i'm having difficulties.
I was given this code to connect...
"
<%
Set conn = Server.CreateObject("ADODB.Connection"
DSNtemp="DRIVER={SQL Server};SERVER=ServerName;UID=USER;PWD=password;DATABASE=databasename"
conn.open DSNtemp
%>
"
It looks cool, but, can I put the IP of the server instead of the "ServerName" ? If I can't put the IP, what would I need to do in order to connect to a remote DB like that ?
Thanks for your help
Dominic