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
  #41  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM






You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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
  #42  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM






You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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
  #43  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM



You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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
  #44  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM



You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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
  #45  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM



You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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
  #46  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: SQLCMD on SQL cluster - 12-04-2008 , 07:26 PM



You have a FQDN for the server but not a SQL Instance name or the Virtual
server name.


--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Brian Wilkins" <Brian Wilkins (AT) discussions (DOT) microsoft.com> wrote

Quote:
No luck - change the script to:
SQLCMD -S colldb1.datatel.daemen.edu -U datatel -P Hub8/TPO -i
c:\IMMUNIZATION\Immune_Dump.sql -o c:\IMMUNIZATION\DEM_DUMP.TXT -h -1 -Y
57

and I get the same error message.

"Erland Sommarskog" wrote:

Brian Wilkins (bwilkins (AT) daemen (DOT) edu) writes:
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.