Advertisement

04.27.2008 at 11:32PM PDT, ID: 23357923
[x]
Attachment Details

Cannot connect to SQL Database using sqlcmd

Asked by techport13 in SQL Server 2005, MS SQL Server, MS Forefront

Tags: Microsoft, SQL Server, 2005

I am getting this error message when I try to connect to SQL Server 2005 Express on another machine:
[error]
>sqlcmd -S MEDIA\SM700_DEMO
HResult 0xFFFFFFFF, Level 16, State 1
SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establi
shing a connection to the server. When connecting to SQL Server 2005, this failu
re may be caused by the fact that under the default settings SQL Server does not
 allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
[/error]

In the SQL Server Surface Area Configuration for the SM700_DEMO, I have enabled "Local and remote connections" and "Using TCP/IP Only".

I can successfully ping the SQL Server machine.

Suggestions?

Start Free Trial
[+][-]04.27.2008 at 11:46PM PDT, ID: 21451946

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, MS SQL Server, MS Forefront
Tags: Microsoft, SQL Server, 2005
Sign Up Now!
Solution Provided By: CutSack
Participating Experts: 2
Solution Grade: B
 
 
[+][-]04.28.2008 at 11:50AM PDT, ID: 21456560

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628