andrew4582

comb guids

Nov 10th, 2010
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.10 KB | None | 0 0
  1. SELECT cast(
  2.     cast(NewID() as binary(10)) +
  3.     cast(GetDate() as binary(6))
  4. as uniqueidentifier)
Advertisement
Add Comment
Please, Sign In to add comment