Advertisement
Guest User

Untitled

a guest
May 28th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. DECLARE @RowCount int
  2. DECLARE @Random int
  3.  
  4. SET @RowCount = 0
  5.  
  6. WHILE @RowCount < 100
  7. BEGIN
  8. SELECT @Random = ROUND((10 * RAND()), 0)
  9.  
  10. INSERT INTO dbo.Sample_Table (column_1, column_2)
  11. VALUES
  12. (
  13. @RowCount,
  14. REPLICATE('lorem lipsum', @Random)
  15. )
  16.  
  17. SET @RowCount = @RowCount + 1
  18. END
  19. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement