Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 728 | Views in the last 30 days: 23
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones