Productivity Tools

Tools written by an IT business manager, a passionate developer.

ProductivityTools.CreateSQLServerDatabase

Creates database on SQL Server.

Library allow us to create database in simple two steps.
First we are creating Database object, providing target database name and the connection string. Next we can invoke three methods:

Library removes from the connection string database name if provided. So from connection string:

"Server=.\\sql2017;Database=PTMeetings;Integrated Security=True"

Will use:

"Server=.\\sql2017;Integrated Security=True"