How to change SQL instance name

All the doc's I've read shows to do the below, and restart SQL services, but I'm not able to login to the new SQL instance name--only the old one--and SQL config manager still shows the old instance name despite SELECT @@SERVERNAME returning the new instance name.

How do I get SQL server to recognize the new instance name when I run the below? This is a SQL 2012 instance.

sp_dropserver 'INSTANCE\OLD_NAME'  
go  
sp_addserver 'INSTANCE\NEW_NAME', 'local'  
go

Thanks
barnescoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
I don't think you can rename a SQL Server instance.
The SELECT @@SERVERNAME only goes to read the data in the servers table and that's why you got the "new" name. You should rollback the changes you made or you'll have issues in a near future.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kyle AbrahamsSenior .Net DeveloperCommented:
That's if you're renaming the host computer that hosts instance.  

It's not recommended to do that without doing another install and uninstall.

More info:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c07ab906-dabf-4303-9737-d430d82c4f42/how-to-rename-instance-of-sql-server-2008-r2
0
DBAduck - Ben MillerPrincipal ConsultantCommented:
You have to uninstall and reinstall to change an INSTANCE name. This is because the service name has the instance name in it, there are other things in the registry and folders, etc.  

The ONLY way is to uninstall and reinstall. Sorry.
0
barnescoAuthor Commented:
Yup, that's what I had to do--uninstall/reinstall. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.