September 5, 2012 at 9:57 am
Could you pls helpme out to find out the environment?
Thank you in Advance 🙂
September 5, 2012 at 10:16 am
there's a SERVERPROPERTY function you can use, but do you need to discover that within a TSQL command?
SELECT 'IsClustered', SERVERPROPERTY('IsClustered')
Lowell
September 6, 2012 at 12:34 am
What exactly are you trying to find out?
September 7, 2012 at 4:51 am
SQL Server cluster related T-SQL queries which helps in finding SQL Server Cluster Nodes and their shared drives.
1. Find name of the Node on which SQL Server Instance is Currently running
SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS [CurrentNodeName]
If the server is not cluster, then the above query returns the Host Name of the Server.
2. Find SQL Server Cluster Nodes
a. Using Function SELECT * FROM fn_virtualservernodes()
b. Using DMVSELECT * FROM sys.dm_os_cluster_nodes
3. Find SQL Server Cluster Shared Drives
a. Using FunctionSELECT * FROM fn_servershareddrives()
b. Using DMVSELECT * FROM sys.dm_io_cluster_shared_drives
Not sure if this is what you are looking for.:-)
But, please be specific about your needs while posting questions!!!!
*******:cool:
Sudhakar
*******:cool:
Sudhakar
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply