Last active
October 3, 2018 22:11
-
-
Save mvillegascuellar/8c5b3aadc186a4e88a901e91acffa3eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_configure 'show advanced options', 1; | |
GO | |
RECONFIGURE | |
GO | |
EXEC sp_configure 'Agent XPs', 1; | |
GO | |
RECONFIGURE | |
GO | |
DECLARE @daysleft int | |
DECLARE @instancename sysname | |
SELECT @instancename = CONVERT(sysname, SERVERPROPERTY('InstanceName')) | |
EXEC @daysleft = xp_qv '2715127595', @instancename | |
SELECT @daysleft 'Number of days left' | |
GO | |
-- referencia: https://blogs.msdn.microsoft.com/sqlosteam/2013/02/17/when-will-my-sql-server-evaluation-edition-expire/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment