I am trying to detect if the server is running Express Edition.
I have the following t sql.
DECLARE @edition varchar(50);
set @edition = cast((select SERVERPROPERTY ('edition')) as varchar)
print @edition
In my instance, @edition = Express Edition (64-bit)
How can I do the following? (C# inspired).
DECLARE @isExpress bit;
set @isExpress = @edition.StartsWith('Express Edition');