hi experts,
I use the following statement to return lots of info about the local instance of SQL Server.
I've added a linked server but how can I get the same info from my other SQL Server machines? I'm planning to poll each one to collect info about that server's instance.
is there a way to Seelct ... serverproperty .... FROM ??
Thanks, John
Select getdate() as AsOfDate,
cast(serverproperty('machinename') as varchar(30)) as SQLServer,
cast(serverproperty('productversion') as varchar(20)) as Version,
cast(serverproperty('productlevel') as varchar(20)) as ServicePack,
cast(serverproperty('edition') as varchar(40)) as Edition,
cast(serverproperty('collation') as varchar(40)) as Collation
I use the following statement to return lots of info about the local instance of SQL Server.
I've added a linked server but how can I get the same info from my other SQL Server machines? I'm planning to poll each one to collect info about that server's instance.
is there a way to Seelct ... serverproperty .... FROM ??
Thanks, John
Select getdate() as AsOfDate,
cast(serverproperty('machinename') as varchar(30)) as SQLServer,
cast(serverproperty('productversion') as varchar(20)) as Version,
cast(serverproperty('productlevel') as varchar(20)) as ServicePack,
cast(serverproperty('edition') as varchar(40)) as Edition,
cast(serverproperty('collation') as varchar(40)) as Collation