Quantcast
Channel: Sql Server 2008 R2 – MSSQLFUN – Microsoft SQL Server, Database, Replication, SQL Server Agent, Mirroring, Always On, HADR
Viewing all articles
Browse latest Browse all 48

How to Check SQL Server Evaluation Version Expire Date ?

$
0
0

SQL Server Evaluation Edition is available free of cost. It’s a trial version & valid for limited time of period. The expiration date is always 180 days from the initial installation date.

The following query will give you the expiration date of evaluation instance :

SELECT

@@SERVERNAME SERVERNAME,

CREATE_DATE ‘INSTALALTIONDATE’,

SERVERPROPERTY(‘EDITION’) ‘Version’,

DATEADD(DD, 180, CREATE_DATE) AS ‘EXPIRY DATE’

FROM SYS.SERVER_PRINCIPALS

WHERE SID = 0X010100000000000512000000

SID 0X010100000000000512000000 is associated with login “NT AUTHORITYSYSTEM” & which is created at the time of installation only.

If you liked this post, do like on Facebook at http://www.facebook.com/mssqlfun

Reference : Rohit Garg (http://mssqlfun.com/)



Viewing all articles
Browse latest Browse all 48

Trending Articles