SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Connecting to remote server
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

J Trahair
Starting Member

15 Posts

Posted - 02/12/2013 :  14:13:38  Show Profile  Reply with Quote
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

USA
37157 Posts

Posted - 02/12/2013 :  14:55:43  Show Profile  Visit tkizer's Homepage  Reply with Quote
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 - 02/13/2013 :  04:23:00  Show Profile  Reply with Quote
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

USA
337 Posts

Posted - 02/13/2013 :  12:04:24  Show Profile  Reply with Quote
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

494 Posts

Posted - 02/15/2013 :  12:21:12  Show Profile  Reply with Quote
On Database server properties, make sure Remote connection allowed is checked.
Go to Top of Page

J Trahair
Starting Member

15 Posts

Posted - 02/15/2013 :  12:41:49  Show Profile  Reply with Quote
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

USA
37157 Posts

Posted - 02/15/2013 :  13:37:35  Show Profile  Visit tkizer's Homepage  Reply with Quote
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 - 02/17/2013 :  11:35:24  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

3719 Posts

Posted - 02/17/2013 :  12:33:51  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000