Little app designed to create a table and insert many records into it.
Pull container
docker pull mcr.microsoft.com/mssql/server:2019-latest
Run container
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=YourStrong@Passw0rd" `
-p 1433:1433 --name sql1 --hostname sql1 `
-d mcr.microsoft.com/mssql/server:2019-latest
This project uses .NET 6.0 SDK. Make sure to download and install in advance. This folder can be opened in Visual Studio Code.
Make sure to add the nuget source:
dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json
- Database and table creation - This creates the initial database and table
- Centralized Connection Settings - all relevant settings the Console App uses for connecting to the server and database are found here
Restore:
dotnet restore
Running:
dotnet run