Solved

Remote connection to SQL Server with  multiple instances installed

Posted on 2014-04-08
4
293 Views
Last Modified: 2014-05-15
Hi, I have a ecommerce sync utility that I installed for a client.  The utility is written in PHP and connects to his MS SQL 2008 R2 remotely using mssql extensions for php and freetds.

A few weeks ago they moved to a new sql server, changed the instance name, username, and password.

Now, I cannot get a connection.  

Tests from SSH confirm that the IP address/port is open.

The error returned is Login Failed for user 'user',  but we have confirmed several times that I am using the right user/password combination.

I have instructions that they used to set up the connection initially (what settings to use in sql server configuration manager).  They've sent me screenshots of these and they look right.

My question is this . . . .   if they have several instances installed on one SQL Server, how does the server know which instance I am trying to connect to?

Thanks for any help you can give!
0
Comment
Question by:lthames
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39986732
You will specify in your connection which instance to connect to. In the form:

    SERVER_NAME\INSTANCE_NAME
0
 

Author Comment

by:lthames
ID: 39986774
I am using php and freetds for the remote connection (this is on linux) and you don't specify a servername or instance name.

You only specify an ip address and port number.
0
 
LVL 15

Expert Comment

by:tim_cs
ID: 39986861
As long as you are using the correct port number for the specific instance it should be connecting to the right instance.  Did they give you a port number other than 1433?  

Are they able to log on with SSMS using the credentials you have?
0
 

Author Comment

by:lthames
ID: 39987101
Actually, he realized port 1433 is pointing to a different instance.  He is going to change it after hours and see if that fixes it.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now