Guest User

Untitled

a guest
Mar 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. SELECT o.name, o.type_desc, o.create_date
  2. FROM sys.objects o
  3. WHERE o.create_date < {fn Now()} -1;
  4.  
  5. SELECT [o].[name],[o].[type_desc],[o].[create_date]
  6. FROM [sys].[objects] [o]
  7. WHERE [o].[create_date]<(getdate()-@1)
  8.  
  9. SELECT {fn curdate()},
  10. {ts '2016-05-24 15:19:36'}, -- not vulnerable to SET LANGUAGE!
  11. {guid 'D08891B4-BC25-4C7C-BAEF-3B756055AC6E'};
  12.  
  13. DECLARE @d DATE = GETDATE();
  14. SELECT @d - 1;
Add Comment
Please, Sign In to add comment