SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Automate Scripting with SQL Scripter

By kwittmer,

SQL Scripter is an open-source console tool for generating SQL Server DDL. Written in C# using .NET 2.0, SQL Scripter provides front-ends for MSBuild, NAnt and the Windows command line. Each front end supports syntax for specifying which types of database objects to script, including all objects of a type or directly named instances.

SQL Scripter supports interaction with build scripts written for MSBuild. MSBuild is a command line build tool introduced with Microsoft Visual Studio 2005. MSBuild is also an integral part of Microsoft’s Team Foundation System (TFS) build development and revision control system. It has a specific XML dialect where targets can execute built-in or custom tasks. SQL Scripter front-end support for MSBuild come via the custom task facilities and accepts standard item group syntax as well as custom attributes to control schema generation over a range of SQL object types and instances.

The XML listing provided here is a complete MSBuild built script example with tables, procedures, functions, UDFs, and XML schemas.

Possible applications for SQL Scripter include deployment into an automated build process to support continuous integration. SQL Scripter can be used to generate DDL of the latest developer database schema.

The full source and runtime binaries for SQL Scripter can be found at http://www.codeplex.com/SQLScripter/.

Total article views: 6186 | Views in the last 30 days: 56
Related Articles

Improved Customer Support

In the last couple of months SQLTreeo has improved her customer contact skills. Before it was just a...


building custom calender

can we build a custom calender in ssis


MSBuild and Azure SQL Database

I saw a report of a problem building a database with ReadyRoll in Azure SQL Database. This person wa...


MSBuild in VS2013 for .dtproj

HI, I'm trying to do an ssis project deployment to ssisdb catalog using MSBuild and it was execut...


More Support for Customers

A change in the support policy from Microsoft is a good thing, Steve Jones notes. Now you can still ...