October 15, 2015 at 11:47 am
How can I combine both these in 1 statement
select Servername = cast(@@servername as varchar(255)),
Collation = cast(SERVERPROPERTY('Collation')as varchar(255)),
BuildClrVersion = cast (SERVERPROPERTY('BuildClrVersion') as varchar(255))
SELECT value
FROM sys.configurations
WHERE name = 'backup compression default' ;
Both the above t-sql work independently.How can I combine both in 1 T-SQL statement
Thanks
October 15, 2015 at 11:52 am
SELECT value,
cast(@@servername as varchar(255)) as Servername,
cast(SERVERPROPERTY('Collation')as varchar(255)) as Collation,
cast (SERVERPROPERTY('BuildClrVersion') as varchar(255)) BuildClrVersion
FROM sys.configurations
WHERE name = 'backup compression default' ;
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply