all groups > sql server connect > december 2004 >
You're in the

sql server connect

group:

SQL Server and MSDE connection issue


SQL Server and MSDE connection issue duanebender NO[at]SPAM yahoo.com
12/28/2004 11:35:52 AM
sql server connect:
I have SQL Server 2000 running on a Win2000 server, and MSDE 2000
running an XP Pro machine (named ASUS). I also have two client
machines from which I wish to connect to both of these. All 4 machines
are in a workgroup, not in an domain.

I CAN connect to the SQL Server and its databases from any of the other
3 computers, using any client application I've tried: Enterprise
Manager (locally), osql (locally or from the MSDE machine),
IIS/ASP.NET, Access project, and an Enterprise Manager clone called
DBMGR2K. All of these work just fine.

I CANNOT connect to the MSDE server on the XP Pro computer using any of
these tools EXCEPT ONE: From the SQL Server computer, I can connect to
the MSDE server using osql. Specifally, I am succesful using these
osql command lines:

osql -s ASUS -E
osql -s ASUS -U sa

Both the SQL Server and ASUS are set up for mixed mode security, and
both have Named Pipes and TCP/IP protocols enabled.

I think the key to this riddle is the fact that osql will connect from
the SQL Server to ASUS, but Enterprise Manager and DBMGR2K will not,
while osql and DBMGR2K both connect the other direction. In all cases,
when I try to connect to ASUS using Windows Authentication or trusted
connection options, I get a "SQL Server does not exist or access
denied" error. If I try using a userid and password, I get a "not
associated with a trusted SQL Server connection" error.

If I didn't say this already, I can use the DBMGR2K program to log on
to MSDE on ASUS locally. In fact, I ran this program on both machines
side-by-side, and compared all the entries on every tab (again, it's
very much an EM clone). The only difference I found between the two,
other than paths to files, was that the SQL Server computer is running
MDAC 2.7 and the MSDE computer is running MDAC 2.8. Everything else
appears identical.

Any help is greatly appreciated. I've spent almost two days stuck on
this.

Duane
Re: SQL Server and MSDE connection issue Michael O'S
12/30/2004 6:51:20 PM
I know the feeling! Have a look at these sites

http://support.microsoft.com/Default.aspx?scid=kb;en-us;827422&spid=2852&sid=332#7

http://support.microsoft.com/default.aspx/kb/306865

http://support.microsoft.com/default.aspx/kb/307197

Also, a neat utilitly that I found helpful in looking at open ports is

http://download.microsoft.com/download/3/f/4/3f4c6a54-65f0-4164-bdec-a3411ba24d3a/portqryui.exe

I found after looking at the sql server logs, that somehow instances were
not listening and/or not binding to 1433.

I ended up removing msde instance that I could not connect to and
reinstalling making sure to use the DISABLENETWORKPROTOCOLS=0 input
parameter.

After I did this, I could see all instances of msde on any computer from any
computer in my workgroup.

Good Luck!

[quoted text, click to view]

Re: SQL Server and MSDE connection issue duanebender NO[at]SPAM yahoo.com
12/30/2004 8:10:12 PM
Thanks for taking the time to respond. What I finally did was set up a
Windows domain, with the Win2K Server computer as a PDC. I can now
connect to the MSDE instance from all machines. I'm sure it was some
sort of authentication issue, but I still don't understand why osql
would connect to that instance while nothing else would. Again,
thanks.

Duane
AddThis Social Bookmark Button