Created
November 2, 2017 13:59
-
-
Save musukvl/82f93cbf24a8a51ae8621e314629be98 to your computer and use it in GitHub Desktop.
SQL Query to insert 100 000 records
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @i int | |
set @i = 1 | |
while @i <= 100000 | |
begin | |
INSERT INTO [dbo].[Log] ([Key], [Data], [UpdatedDate]) | |
VALUES | |
(convert(nchar(36), NEWID()), | |
'Some random data:' + convert(nchar(36), NEWID()), | |
GETDATE()) | |
set @i = @i + 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment