CPF and CNPJ generator valid for SQL Server environment testing

Views: 3.227
Reading Time: 4 minutes

Hello everybody!
Good evening.

In this post I will demonstrate how to create a stored procedure to return a list of valid CPF's or CNPJ's for testing environments and systems. You can capture the result of the procedure and record and a temporary table and test your systems easily now.

If you need a function that validates CPF, CNPJ, Email, Phone and ZIP code, learn more by accessing the post. Validating CPF, CNPJ, Email, Phone, and Zip Code in SQL Server

Procedure for generating CPF and / or CNPJ mass:
View source

Examples of use:
SQL Server - CNPJ and CPF Generator

Thanks guys,
Until the next post!

CPF and CNPJ generator for SQL Server environment testing

CPF and CNPJ generator for SQL Server environment testing