August 25, 2003 at 8:06 am
Does anybody know how to get the Server name(Windows 2000) from a SQL2k active/active cluster environment? I am looking for the name of the Windows server not the cluster's name.
Thanks
August 25, 2003 at 8:29 am
For clarification - I assume this means that @@servername returns the cluster name instead of the server name?
Guarddata-
August 25, 2003 at 9:05 am
Yes @@servername does return the Cluster's name and not the Servers name.
August 25, 2003 at 9:31 am
Are you looking for which server is active? Because the cluster'd server isn't "on" a machine. That's the idea.
Steve Jones
August 25, 2003 at 9:35 am
I am looking for what severs are controlling the active clusters.
August 25, 2003 at 9:35 am
I am looking for what severs are controlling the active clusters.
August 26, 2003 at 12:44 am
are you lookig for xp_cmdshell 'net name' ?
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
August 26, 2003 at 1:07 am
Maybe this can get you on tracke:
CREATE TABLE #tInfo (SQLServerComputerName nvarchar(500))
insert into #tInfo (SQLServerComputerName)
exec xp_cmdshell 'net name'
select SQLServerComputerName from #tInfo
drop table #tInfo
Don't open your cmdshell for non-sysadmins for this reason, but only execute it when logged in as sysadmin.
Edited by - alzdba on 08/26/2003 01:10:26 AM
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
August 26, 2003 at 7:06 am
Thanks alzdba xp_cmdshell 'net name' works for me
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply