Link to home
Start Free TrialLog in
Avatar of Argonaut
Argonaut

asked on

Change computer name

I'm running NT 4.0 and SQL Server 7.0.  I need to change the name of the computer.  When I do & reboot SQL Server will not start.  I tried sp_addserver, sp_dropserver, & sp_setnetname before changing the computer name but I must be missing something as it does not work.  It seems like what ever I do must be done before I change the name as once I do I can not start SQL Server.  Sort of a Catch 22.
Avatar of UncleMatt
UncleMatt

As far as I know you can't change the computer name of a SQL server without re-installing it.

It's all in the books online somewhere.

Matt.
change the name
reboot - sql server will fail to start
rerun the sql server setup - installshield will say that it is upgrading the system. It will actually change all the registry entries.
Reboot the server again and everything shou be OK.
You may have to add the server name which you already know how to do.
ASKER CERTIFIED SOLUTION
Avatar of chigrik
chigrik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Argonaut

ASKER

Thanks,

I had some problems with the CD.  It would not accept the Enterprise CD, had to use Standard CD.  I though it was Enterprise to begin with.  I know Enterprise need Win 2000 Advanced but I'm running NT 4.  Do you know what is up here?

Any way after running setup the server would start but @@SERVERNAME still returned the old name.  So I ran:

sp_dropserver <oldname>
go
sp_addserver <newname>, local

After a re-start the name was completely changed.