December 16, 2016 at 2:10 am
Comments posted to this topic are about the item SQL - Use SERVERPROPERTY to get SQL Instance Information
December 29, 2016 at 7:06 am
This is really cool, thanks.
December 29, 2016 at 8:37 am
I'm sure this will sound like a really simple request by many, but is there an easy T-SQL method to pivot the results into two columns?
Chris
December 29, 2016 at 9:14 am
You can use something like this.....
SELECT 'BuildClrVersion' ColumnName, SERVERPROPERTY('BuildClrVersion') ColumnValue
UNION ALL
SELECT 'Collation', SERVERPROPERTY('Collation')
UNION ALL
SELECT 'CollationID', SERVERPROPERTY('CollationID')
UNION ALL
SELECT 'ComparisonStyle', SERVERPROPERTY('ComparisonStyle')
UNION ALL
SELECT 'ComputerNamePhysicalNetBIOS', SERVERPROPERTY('ComputerNamePhysicalNetBIOS')
UNION ALL
SELECT 'Edition', SERVERPROPERTY('Edition')
UNION ALL
SELECT 'EditionID', SERVERPROPERTY('EditionID')
.
.
.
.
.
.
.
December 29, 2016 at 3:52 pm
Thanks!
Chris
Viewing 0 posts
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy