Solved

Servername is Incorrect

Posted on 2006-06-20
5
771 Views
Last Modified: 2012-05-05
SQL2K

When I register a server [ISASRV1] through Enterprise Manager , I Can see correct servername is there.

But the result of
select srvid, srvname  from master.dbo.sysservers order by srvid
is
Srvid         srvname
0      ISASRV
1      HP_SPIN_LOC

The srvname ISASRV is incorrect. It should have been ISASRV1.

Q.1 How it happend.
Q2. How to fix.
0
Comment
Question by:Mateen
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:chhapia_chintak
ID: 16941343
You can fix this by executing follwoing code.

exec sp_dropserver 'ISASRV', 'droplogins'
GO
exec sp_addserver 'ISASRV1','LOCAL'

then restart the server.

Then execute the same query
"select srvid, srvname  from master.dbo.sysservers order by srvid"

you will find ISASRV1 for svrid 0.
0
 
LVL 28

Assisted Solution

by:imran_fast
imran_fast earned 200 total points
ID: 16941654
Q.1 How it happend.
When you install your sql server on the machine the server name was ISASV and afterwards you rename the server name to be ISASV1


Q2. How to fix.

above mentioned post by chhapia_chintak
or
go to master.dbo.sysservers  table and rename isasrv to ISASRV1 by issuing an update statement.
0
 

Author Comment

by:Mateen
ID: 16948733
Hi Imran_fast
renaming the servername is easier. But when I rename it syas

[ Adhoc Update to System Catalogs are not enabled. The system Administrator must reconfigure Sql Server to allow this. ]
0
 
LVL 3

Accepted Solution

by:
chhapia_chintak earned 300 total points
ID: 16948866
Run below code then you can update the servername

EXEC sp_configure 'allow updates', 1
RECONFIGURE WITH OVERRIDE
GO
0
 
LVL 28

Expert Comment

by:imran_fast
ID: 16948889
Hi Mateen,
By default update to any system table like (sysobjects, syscolumns) is not allowed.
to allow updates on such system tables you have to configure your server to allow updates as chhapia_chintak suggested.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

707 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

13 Experts available now in Live!

Get 1:1 Help Now