Determining current owner of SQL Server instance is by interrogating Failover Cluster Management Service using C#
How can I determine who the current owner of SQL Server instance is by interrogating Failover Cluster Management Service using C#?
This is on SQL Server 2008. I have the fail over clus开发者_如何学运维ter management service configured and I need a programmatic way to determine the current owner.
Why would you need to do that? You can have a look at the API reference and the function called GetClusterGroupState, but needing that somehow seems a bit awkward IMHO.
http://msdn.microsoft.com/en-us/library/aa369611(v=VS.85).aspx
BR
精彩评论