Project Description
The DBScirpterCmd is a command line utility to script database objects to separate SQL files. An interesting usage is with an automation tool, such as NAnt or FinalBuilder, to automatically script database and check in to source control system.
At present this utility supports only SQL Server 2008, and database objects: table, stored procedure, view, user defined function and user defined aggregate.
SQL Server 2008 Management Objects and .Net Framework 4.0 are required to run this utility.
Usage :
DBScripterCmd.exe <server> <username> <password> <database> <output folder>[a][f][s][t][v]
a User Defined Aggregate
f User Defined Function
s Stored Procedure
t Table
v View
Empty All
Example:
DBScripterCmd.exe localhost sa test AdventureWorks2008R2 "d:\output"