Unix Technical Forum

SQL server connection problem

This is a discussion on SQL server connection problem within the SQL Server forums, part of the Microsoft SQL Server category; --> just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 01:54 PM
Danieltbt05@gmail.com
 
Posts: n/a
Default SQL server connection problem

just installed SQL server 2000 and using my client , i can't locate
the server. I used SQL query analyzer to search but no servers were
found. Error message is as below


Server : Msg17,level 16, state1
[Microsoft][ODBC SQL server driver][DBnetlib] SQL server does not exist

or denied access.


Regards
Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 01:54 PM
helmut woess
 
Posts: n/a
Default Re: SQL server connection problem

Am 13 Nov 2005 08:14:32 -0800 schrieb Danieltbt05@gmail.com:

> just installed SQL server 2000 and using my client , i can't locate
> the server. I used SQL query analyzer to search but no servers were
> found. Error message is as below
>
>
> Server : Msg17,level 16, state1
> [Microsoft][ODBC SQL server driver][DBnetlib] SQL server does not exist
>
> or denied access.
>
>
> Regards
> Daniel


Check your SQL-Server client configuration on the server, if TCP is
enabled. If you did not specify it when installing SQL Server, then TCP is
disabled for security reasons!
You should find this tool in your program list, if not, search for
"SVRNETCN.exe" (should be in C:\Programs\Microsoft SQL
Server\80\Tools\Binn\)

bye,
helmut
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 01:54 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL server connection problem

(Danieltbt05@gmail.com) writes:
> just installed SQL server 2000 and using my client , i can't locate
> the server. I used SQL query analyzer to search but no servers were
> found. Error message is as below
>
>
> Server : Msg17,level 16, state1
> [Microsoft][ODBC SQL server driver][DBnetlib] SQL server does not exist
>
> or denied access.


Which means that ODBC cannot find the SQL Server. There are a number
of possible reasons. The most trivial is that SQL Server is not running.

For other possible reasons check
http://support.microsoft.com/default...;EN-US;q328306.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 01:54 PM
Danieltbt05@gmail.com
 
Posts: n/a
Default Re: SQL server connection problem

Hi, just want to verify that I can login to the SQL server from the
server itself. So does it mean it is really a port or protocol problem
? I'll check the configuration when i'm at home. Thanks

Regards
Daniel


helmut woess wrote:
> Am 13 Nov 2005 08:14:32 -0800 schrieb Danieltbt05@gmail.com:
>
> > just installed SQL server 2000 and using my client , i can't locate
> > the server. I used SQL query analyzer to search but no servers were
> > found. Error message is as below
> >
> >
> > Server : Msg17,level 16, state1
> > [Microsoft][ODBC SQL server driver][DBnetlib] SQL server does not exist
> >
> > or denied access.
> >
> >
> > Regards
> > Daniel

>
> Check your SQL-Server client configuration on the server, if TCP is
> enabled. If you did not specify it when installing SQL Server, then TCP is
> disabled for security reasons!
> You should find this tool in your program list, if not, search for
> "SVRNETCN.exe" (should be in C:\Programs\Microsoft SQL
> Server\80\Tools\Binn\)
>
> bye,
> helmut


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 01:54 PM
Danieltbt05@gmail.com
 
Posts: n/a
Default Re: SQL server connection problem

Hi, does ODBC indicates database driver or protocol issue from your
knowledges ? Thanks

Regards
Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 01:54 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL server connection problem

(Danieltbt05@gmail.com) writes:
> Hi, does ODBC indicates database driver or protocol issue from your
> knowledges ? Thanks


As I said, the message means that the SQL Server could not be found. Which
could be because it is not running, because it does not listening on
the protocol you are trying to use etc. Please refer to the KB article
I gave you a link to.

If you cannot work it out, you will need to provide more details, as
connection problems can have so many reasons, that it's not meaningful
to give a guess without access to the environment.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-29-2008, 01:54 PM
Danieltbt05@gmail.com
 
Posts: n/a
Default Re: SQL server connection problem

Hi, i managed to make it connected by specifying alias in the server.
I'm not sure why ? but after connected i still can't login , another
error came out

Server : Msg17,level 16, state1
[Microsoft][ODBC SQL server driver][TCP/IP sockets] SQL server
does not exist or denied access.


Regards
Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-29-2008, 01:54 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL server connection problem

(Danieltbt05@gmail.com) writes:
> Hi, i managed to make it connected by specifying alias in the server.
> I'm not sure why ? but after connected i still can't login , another
> error came out
>
> Server : Msg17,level 16, state1
> [Microsoft][ODBC SQL server driver][TCP/IP sockets] SQL server
> does not exist or denied access.


That's the same message as in you original post, save for the last
bracket. You still fail connect.

For further assistance, please anser these questions:

Have you verified that SQL Server is running?

Is SQL Server on the same machine you try to connect from?

Which protocols are SQL Server configured for? (You can view this
in the Server Network Utility).

If you changed which protocols SQL Servers uses, did you restart SQL Server
after this?

Is there a firewall on the SQL Server machine?


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-29-2008, 01:54 PM
Danieltbt05@gmail.com
 
Posts: n/a
Default Re: SQL server connection problem

Yes I've check in my server the SQL service is running. No i tried to
connect from another machine. Server is Win2003 standard server and
client is Win2000 prof. Both netlib uses TCP/IP and port 1433. I
configure both named pipe to be the same. Each can ping each other
either by IP or host name. I never change any protocol, uses the
default TCP/IP. As far as i know there is no firewall between them,
unless there is the windows internal firewall security ? is it
possible? . Btw what is alias for ? by using alias i can find the
server host name but not IP . Thanks

Regards
Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-29-2008, 01:54 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL server connection problem

(Danieltbt05@gmail.com) writes:
> Yes I've check in my server the SQL service is running. No i tried to
> connect from another machine. Server is Win2003 standard server and
> client is Win2000 prof. Both netlib uses TCP/IP and port 1433. I
> configure both named pipe to be the same. Each can ping each other
> either by IP or host name. I never change any protocol, uses the
> default TCP/IP. As far as i know there is no firewall between them,
> unless there is the windows internal firewall security ? is it
> possible? .


I Windows Firewall is running on the machine with SQL Server, you will need
to configure the firewall to permit connections to SQL Server.

> Btw what is alias for ? by using alias i can find the
> server host name but not IP . Thanks


Aliases are good when connection by name does not work, and you don't want
to use IP-address and port number all the time.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com