Avatar of barnesco
barnesco
 asked on

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
Microsoft SQL Server 2008Microsoft SQL Server

Avatar of undefined
Last Comment
barnesco

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Vitor Montalvão

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Kyle Abrahams, PMP

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
DBAduck - Ben Miller

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
barnesco

ASKER
Yup, that's what I had to do--uninstall/reinstall. Thanks.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23