Solved

Change computer name

Posted on 2001-07-20
4
3,047 Views
Last Modified: 2008-02-26
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.
0
Comment
Question by:Argonaut
4 Comments
 
LVL 2

Expert Comment

by:UncleMatt
ID: 6303911
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.
0
 
LVL 18

Expert Comment

by:nigelrivett
ID: 6303990
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.
0
 
LVL 8

Accepted Solution

by:
chigrik earned 50 total points
ID: 6304265
Read about "How do I change the name of SQL Server?"
http://www.windows2000faq.com/Articles/Index.cfm?ArticleID=14155

It's there from:

"
With SQL 7.0 you will need to re-run setup to reset the server name. Setup will detect the name conflict, resolve it, and then finish.
"

Hope this helps
0
 
LVL 1

Author Comment

by:Argonaut
ID: 6305319
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.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

920 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

14 Experts available now in Live!

Get 1:1 Help Now