SQLCMD -- Part II
|
(Vadivel Mohanakrishnan) This is the second article on the 3 part series of SQLCMD utility. The target audience is Basic to Intermediate level people. |
|
| Related Articles - For Members.
|
|
Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content
Reader Comments: Post Your Comments/Feedback
RE: SQLCMD -- Part II by Steve Shurts (posted: 10/12/2007 8:20:59 AM) When attempting to run the "sqlcmd -i Message.sql" command, I received 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 was able to get the command to run after adding the name of one of our SQL servers, thusly:
sqlcmd -S -i Message.sql
I am not sure whether this is due to our local configuration or to an error in the article. Just in case other's are trying this.
|