dbTalk Databases Forums  

Re: Physical Server Name - Found it

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Re: Physical Server Name - Found it in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Hodgson
 
Posts: n/a

Default Re: Physical Server Name - Found it - 03-30-2006 , 04:54 PM






xp_regread is undocumented and also the permissions related to this xp
have been changed considerably in SQL 2005. A better way, if you're
going to shell out to the OS anyway, would be to ask cluster.exe (the
cmdline cluster administrator tool) like this:

exec master.dbo.xp_cmdshell 'cluster group VSQL01'

where VSQL01 is the name of your cluster group (typically your virtual
server name).

The regulars in microsoft.public.sqlserver.clustering might have a
better idea (cross-posted).

--
*mike hodgson*
http://sqlnerd.blogspot.com



JI wrote:

Quote:
Had to read the registy:
exec master..xp_regread 'HKEY_LOCAL_Machine',
'SYSTEM\CurrentControlSet\Control\ComputerName\Com puterName\',
'ComputerName'



"JI" <jidawgs (AT) gmail (DOT) com> wrote in message
news:eqQO8KBVGHA.5588 (AT) TK2MSFTNGP09 (DOT) phx.gbl...


I have SQL Server installed on a cluster. When I select @@servername it
gives me the virtual server name, as does serverProperty('MachineName') or
serverProperty('serverName'). When I select
serverProperty('ComputerNamePhysicalNetBios') it returns null. How can I
get the physical name?









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.