Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Where did SQL Server get the hostname connected?

Posted on 2006-11-26
5
Medium Priority
?
1,187 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
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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

885 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