Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


MS SQL Server 2008 R2: SQL Native Client error


MS SQL Server 2008 R2: SQL Native Client error

Author
Message
Feeg
Feeg
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 2001
Hi I'm getting this error when trying to the sqlcmd: command against the instance ...
MS SQL 2008 R2 (10.50.2806.0) SP1 Enterprise Edition (64-bit)
Sqlcmd: Error: Connection failure. SQL Native Client is not installed correctly. To correct this, run SQL Server Setup.
Native client is installed ...
No errors in Logs regarding this error
Browser service is running
I connect from my local laptop to the server via sql server managerment studio ...

MCITP: Database Administrator 2005
MCTS DBA 2008
Feeg
Feeg
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 2001
an update
After investigating MS SQL 2005 tools was installed on the server. It ‘looks’ like MS SQL 2005 was installed on this server and then removed but the tools stayed behind in the D:\Apps\Microsoft SQL Server\90\Tools\binn location.
If you run the SQLCMD in the route folder D:\Apps\Microsoft SQL Server\100\Tools\binn (SQL 2008 R2) version then it works …
By default you are supposed to be able to run this command from any location without issues but it seems that it got confused on which version to run 2005/2008 hence giving the error Werner got last night.
A fix we done: we renamed the 2005 folder to D:\Apps\Microsoft SQL Server\90_1\Tools\binn and then we tested the SQLCMD and it worked.
This sorted out the issue I had ...

MCITP: Database Administrator 2005
MCTS DBA 2008
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search