?
Solved

Is it possible to rename a SQL Server instance?

Posted on 2014-01-27
2
Medium Priority
?
634 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 1000 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 1000 total points
ID: 39816738
After you do sp_addserver you will have to restart the SQL Sever instance.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

850 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