Quantcast
Viewing all articles
Browse latest Browse all 7696

Regarding lisence.

Hello,

I am using the below query for my sql server evaluation expiry date.

I get the result in this way.

SQL Server Installed Date    SQL Server Expiry Date    No_of_Days_Used    No_Of_Days_Left
2014-07-02 13:27:20.840    2014-12-29 13:27:20.840            97                       83

SELECT  create_date AS 'SQL Server Installed Date',
        Expiry_date AS 'SQL Server Expiry Date',
       DATEDIFF(dd,create_date, GETDATE()) 'No_of_Days_Used',
       ABS(DATEDIFF(dd,expiry_date,GETDATE())) 'No_Of_Days_Left'
FROM
(SELECT sp.create_date,
        DATEADD(dd, 180, sp.create_date) AS Expiry_date
 FROM   sys.server_principals sp
 WHERE  sp.name = 'NT AUTHORITY\SYSTEM') as exp_date_tbs

Recently I updated the License key on my server even then also I am getting the same result.

Could you please help me how to know weather license key is updated or not.

Regards,

Satish


Viewing all articles
Browse latest Browse all 7696

Trending Articles