Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't connect to a SQL 2K instance

Status
Not open for further replies.

ddrake

Technical User
Mar 19, 2003
92
I just recently created an instance on my SQL 2K db box to accomodate our webmaster who needs his data to be separate from the default instance. Now he cannot connect to that instance. We're using dreamweaver btw. In the connection documents, for the server name, used to have it as remedydev, uid=...... The instance is named JACK so we changed the connection document to remedydev\jack, uid=........
Anybody else have similar issues or anything? Thanks!
 
Each instance of sql server will have a different port. On the machine hosting the database, you will need to open the port for that instance.

Click start -> run
Type svrnetcn

At the top of the window, choose the named instance.
In the 'enabled protocols' list, click tcp/ip, and then click the properties button. You will see the port used by SQL Server for that instance.

Change the firewall to open that port.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
And make sure they have a login on the new instance.

-SQLBill

Posting advice: FAQ481-4875
 
Thanks! Didn't know about that utility. Very cool! He's still having an issue connecting, but we're closer!! Here's a generic version of the string used to define the connection:

MM_connMyConnection_STRING = "Provider=SQLOLEDB;Data Source=MyServer\InstanceName:2116;Initial Catalog=my_table;uid=gooduserid;pwd=yadayadayada;
 
I believe the colon in the datasource should be a comma.

Connectionstrings.com said:
Connect via an IP address:

"Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top