If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > connect to sql2000 with 2 instances

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-03, 04:53
its12 its12 is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
connect to sql2000 with 2 instances

I have an sql2000 with 2 instances in the same server:
first instance server1\sqldev
second instance server1\sqlprod
i try the following to connect from ASP:
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=server1\sqldev;uid=test;pwd=test;da tabase=employee;"
and:
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=server1\sqlprod;uid=test;pwd=test;d atabase=employee;"
and:
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=server1;uid=test;pwd=test;database= employee;"
and:
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=10.10.1.2;uid=test;pwd=test;databas e=employee;"
and:
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=10.10.1.2\sqldev;uid=test;pwd=test; database=employee;"

all i get is the error message: sql server is not found
is there any certain setting or another way to connect to the instances?please help
thanks
Reply With Quote
  #2 (permalink)  
Old 10-19-03, 06:20
its12 its12 is offline
Registered User
 
Join Date: Oct 2003
Posts: 3
Dont know
suddenly it works with :
dbstr = "PROVIDER=MSDASQL;driver={SQL Server};server=server1\sqldev;uid=test;pwd=test;da tabase=employee;"

After restarting the sql agent & installing MDAC 2.8 on the IIS Server
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On