Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Security
»
connectivity issues in SQL Server 2005 with...
connectivity issues in SQL Server 2005 with sqlcmd
Rate Topic
Display Mode
Topic Options
Author
Message
danielr-515211
danielr-515211
Posted Thursday, October 11, 2007 4:05 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, October 19, 2007 1:08 PM
Points: 2,
Visits: 2
what's the deal??? I know I am missing something but I can't figure it out. When I run sqlcmd -E I get a Named Pipes Provider: could not open a connection to SQL Server [2].
when I rund sqlcmd -E -S.\SERVER I get 1>
does this mean that there is a parameter somewhere that specifies default connection, or what? I don't know I am just guessing right now. It is causing a problem with SQL Server service...the error in the application event viewer is Failure Audit: Login failed for user 'NEWMEXICO\Administrator'. [CLIENT: ] error code 18456. And it's annoying...can anyone help???
Thank you,
Daniel
Post #409766
Jack Corbett
Jack Corbett
Posted Friday, October 19, 2007 8:48 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 6:50 AM
Points: 10,613,
Visits: 11,953
I am not sure I understand your problem. What is the code you are running that does not work? Because running sqlcmd -E -S.\Server is connecting to the local server\instance that is what the 1> means. That is where you then execute your T-SQL statements followed by a GO when you have completed the batch.
Jack Corbett
Applications Developer
Don't let the good be the enemy of the best. --
Paul Fleming
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #412842
danielr-515211
danielr-515211
Posted Friday, October 19, 2007 1:13 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, October 19, 2007 1:08 PM
Points: 2,
Visits: 2
I am just trying to connect using the following command
c:\>sqlcmd -E
I have another sql server where this command works. The second sql server fails with this command.
However, if I use the following:
c:\>sqlcmd -E -S.\Server
then I can connect into the second sql server.
This is the only difference I have found between the servers. I wouldn't care either way except that the sql server agent gives an invalid username/password in the application error log and i get dbfaults within the vault, the software that is trying to connect to these two sql servers.
Post #412979
Jack Corbett
Jack Corbett
Posted Friday, October 19, 2007 1:31 PM
SSChampion
Group: General Forum Members
Last Login: Today @ 6:50 AM
Points: 10,613,
Visits: 11,953
I am just trying to connect using the following command
c:\>sqlcmd -E
I have another sql server where this command works. The second sql server fails with this command.
However, if I use the following:
c:\>sqlcmd -E -S.\Server
then I can connect into the second sql server.
In the second example you are connecting to a Named Instance of Sql Server. The ".\Server" essentially means LocalHost\Server. You can install Sql Server 2000 forward on the same machine multiple times using Named Instances. When you install the first one and select Default instance you can use the first example, but when you have a named instance you must include the server name (the ".") and the instance name ("Server"). The instance name follows a "\".
Jack Corbett
Applications Developer
Don't let the good be the enemy of the best. --
Paul Fleming
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #412984
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.