Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQLCMD can't connect to SQL Server Express SP2

 
   Database Forums (Home) -> Connect RSS
Next:  Point in time recovery  
Author Message
Klerman Gutierrez

External


Since: Jan 24, 2008
Posts: 1



(Msg. 1) Posted: Thu Jan 24, 2008 10:37 am
Post subject: SQLCMD can't connect to SQL Server Express SP2
Archived from groups: microsoft>public>sqlserver>connect (more info?)

Hello.
This is my first post here, and I don't know if this question has been
answered before. I didn't see the answer at least in the topics I reviewed.
I have just installed SQL Server Express SP2 in a machine with Windows Vista
Ultimate, but I can't connect to it with SQLCMD nor with OSQL.
I always receive a message like this (I'll translate from spanish):
"Named pipes connection provider can't open a connection to SQL Server"
I have followed the steps suggested in the Microsoft Support Site article
number 914277 "How to configure SQL Server 2005 to allow remote
connections", but still I receive the same messages.
Is there something else I should check in this machine ?
TVMIA,
Klerman Gutierrez

 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
"Rick Byham,

External


Since: Jan 15, 2007
Posts: 80



(Msg. 2) Posted: Thu Jan 24, 2008 10:37 am
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Did you open a port in the firewall?
Did you confirm that the SQL Server Browser Service is running on the Vista
computer?
See http://msdn2.microsoft.com/en-us/library/ms345343.aspx
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Klerman Gutierrez" wrote in message

> Hello.
> This is my first post here, and I don't know if this question has been
> answered before. I didn't see the answer at least in the topics I
> reviewed.
> I have just installed SQL Server Express SP2 in a machine with Windows
> Vista Ultimate, but I can't connect to it with SQLCMD nor with OSQL.
> I always receive a message like this (I'll translate from spanish):
> "Named pipes connection provider can't open a connection to SQL Server"
> I have followed the steps suggested in the Microsoft Support Site article
> number 914277 "How to configure SQL Server 2005 to allow remote
> connections", but still I receive the same messages.
> Is there something else I should check in this machine ?
> TVMIA,
> Klerman Gutierrez
>
>
>

 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
Klerman Gutierrez

External


Since: Jan 24, 2008
Posts: 7



(Msg. 3) Posted: Thu Jan 24, 2008 1:16 pm
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Rick,
Following the procedures you suggested, I configured a fixed port, and it
did the job. Now I can connect to the SQL Server both with OSQL and SQLCMD.
Thank you very much for the help.
 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
Klerman Gutierrez

External


Since: Jan 24, 2008
Posts: 7



(Msg. 4) Posted: Thu Jan 24, 2008 5:05 pm
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Using OSQL or SQLCMD now I can connect to the SQL Server Express in the same
machine where de SQL Server Express is installed, but it fails trying to
connect to it from any other machine in my network.
The error message I get is:
[DBNetLib] Not valid connection
[DBNetLib]ConnectionOpen InvalidInstance()
I have SQL Server 2000 installed in another computer, and I can connect to
it from any other machine including the one where the SQL Server Express is
installed.
Any suggestion where to check, please ?

TVMIA,

Klerman Gutierrez
 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
"Rick Byham,

External


Since: Jan 15, 2007
Posts: 80



(Msg. 5) Posted: Tue Jan 29, 2008 9:25 am
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Suggestions:
1. You didn't specifically say that the SQL Server Browser Service was
running on the SQL Server Express computer. SQL Server Express Setup
configures it to start by default but who knows. Maybe the password expired
or something.

2. Since your error says DBNetLib, I infer that your clients are using the
SQL Server 2000 client network library. Consider upgrading them to the SQL
Server 2005 "SQL Server Native Client". The SQL Server Native Client knows
all about the SQL Server Browser Service which provides the connection point
(ie. port number or named pipe) back to the client.

3. Since you are connecting using DBNetLib, check the Client Configuration
Tools on one of the clients. What protocol is it using? You probably want
TCP. Then test a connection using the connection string tcp:<computername>,
<fixed port number>
If that's not working, then either the server is not listening on TCP (which
really can't be the case since you set a fixed port) or maybe the IP Address
can't be resolved. Try connecting to: tcp:<ipaddress>, <portnumber>
If your clients are trying to connect using named pipes, then maybe name
resolution isn't working.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.


"Klerman Gutierrez" wrote in message

> Using OSQL or SQLCMD now I can connect to the SQL Server Express in the
> same machine where de SQL Server Express is installed, but it fails trying
> to connect to it from any other machine in my network.
> The error message I get is:
> [DBNetLib] Not valid connection
> [DBNetLib]ConnectionOpen InvalidInstance()
> I have SQL Server 2000 installed in another computer, and I can connect to
> it from any other machine including the one where the SQL Server Express
> is installed.
> Any suggestion where to check, please ?
>
> TVMIA,
>
> Klerman Gutierrez
>
>
>
 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
Klerman Gutierrez

External


Since: Jan 24, 2008
Posts: 7



(Msg. 6) Posted: Wed Jan 30, 2008 9:32 pm
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I didnt know I had to specify the server name and the name of the instance.
Now I can connect through OSQL using the "-S servername\sqlexpress"
parameter.

Thank you very much for the help,

Klerman Gutierrez
 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
"Rick Byham,

External


Since: Jan 15, 2007
Posts: 80



(Msg. 7) Posted: Thu Jan 31, 2008 8:48 am
Post subject: Re: SQLCMD can't connect to SQL Server Express SP2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Glad I could help.
--
Rick Byham (MSFT)

This posting is provided "AS IS" with no warranties, and confers no rights.
"Klerman Gutierrez" wrote in message

>I didnt know I had to specify the server name and the name of the instance.
>Now I can connect through OSQL using the "-S servername\sqlexpress"
>parameter.
>
> Thank you very much for the help,
>
> Klerman Gutierrez
>
>
 >> Stay informed about: SQLCMD can't connect to SQL Server Express SP2 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQL Server 2005 Express. Is it possible to connect under u.. - Hello World, Microsoft SQL Server Management Studio Express 9.00.2047.00 From ASP (ASP3) code, coudn't connect SQL Server 2005 Express (on the same local machine) Get error: Cannot connect to ..... Login Failed for user .... Error: 18456 Error occur...

connect to SQL Express 2005 using C# - where can i find resources on how to connect from C# 2003 to SQL Express 2005?

Cannot connect to SQL2005 Express from PHP -

Can't connect to SQL Express using Windows Authentication - Hi I have installed SQL Express with advanced services and all the toys on 2 machines. A desktop and a laptop intending to use the desktop as a "server". I followed instructions to enable the server installation for remote connection by enabli...

Unable to connect to SQL Express DB without using User Ins.. - Hi Here is my scenario: Developing a Windows app in VB on VS2005 with a SQL Express db. There are 2 developers (Developer1 and Developer2) working on this app, only 1 working on it at any one time; we zip and email the source code and mdf/ldf files to...
   Database Forums (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]