Advertisement
kromm77

[sql server] List of integers

Feb 9th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.10 KB | None | 0 0
  1. SELECT TOP (100) n = ROW_NUMBER() OVER (ORDER BY NUMBER)
  2.   FROM [master]..spt_values ORDER BY n;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement