Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Connecting to remote server

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

Posted - 2013-02-12 : 14:55:43
Please share the error with us.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

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).
Go to Top of Page

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
Go to Top of Page

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.
Go to Top of Page

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 now

Data Source=192.168.1.1\SHAREPOINT;Initial Catalog=Customers_database;Integrated Security=SSPI

Again, 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.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-02-15 : 13:37:35
Here's my blog article on this topic: http://weblogs.sqlteam.com/tarad/archive/2008/05/23/60609.aspx

It's going to be long, but you should be able to resolve it if you go through all of the steps. Trying servername,portnumber would be my first step.

Why are you using an IP address?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

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 does

Data Source=SVR-SBS2011\SHAREPOINT;Initial Catalog=Customers_database;Integrated Security=SSPI

Neither work from the same app installed on a remote machine.
Go to Top of Page

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.
Go to Top of Page
   

- Advertisement -