Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««1234»»

SQL Script to check SQL Server cluster Nodes. Expand / Collapse
Author
Message
Posted Tuesday, March 15, 2011 6:59 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 10:51 AM
Points: 1,320, Visits: 480
Does this not mean:
This view will eventually replace the fn_virtualservernodes function which will be deprecated in a future release
that the correct answer is the sys.dm_os_cluster_nodes view?
Post #1078307
Posted Tuesday, March 15, 2011 7:40 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 3:40 AM
Points: 5,989, Visits: 12,925
question specifically mentions SQL2011 (if it will be called that.)

SELECT * FROM ::fn_virtualservernodes() is only there for backward compatibility and should not be used. It works all the way up to SQL2008R2 but who knows if it will work in SQL2011 (sic). It is marked to be deprecated so may well not.

ipso facto the dmv is the only 100% correct answer


---------------------------------------------------------------------

Post #1078338
Posted Tuesday, March 15, 2011 8:20 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 11:26 AM
Points: 668, Visits: 485
I lost the point after a lot of research.
But i learned something new today... Thanks for the question, but i am not satisfied with the answer. The correct ans is DMV.
Post #1078366
Posted Tuesday, March 15, 2011 8:39 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 7:27 PM
Points: 33,204, Visits: 15,351
Points have been awarded back and the question corrected to ask which one should be used, and then to note the DMV is the correct answer.






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1078385
Posted Tuesday, March 15, 2011 8:47 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 11:26 AM
Points: 668, Visits: 485
Thanks Steve..
Post #1078393
Posted Tuesday, March 15, 2011 9:36 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, June 16, 2014 9:38 AM
Points: 2,163, Visits: 2,189
Steve,

Thanks for fixing the question.
Post #1078441
Posted Tuesday, March 15, 2011 10:06 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 1:51 PM
Points: 21,644, Visits: 15,317
stewartc-708166 (3/15/2011)
Given a choice between a function marked for deprecation and a fully functional DMV, I believe most of us would rather choose the DMV, as it would prevent re-work at a later stage.

Ah well, c'est la vie....


Certainly, I tend to choose the supported feature over a deprecated feature.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1078467
Posted Tuesday, March 15, 2011 10:06 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 1:51 PM
Points: 21,644, Visits: 15,317
Koen Verbeeck (3/15/2011)
Chris Houghton (3/15/2011)
Tested select * from ::fn_virtualservernodes() on both 2005 and 2008 clusters and it returned correct results for both.


So apparently all the three answers are correct?
Everybody wins!


Woohoo




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1078468
Posted Tuesday, March 15, 2011 10:08 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 1:51 PM
Points: 21,644, Visits: 15,317
Steve Jones - SSC Editor (3/15/2011)
Points have been awarded back and the question corrected to ask which one should be used, and then to note the DMV is the correct answer.



Thanks Steve




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1078471
Posted Tuesday, March 15, 2011 10:24 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, June 19, 2014 8:00 AM
Points: 592, Visits: 1,425
Steve Jones - SSC Editor (3/15/2011)
Points have been awarded back and the question corrected to ask which one should be used, and then to note the DMV is the correct answer.


Wow! Thanks!



-Ki
Post #1078484
« Prev Topic | Next Topic »

Add to briefcase «««1234»»

Permissions Expand / Collapse