The Microsoft SQL Server T-SQL system variable @@version contains the version signature of the server and also SERVERPROPERTY provides specific information.
USE master;
GO
Select @@Version As SQLServerVersion
GO
SELECT
'Microsoft SQL Server ' +
convert(varchar, SERVERPROPERTY('ProductVersion') ) + ' -- ' +
convert(varchar, SERVERPROPERTY('ProductLevel') ) + ' -- ' +
convert(varchar, SERVERPROPERTY('Edition') ) As SQLServerVersion;
No comments:
Post a Comment