开发者

Determining current owner of SQL Server instance is by interrogating Failover Cluster Management Service using C#

开发者 https://www.devze.com 2023-02-18 22:03 出处:网络
How can I determine who the 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

0

精彩评论

暂无评论...
验证码 换一张
取 消