Solved

Servername is Incorrect

Posted on 2006-06-20
5
788 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

728 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