Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favourite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved 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: 6147 | Views in the last 30 days: 57
 
Related Articles
BLOG

Improved Customer Support

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

FORUM

building custom calender

can we build a custom calender in ssis

ARTICLE

More Support for Customers

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

BLOG

Don't Alienate Your Customer

This should go without saying, because most of us have been on the receiving end of poor customer su...

FORUM

Customize SQL Query

Customize

Tags
miscellaneous    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones