Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script to determine if two instances are on the same node

By Gregory Ferdinandsen,

This script monitors that two instances of SQL are not running on the same node in an active/active cluster configuration.  I run this as a SQL Server Agent job every 30 minutes.

Notes:

*xp_cmdshell must be enabled

*best to run it from a server that is not a member of the cluster

*change @svrName to your server

*change #tmpTable names to match your server

This script can also be easily modified to use a cursor and read from a table if you have multiple active/active clusters

Total article views: 823 | Views in the last 30 days: 2
 
Related Articles
FORUM

SQL Server 2005 on active active cluster.

SQL Server 2005 on active active cluster.

FORUM

ACtive-ACtive Clustering SQL server 2005

ACtive-ACtive Clustering SQL server 2005

FORUM

ACtive-ACtive Clustering SQL server 2005

ACtive-ACtive Clustering SQL server 2005

ARTICLE

SQL Server 2012 Active/Active Cluster in Hyper-V

Learn how to create a SQL Server 2012 Active/Active cluster in Hyper-V using an iSCSI SAN

FORUM

SQL 2008 x64 clustering active / active

clustering sql server 2008 x64 in active / active

Tags
cluster    
powershell    
wmi    
wql    
 
Contribute