How to check whether SQL Server is in clustered environment?
On 18 May, 2015
By : Charith Silva
No Comments
Views : 1638
Sometimes SQL Database administrators want to check whether given SQL Server instance is in clustered environment. The SERVERPROPERTY() built in metadata system function can be used to identify the clustered mode. SERVERPROPERTY() function with IsClustered Property will return “0” for Standalone mode and “1” for Clustered mode.
|
SELECT CASE SERVERPROPERTY('IsClustered') WHEN 0 THEN 'No' WHEN 1 THEN 'Yes' ELSE 'Unknown' END as [Is this SQL Server Clustered ?] |
Related
About The Author
Charith Silva is a Microsoft certified SQL Server developer and database administrator who was graduated at Buckinghamshire New university in the UK. His career was started in 1998, primarily into Web application development, and later diversified into database development.
He has got a vast experience in SQL Server database development, Database administration and Business Intelligence development. He believes that sharing the knowledge is key to the success.
Number of Posts :
87
Leave a Comment