.net - C# Exception when remotely connection to SQL Server 2005 instance -
trying connect sql server 2005 instance remotely getting following exception:
a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified)
have checked , server enabled accept remote connections. connection string i'm using in .net looks this:
data source=serverip\instance;initial catalog=databasename;user id=username;password=password;
any ideas? thank :)
you might want try quick telnet tcp port 1433 of server see if can establish connection way.
telnet remote_name_or_ip 1433
if can't, know it's @ network layer, , can start checking things windows firewall or other network pieces might in way. (you need access via udp port 1434.)
Comments
Post a Comment