Link to home
Start Free TrialLog in
Avatar of ferguslogic
ferguslogic

asked on

Cannot Connect to MSDE 2000 database across the network

I have MSDE 2000 installed.
I just installed the latest version yesterday from Microsofts website (so it is the latest)
Along with this, I have SQL Server 2000 developer edition installed for management of the engine.

I have it running just fine on my local machine.
I used these setup parameters when installing
setup instancename ="instancename" sapwd="mypassword" securitymode=sql

This works fantastic as long as i am connecting to the instance on the local machine.
I was inexperienced at the setup of MSDE prior to today and so when installing I left off the

disablenetworkprotocols=0 switch in the setup command line statement.
So I have effectively disabled my network support.

I am not able to connect to the instance of MSDE now across the network and I need this fixed.
Can anyone tell me how to do this paaalease?

I have ran the svrNetCN.exe utility located in C:\program files\microsoft sql server\80\Tools\Binn and enabled TCP/IP
Support on the default port (thought this would solve my issue but did not)

I stopped and restarted the service multiple times and it still does not work.
I do not have sql client tools installed on the client so i cannot try to connect using the sql client tools to the database.

Internet connection firewall is disabled on both PCs and both PCS are within 10 feet of each other (XP Pro and XP Home peer to peer)

helllllpppppp!!!
Avatar of ferguslogic
ferguslogic

ASKER

An update.

I installed Sql server developer client tools on the peer to peer computer that cannot connect to sql server and whala I am able to connect to sql server using query analyzer or enterprise manager. I simply cannot connect through the application that I have built.  Soooo any ideas.

Here is the connection string

Provider=sqloledb;Data Source=Server\[SQLInstanceName];Initial Catalog=[DBName];User Id=sa;Password=[password]

this connection string works great on my local box but fails miserably across the network.

I have tried this also
Provider=sqloledb;Data Source=\\Server\[SQLInstanceName];Initial Catalog=[DBName];User Id=sa;Password=[password]

Every time I get "invalid connection"

any help is greatly appreciated.
And to finally answer my own question after hours of work...if you do not use the DisableNetworkProtocols=0 option when you run setup you will not be able to connect across the network.

Installing a new instance of sql server with this setup

Setup InstanceName="instancename" Sapwd="password" SecurityMode=sql disablenetworkprotocols=0

resolved the issue and the client connects just fine.

When you do not use the disablenetworkprotocols flag in the setup string query analyzer and enterprise manager will be able to connect remotely but clients will not.

Issue resolved.
Please reissue points to PAQ
I do not understand how to get a refund but I will try
I have posted a request for question deletion and points to be refunded. I was able to answer the question myself after a short time frame.

thank you
ASKER CERTIFIED SOLUTION
Avatar of ee_ai_construct
ee_ai_construct
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial