Author |
Topic |
J Trahair
Starting Member
15 Posts |
Posted - 2013-02-12 : 14:13:38
|
Hi. I have a SBS server with SQL Express 2008 and a W7 Pro workstation connected on a network. I have repeatedly followed instructions from various sources about enabling the TCP/IP and configuring the Windows firewall for port 1433.My app connects to the server when the app is installed on the server, but the app installed on the workstation does not. The connection string is Data Source=SVR-SBS2011\SHAREPOINT;Initial Catalog=Customers_database;Integrated Security=SSPI and the sql installation is Windows authenticated.Do I need a different connection string?Any help gratefully received. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
J Trahair
Starting Member
15 Posts |
Posted - 2013-02-13 : 04:23:00
|
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)The connection string works when invoked from the app installed on the server. And the SQL Server is configured to allow remote connections (according to several sets of instructions). |
|
|
djj55
Constraint Violating Yak Guru
352 Posts |
Posted - 2013-02-13 : 12:04:24
|
This is a guess but, have you tried quotes around the server\instance? or possibly []?djj |
|
|
Peter99
Constraint Violating Yak Guru
498 Posts |
Posted - 2013-02-15 : 12:21:12
|
On Database server properties, make sure Remote connection allowed is checked. |
|
|
J Trahair
Starting Member
15 Posts |
Posted - 2013-02-15 : 12:41:49
|
The allow remote connection box was checked already. The connection string is nowData Source=192.168.1.1\SHAREPOINT;Initial Catalog=Customers_database;Integrated Security=SSPIAgain, this works from the app installed on the C drive of the server, but not from a network computer. Is the connection string good? Can anyone successfully connecting to a remote server please share their connection strings?Thank you. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
J Trahair
Starting Member
15 Posts |
Posted - 2013-02-17 : 11:35:24
|
Why an IP address - it works when run from the app installed on the server. But then, so doesData Source=SVR-SBS2011\SHAREPOINT;Initial Catalog=Customers_database;Integrated Security=SSPINeither work from the same app installed on a remote machine. |
|
|
James K
Master Smack Fu Yak Hacker
3873 Posts |
Posted - 2013-02-17 : 12:33:51
|
The link in Tara's post to the MSDN blog is very detailed and guides you through the steps you need to do to figure precisely this problem - namely, you are able to connect from the server box, but not from a remote machine. Allowing remote connections in the server settings is just one of the pieces of the puzzle. It could be any number of other things from network connectivity to some other incorrect setting or firewall setting, or something else. |
|
|
|