Skip to content

Custom Contoso database generator and ready-to-use Contoso sample databases for SQL Server

License

Notifications You must be signed in to change notification settings

sql-bi/Contoso-Data-Generator

Repository files navigation

Contoso Data Generator

A custom Contoso sample database generator.

IMPORTANT: There are 2 ways to run this custom Contoso sample database generator:

  1. If you clone the repository, you must compile the project with Visual Studio.
  2. If you want to use the ready-to-use script to generate a new database with the precompiled tool, you can download the zip file with Contoso-Data-Generator source code and executables from the release folder.

Content

  • DatabaseGenerator project
  • Scripts to build the custom Contoso database importing constant and generated files
  • CSV Files with the constant data

DatabaseGenerator

This project generates the orders tables as csv files to be imported into the custom Contoso database.

It's a C# project for .NET Core 3.1, included into the DatabaseGenerator.sln Visual Studio solution.

DatabaseGenerator C# project Folders

  • DatabaseGenerator: the project folder
  • data_folder: the folder with simple configuration files for debugging purpose

Scripts

Powershell scripts that

  • runs the DatabaseGenerator
  • creates the new custom contoso database
  • import the constant and generated data into the new databae
  • exports the generated database to a compressed file

Scripts folders

  • Scripts and subfolders: the PowerShell scripts and SQL scripts run by it
  • Contoso Main and subfolders: the CSV containing the constant data as csv files
  • DatasetSqlbi: configuration files used to run DatabaseGenerator

Instructions

To quickly test the tool, verify the pre-requisites and run the QuickRun.ps1 script in the script folder.

IMPORTANT: The executable is available in the ZIP included in the release folder. If you clone the repository, you must compile the executable with Visual Studio.

Pre-requisite to run the tool

Running QuickRun.ps1

QuickRun.ps1 takes two optional parameters

QuickRun.ps1 runs GenerateDatabases.ps1 script. For further details, please refer to the documentation into the Scripts folder.

About

Custom Contoso database generator and ready-to-use Contoso sample databases for SQL Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published