Groups | Blog | Home
all groups > sql server connect > october 2003 >

sql server connect : Usage of DNS in connection strings



Gé_Brander
10/14/2003 10:31:12 PM
Hi,

No we are using connection strings like
MACHINE_NAME\INSTANCE_NAME. This is not very flexible
when we need to move the databases from one
machine/instance to another machine/instance.

What I would like is as follow:
Create a DNS entry for example: PRODAPP1 - name voor
Production environment for Application 1
Pointing to Machine 1 instance 1 on port 4001

When we need to move a database to another Machine we
only need to change the DNS entry to point to for example
Machine 3 instance 2 on port 6002.

How do I configure this on the client side?
Can I put PRODAPP1 in the connection string and will
everything go fine? Or am I missing something that will
make this impossible?

I will not be making use of any other protocol than
TCP/IP.

Thanks in advance!
Gé_Brander
10/15/2003 1:28:00 AM
The point is that we do not want to change DSN entry's on=20
workstations and servers. We want to install only once a=20
DSN and after that if there is a change, we only need to=20
change the DNS entry on de DNS server.
We are using this principle already for Sybase=20
connections in the SQL.INI. I was wondering, if this is=20
possible for SQL Server too, and how.

[quoted text, click to view]
Allan Mitchell
10/15/2003 8:01:47 AM
Can you not achieve the same thing using Cliconfg ?
In here you create an Alias to whatever server you want and call it whatever
you want. You can then use the "Friendly name" from there.

"Cliconfg.exe is part of Microsoft Data Access Component (MDAC). If
Cliconfg.exe is not installed on your computer, you can install it by
running Sqlredis.exe from the SQL Server 2000 installation files.
Sqlredis.exe is in the \x86\Other folder on the SQL Server 2000 CD. For
additional information about SQL Server 2000 Setup, click the following
article number257716 to view the article257716 in the Microsoft Knowledge
Base"

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

AddThis Social Bookmark Button