DevOps: Scripting SQL Server objects and data from the command line
The other day I posted a shortcut about how to use SQL Server Management Studio (SSMS) to generate INSERT statements for data.
In one of the comments, Tom Corrigan asked if there was a way to do that from the command line.
The answer is yes. Apart from a variety of 3rd party tools, in May last year, Microsoft released tools to do just that.
The new tool is mssql-scripter and you’ll find an intro to it here:
2018-04-20