SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL named instance alias as server name


SQL named instance alias as server name

Author
Message
dr.kusnadi
dr.kusnadi
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 472
Hi,

I've got an old apps, which is pointing a database on a named instance SQL e.g. servername1\instancename.
as part of consolidation, I needed to move the database into a new server with default instance e.g. servername2.
as this is an old apps, the only way to re-point the database is by re-installing, and we want to avoid this.

is there away, where i can use alias/a pointer/an name or other in order to point the apps to the new server (without instance name)?

Thanks in advanced.
Henrico Bekker
Henrico Bekker
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3599 Visits: 4331
Yes, alias will work, or DNS forwarding.

Alias: Servername\Instance2
Port:1433
Protocol: tcp/ip
Servername: Servername
dr.kusnadi
dr.kusnadi
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 472
Hi SSCommitted. thanks for the reply.

I've tested the alias. it'll only work if I setup the alias on server, it doesn't work. only when
i set the alias on the client (my pc) and I can use the alias to connect.

currently the app doesn't have sql configuration manager installed. in order for me to use this alias,
is it a compulsory to install sql configuration manager on the apps server?
dr.kusnadi
dr.kusnadi
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 472
oops I thought ssscommitted is your alias. tx Henrico.
Henrico Bekker
Henrico Bekker
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3599 Visits: 4331
is it a compulsory to install sql configuration manager on the apps server?


No, if set up correctly, it should accept the name as a connection from any source as well.
Try setting up a normal odbc connection to you alias name from the app server to confirm.
heymiky
heymiky
SSC Eights!
SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)

Group: General Forum Members
Points: 921 Visits: 845
You can setup a SQL Alias using a .reg file, here is a sample keep in mind that its from a windows XP client so may need to be modified for Windows 7, Server 2008 etc...

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo]
"AliasName"="DBMSSOCN,ServerName\\instance"
heymiky
heymiky
SSC Eights!
SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)

Group: General Forum Members
Points: 921 Visits: 845
The DNS option (create a cname record to the new server, make sure you rename your old server as well:-) ) is a good shout also providing you named instance name stays the same, i've done this a couple of times and it works well.
Kevi322000
Kevi322000
SSC-Addicted
SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)

Group: General Forum Members
Points: 452 Visits: 136
Alias will only work for one Instance per SQL install, when you try to create multiple instance, and multiple alias it will not work. If anyone knows of a way please let me know (Note i can get one Alias to work, but when installing 2nd Instance with another alias it's does not work) w00t
heymiky
heymiky
SSC Eights!
SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)SSC Eights! (921 reputation)

Group: General Forum Members
Points: 921 Visits: 845
you should be able to create as many aliases as you like i've never seen any restricaition such as 1 per instance, unless we're not talikng about the same thing?
Kevi322000
Kevi322000
SSC-Addicted
SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)SSC-Addicted (452 reputation)

Group: General Forum Members
Points: 452 Visits: 136
I have a active/active cluster set up. One node has an alias on a named instance, same with the other node. When I created another instance of sql it has servername\instnacename name for the 2nd instance, when I create the 2nd alias, it does not work. Only the first instance (alias) works.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search