Created
August 26, 2020 15:29
-
-
Save jingyang-li/8d256023911b62292093586d473266f5 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
declare @rundt datetime=getdate() | |
If month(@rundt) not in (1,4,7,10) | |
THROW 51000,'Job cannot be executed on this month',1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment