Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created November 17, 2019 20:22
Show Gist options
  • Save vmussak/0672b1aa9a76fc86edeadebfaab11120 to your computer and use it in GitHub Desktop.
Save vmussak/0672b1aa9a76fc86edeadebfaab11120 to your computer and use it in GitHub Desktop.
DECLARE @Contador INT = 1000000
WHILE @Contador > 0
BEGIN
INSERT INTO Cliente(Nome, Sobrenome, Email)
VALUES (
SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,15),
SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,15),
LOWER(SUBSTRING(REPLACE(CONVERT(VARCHAR(250),NEWID()), '-', ''),1,30)) + '@email.com'
)
SET @Contador = @Contador - 1
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment