Hema Latha

Hema Latha

  • NA
  • 29
  • 26.6k

I got Network related error

Feb 27 2015 7:22 AM
Hi,

I got an error when i am connecting to remote database through c# code means,

SqlConnection con=new SqlConnection(constr);

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
"


Please help me..

Thanks in advance

Answers (2)