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


Rename instance name in SQL Server 2008 R2


Rename instance name in SQL Server 2008 R2

Author
Message
Jared Karney
Jared Karney
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35953 Visits: 3703
ndevr (5/14/2012)
whats is the best practice for prod server Named Instance or Default instance? Please suggest (Pros and cons)

Thanks!

Personally, I find no benefit to having a named instance if you only will have 1 instance. If you have more than 1 instance, it is up to you whether or not to have 1 default and other named or just to make them all named. Really, there aren't many general pros and cons.

Thanks,
Jared
PFE - Microsoft
SQL Know-It-All
How to post data/code on a forum to get the best help - Jeff Moden
RBarryYoung
RBarryYoung
SSC Guru
SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)

Group: General Forum Members
Points: 80842 Visits: 9519
I always use named instances, because I never know for sure if I may need to add another instance (permanently or temporarily) on the current server.

Since, as already noted, you cannot rename them, I find it easier to just give them all unique names. That way, if I ever need to have two instances temporarily reside on the same server, it's no problem.

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Jared Karney
Jared Karney
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35953 Visits: 3703
RBarryYoung (5/14/2012)
I always use named instances, because I never know for sure if I may need to add another instance (permanently or temporarily) on the current server.

Since, as already noted, you cannot rename them, I find it easier to just give them all unique names. That way, if I ever need to have two instances temporarily reside on the same server, it's no problem.
Just curious... What changes with your scenario if you have to add an instance? I, personally, still don't see any issues. If you have to have temporarily reside on the same server, there is still no issue with 1 named and 1 default.

Thanks,
Jared
PFE - Microsoft
SQL Know-It-All
How to post data/code on a forum to get the best help - Jeff Moden
RBarryYoung
RBarryYoung
SSC Guru
SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)SSC Guru (80K reputation)

Group: General Forum Members
Points: 80842 Visits: 9519
SQLKnowItAll (5/14/2012)
RBarryYoung (5/14/2012)
I always use named instances, because I never know for sure if I may need to add another instance (permanently or temporarily) on the current server.

Since, as already noted, you cannot rename them, I find it easier to just give them all unique names. That way, if I ever need to have two instances temporarily reside on the same server, it's no problem.
Just curious... What changes with your scenario if you have to add an instance? I, personally, still don't see any issues. If you have to have temporarily reside on the same server, there is still no issue with 1 named and 1 default.


If I am moving it from another server, then I don't have to give it a new instance name, it already has one. Since I name the instances (as opposed to the server names, which are under networking's control), then I always know what they are, no matter what server-name they are running on. And if two or more have to co-exist for a while (happens all the time), then I don't have to worry about changing the instance names.

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Jared Karney
Jared Karney
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35953 Visits: 3703
RBarryYoung (5/14/2012)
SQLKnowItAll (5/14/2012)
RBarryYoung (5/14/2012)
I always use named instances, because I never know for sure if I may need to add another instance (permanently or temporarily) on the current server.

Since, as already noted, you cannot rename them, I find it easier to just give them all unique names. That way, if I ever need to have two instances temporarily reside on the same server, it's no problem.
Just curious... What changes with your scenario if you have to add an instance? I, personally, still don't see any issues. If you have to have temporarily reside on the same server, there is still no issue with 1 named and 1 default.


If I am moving it from another server, then I don't have to give it a new instance name, it already has one. Since I name the instances (as opposed to the server names, which are under networking's control), then I always know what they are, no matter what server-name they are running on. And if two or more have to co-exist for a while (happens all the time), then I don't have to worry about changing the instance names.
I still don't understand, I guess. If you move a default instance to another machine, you can still make it the default instance. Are you saying, maybe, that in your case you probably already have a default instance on the "new" server and therefore can't move a default instance to that machine easily or have to add a name to it? In that case, I understand. I am not arguing, I am just trying to understand since I know you have more experience than I.

Thanks,
Jared
PFE - Microsoft
SQL Know-It-All
How to post data/code on a forum to get the best help - Jeff Moden
freermottram
freermottram
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 1
You are talking about naming conventions, which are best practice in my book. Default names shouldn't be used in production envs for a few reasons:

1. It avoids any clashes (such as moving the default instance to a server already running a default instance)

2. It can describe more fully the instance

3. Instances can be managed

4. Default names for anything are more vulnerable to attack


I also change the default port whenever it's feasible.


The only 2 real reasons I can see for using the default instance are:

1. Dev environments where you just want to connect to a DB

2. You need to allow others to easily discover the instance

I think a default instance name says "hey I'm just a plain old vanilla instance and you're free to mess around with me". If you name it something descriptive, people are a lot less likely to mess because they think the instance has a specific role and has been set up for that role. If you see an instance called ACCOUNTS, you'll think more than twice about changing anything!
yoftee47
yoftee47
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 0
Thank you a lot. keep it up.:-D
sqlguy80
sqlguy80
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1248 Visits: 371
Hi,

If you have a default instance , you can rename it to whatever following the steps above. ( Default instance means the instance name = hostname of the server ).

BUT, if you have a named instance (i.e ) while setting your server up you add a new name like say testinstance , then when SQL Server is installed the instance name will be
hostname\testinstance. In this case you CANNOT change the instance name and would need to UNINSTALL SQL server and reinstall it.

Thanks,
John Walker
John Walker
SSCertifiable
SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)SSCertifiable (5.5K reputation)

Group: General Forum Members
Points: 5530 Visits: 293
The general recommendation is that you can change an instance name if it is the default instance
see here: http://msdn.microsoft.com/en-us/library/ms143799.aspx
But modifying an existing named instance is not recommended without uninstall/reinstall.
Igor Micev
Igor Micev
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19864 Visits: 5191
You can rename an instance name, why not? It's simply supported. The name of an installed sql server instance is just an alias for the unique id the instance is associated with in the physical server.
Renaming a stand-alone instance is easier than an instance in cluster.
Take a look here for example http://www.sqlmighty.com/single-post/2016/10/02/Changing-SQL-Server-name

Igor Micev,
My blog: www.igormicev.com
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