DB Connection string using an IP address and DB instance name

I have an application that is used on 2 computers:
appComputer (177.16.177.340) & devComputer (177.16.177.341).
I use a file named AppSettings.xml to set the connection string.
The app computer only has 1 database instance so I used the IP address:
<ConStringX>Database=Clients; Server=177.16.177.340;Uid=This;Pwd=That;</ConStringX>
and it works great.
On the DevComputer I use the computer name and the instance name:
<ConStringX>Database=Clients; Server=DevComputer\Demo;Uid=This;Pwd=That;</ConStringX>
This works as long as I am running the application on the DevComputer.

I  have to be able to run the application from a different server pointing back to where the DB is located.
So how do I change the connection string to use the IP address (177.16.177.341) and the instance name (Demo)

Thanks
LVL 1
n2dwebprogrammerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Om PrakashCommented:
Try:
IPAddress\theInstanceName

Checkfollowing link for more examples:
http://www.connectionstrings.com/sql-server-2005
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Om PrakashCommented:
Above solution might give an error.
Try:
Use just the IP address and not the instance name (177.16.177.341)
Also make sure the "SQL Agent" is running on the box you're trying to connect.
0
n2dwebprogrammerAuthor Commented:
I think this may have solved it. (I had the wrong slash). I have to redeploy DBs to test it - I will let you know soon if it fixed it- thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.