MS SQL – ScriptDB tool

February 17, 2013

Description :
ScriptDb is a simple console app written in C# that uses SQL Management Objects (SMO) to script all the objects in a database.

Running this console appl. with following parameters will generate the SQL scripts for Tables and Views.

scriptdb.exe -con:server=(local);
-outDir:D:\ScriptDB\scripts -v –p


The version posted on is only against MS SQL version 2000 – 2005.

But someone upgrade the source for MS SQL 2008 ! – 2008 version DotNet 4.0 needed.