Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Connection string


Message #1 by Aftab Ahmad <aftab.ahmad@k...> on Wed, 13 Nov 2002 09:41:27 +0100
Hi

 

I have an ASP application on internet server and using sql server 2000
installed at the same machine.

Now i want to get some data from another SQL server 2000 that is owned by an
intranet domain and is behind firewalls.

 

Can any one help me how I get connected with this sql server. Any sample
connection string for such scenario.

 

It will be a great help. Thanks in advance.

 

Aftab


Message #2 by Aftab Ahmad <aftab.ahmad@k...> on Fri, 15 Nov 2002 08:31:22 +0100
Hi 

 

I have an ASP application on internet server and using sql server 2000
installed at the same machine.

Now i want to get some data from another SQL server 2000 that is owned by an
intranet domain and is behind firewalls. 

 

Can any one help me how I get connected with this sql server. Any sample
connection string for such scenario. 

 

It will be a great help. Thanks in advance.

 

 

Aftab

 


Message #3 by "Kim" <kimiwan@k...> on Fri, 15 Nov 2002 17:17:40 +0100
Take a look at this:
http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDB
ProviderForSQLServer

-Kim

> -----Original Message-----
> From: Aftab Ahmad [mailto:aftab.ahmad@k...]
> Sent: 15. november 2002 08:31
> To: ASP Databases
> Subject: [asp_databases] Connection string
>
>
> Hi
>
>
>
> I have an ASP application on internet server and using sql server 2000
> installed at the same machine.
>
> Now i want to get some data from another SQL server 2000 that is
> owned by an
> intranet domain and is behind firewalls.
>
>
>
> Can any one help me how I get connected with this sql server. Any sample
> connection string for such scenario.
>
>
>
> It will be a great help. Thanks in advance.
>
>
>
>
>
> Aftab
>
>
>
>
>
>


Message #4 by "Nadia" <mir_rizwan@h...> on Wed, 20 Nov 2002 08:37:33
Try the following

Dim adoDataConn, selectSQL, RecSet 
Set adoDataConn = CreateObject ("ADODB.Connection")
adoDataConn.Open "DSN=Website; User Id = <user id>; Password=<password>"


  Return to Index