Click here to Skip to main content
15,912,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to connect sql server 2008 from another system? if i try to connect sql from another system it shows the error

"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

this is my connection string
Server="192.168.1.5/ADMIN";initial catalog=HMS; User ID=sa; Password=xxxx; Integrated Security=True

192.168.1.5- Another systems IP number
Posted

The server should be "192.168.1.5\ADMIN" , also named pipe connection requires you to be authenticated first to be able to connect to the computer before connecting to the sql server.
 
Share this answer
 
try to check whether remote connection are allowed or not on SQL server on which you want to connect.
allow remote connections
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900