Solved

Is it possible to rename a SQL Server instance?

Posted on 2014-01-27
2
479 Views
Last Modified: 2014-01-28
Is it possible to rename a SQL Server instance?

We cloned a dev server to create a new production server. Even though the name of the computer is different, when I bring up SQL Server management Studio, it shows the name of the source dev environment.

Is there a way to change it to new name to match the functionality?  Or do we need to uninstall sql server and reinstall it all? I'm under a big time crunch so if i can rename it, I want to try that first.

Its sql server 2012.

Thanks!
0
Comment
Question by:data_bits
2 Comments
 
LVL 15

Accepted Solution

by:
pateljitu earned 250 total points
ID: 39813139
You can rename existing instance

sp_dropserver <old_name>;
GO
sp_addserver <new_name>, local;
GO

-- execute this query to verify name change
SELECT @@SERVERNAME

Open in new window



Article:
http://technet.microsoft.com/en-us/library/ms143799.aspx

http://www.sqltechnet.com/2012/09/how-to-rename-sql-server-instance.html
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 39816738
After you do sp_addserver you will have to restart the SQL Sever instance.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

932 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

11 Experts available now in Live!

Get 1:1 Help Now