Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Returns a datetimeoffset(7) value that contains the date and time of the computer on which the instance of SQL Server is running. The time zone offset is included.
  2.  
  3. CREATE TABLE DateTest (id INT, order_date DATETIMEOFFSET NOT NULL DEFAULT SYSDATETIMEOFFSET())
  4. INSERT INTO DateTest (id) VALUES (1)
  5. SELECT * FROM DateTest
  6.  
  7. DATEADD(hh, 1, order_date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement