dbTalk Databases Forums  

SQLCMD on SQL cluster

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss SQLCMD on SQL cluster in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Wilkins
 
Posts: n/a

Default SQLCMD on SQL cluster - 11-29-2008 , 02:55 PM






I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck

Any ideas?

thanks

Brian


*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM






Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #6  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #7  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #8  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #9  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #10  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 11-29-2008 , 05:10 PM



Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
Quote:
I developed a SQLCMD batch file that I run on a sql 2005 server . On the
single server copy of 2005 it works fine.

SQLCMD -U loginame -P ourpassword -i c:\IMMUNIZATION\Immune_Dump.sql -o
c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y 57


When I transferred it to a 2 server cluster of sql server 2005 I get the
following error.

HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while
establishing a connection to the server. When connecting to SQL Server
2005, this failure 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.

I went through many of the steps for this error and they all seem to be
already set (ie tcp, named pipes etc...) - no luck
I guess you need to specify the server name with the -S option. This
is particularly obvious, if you run SQLCMD on one node in the cluster,
and SQL Server is right now running on the second.

But even if you run SQLCMD on the active node, I believe you need
to specify the server, as the server name is not the same as the
machine name.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.