Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: NEED HELP!!! with connecting remote SQL


Message #1 by "James Kim" <james@k...> on Wed, 20 Mar 2002 17:36:55
Hello fellows,

I have to connect to a remote SQL and get data from there which is settled 
in the other server.  I tried with the IP address, but it didn't work.
How can I perform this process?
I'm seeking for your HELP desperately!!

Here is the code I used for connection.(IP address in the data source)

<!-- METADATA TYPE="typelib" 
              FILE="C:\Program Files\Common Files\System\ado\msado15.dll" -
->
<%
  Dim objConn
  Set objConn = Server.CreateObject("ADODB.Connection")
  objConn = "Provider=SQLOLEDB; data source=000.000.0.000; " & _
            "Initial Catalog=opss; User ID=sa"
%>
Message #2 by "Steven Broos" <steven.broos@s...> on Wed, 20 Mar 2002 18:42:00 +0100
try this:

objConn = "Driver={SQL
Server};Server=000.000.000.000;Database=myDatabaseName;Uid=myUsername;Pwd=my
Password;"
Maybe the IP-address has to be between curly brackets liek this:
server={000.000.000.000}

Let me know if this works, cause I'll be needing it too in de near future
:-)

Greetz,

Steven


-----Original Message-----
From: James Kim [mailto:james@k...]
Sent: woensdag 20 maart 2002 17:37
To: ASP Databases
Subject: [asp_databases] NEED HELP!!! with connecting remote SQL



Hello fellows,

I have to connect to a remote SQL and get data from there which is settled
in the other server.  I tried with the IP address, but it didn't work.
How can I perform this process?
I'm seeking for your HELP desperately!!

Here is the code I used for connection.(IP address in the data source)

<!-- METADATA TYPE="typelib"
              FILE="C:\Program Files\Common Files\System\ado\msado15.dll" -
->
<%
  Dim objConn
  Set objConn = Server.CreateObject("ADODB.Connection")
  objConn = "Provider=SQLOLEDB; data source=000.000.0.000; " & _
            "Initial Catalog=opss; User ID=sa"
%>
_____________________________________________________________________
// free anonymous email || forums \\ subZINE || anonymous browsing
            subDIMENSION -- http://www.subdimension.com

Message #3 by "James Kim" <james@k...> on Wed, 20 Mar 2002 20:35:24
Hi Steven,

I tried with and without the curly brackets for server's IP address,
neither worked out.
Is there any other coding I can try with?
Thanks.
Message #4 by "Ken Schaefer" <ken@a...> on Thu, 21 Mar 2002 15:38:28 +1100
www.able-consulting.com/ado_conn.htm

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "James Kim" <james@k...>
Subject: [asp_databases] Re: NEED HELP!!! with connecting remote SQL


: I tried with and without the curly brackets for server's IP address,
: neither worked out.
: Is there any other coding I can try with?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index