Solved

Where did SQL Server get the hostname connected?

Posted on 2006-11-26
5
1,094 Views
Last Modified: 2008-02-01
Hi experts,

I monitor the activities of my users through the SQL Server 2005 Management Studio - Activity Monitor.
The hostname column in the Activity Monitor used to report correctly the hostname of the client PC.
But I have some client PC that Activity Monitor reported the hostname wrongly -
I clone the PC (using Norton Ghost) and renamed (from say OldHost) the hostname before release for production use -
But Activity Monitor reported the hostname as the "OldHost"!

Where did SQL Server get the hostname connected from?
How can I rectify this problem?

regards
0
Comment
Question by:novknow
[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
5 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 18016594
When you change the name of the computer that is running Microsoft SQL Server the new name is recognized during SQL Server startup. You do not have to run Setup again to reset the computer name.

You can connect to SQL Server using the new computer name after you have restarted the server. However, to correct the sysservers system table, you should manually run these procedures:

sp_dropserver <old_name>
go
sp_addserver <new_name>
go
0
 
LVL 16

Accepted Solution

by:
Hillwaaa earned 250 total points
ID: 18016962
Hi novknow,

I think that the hostname is being returned from the client PC's computer name.  For those that you think are incorrect - check that the "Full computer name" (assuming windows XP) is not set to "OldHost".  This can be accessed through Control Panel -> System -> Computer Name (tab).

Cheers,
Hillwaaa
0
 

Author Comment

by:novknow
ID: 18017088
Hi Hillwaaa,

The client PCs are all in a workgroup. I can verify if the "Full computer name" was set correctly.
Assuming it is set correctly, what could be the other possiblity?
I asked this because the standard procedure is to rename the computer hostname and reboot the PC.
Also, if the hostname are the same for these group of PC, I would have received "System Error" from the OS.

regards
0
 
LVL 16

Expert Comment

by:Hillwaaa
ID: 18017116
I'm not sure what else it could be picking up.  If possible, can you connect from one of the "OldHost" client machines using query analyzer, and just run:
"SELECT HOST_NAME()".  This should tell us if it is the hostname that is being brought back incorrectly, or if it's the Activity Monitor displaying something else in the hostname column.
0
 
LVL 9

Expert Comment

by:dduser
ID: 18018044
Checkout name of your server in sysservers tablems-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/instsql9/html/bbaf1445-b8a2-4ebf-babe-17d8cf20b037.htm

Regards,

dduser
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tempdb Contention - SQL SERVER 10 41
rolling count by date, hour query 7 32
Powershell error using sql agent job 24 41
Query Task 8 23
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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.
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

752 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