Link to home
Start Free TrialLog in
Avatar of sitijaafar
sitijaafarFlag for Malaysia

asked on

HResult 0x2, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server [2].

I type sqlcmd but get the below error:

HResult 0x7E, Level 16, State 1
VIA Provider: The specified module could not be found.

Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establi
shing a connection to the server. When connecting to SQL Server 2005, this failu
re 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.


What I already did are:
1) enable remote connection on TCP/IP and pipes on surface area configuration
2) change the pipe name to \\.\pipe\sql\query
3) off firewall
Avatar of lof
lof
Flag of United Kingdom of Great Britain and Northern Ireland image

what is the full command you use when executing sqlcmd?
it looks like you are trying to connect through VIA which is different to named pipes and TCP/IP
either you will have to enable VIA as well or use named pipes or TCP/IP
Avatar of Raja Jegan R
>> VIA Provider: The specified module could not be found.

Seems like you have enabled VIA protocol..
If you intend to use VIA, then either the installation of VIA driver is improper or it is corrupted..( Reinstall VIA protocol Drivers again to fix it)

Else disable VIA protocol, Restart SQL Server Services and then check out again..
And if you got the above error in SQLCMD, then just specify the Servername and instancename correctly to make it work..

http://geekswithblogs.net/TimH/archive/2008/03/12/sql-server-2005-error-via-provider-the-specified-module-could.aspx
ASKER CERTIFIED SOLUTION
Avatar of sitijaafar
sitijaafar
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial