Home > SQL Server Tips > Database Administrator > SQL Server freebie: DDL Archive Utility for generating scripts
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE ADMINISTRATOR

SQL Server freebie: DDL Archive Utility for generating scripts


By Serdar Yegulalp, Contributor
11.17.2005
Rating: --- (out of 5)


Expert advice on database development
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


SQL Server's Data Description Language (DDL) allows you to write scripts that define data and data relationships in a database. It's used to load data into a database rather than create the database itself. So, if you're testing SQL Server, DDL scripts will quickly repopulate a database with test data or other needed objects; if you're trying to solve a problem in collaboration with others, DDL scripts can help replicate the exact conditions for testing on their own computer.

One problem with DDL scripts, however -- and with SQL Server in general -- is the lack of integration with any kind of source code control mechanism. Conscientious programmers use source code control systems, such as Microsoft's own Visual SourceSafe, to track and manage the different iterations of a given program's code. A database programmer working with test data and data structures would be inclined to do the same thing, but the mechanisms usually aren't there to support it.

DDL Archive Utility is a freeware utility that lets a database programmer create SQL Server 2000 DDL scripts that can be imported into a Microsoft Visual SourceSafe repository. DDL scripts produced through DDLAL are exactly the same each time they're generated; other tools that generate DDL scripts will create "phantom differences" each time they're run, which breaks compatibility with SourceSafe. DDLAL lets you also specify which database objects and data sets to script, so you don't have to waste time scripting objects you don't need. The program can also be scheduled (via Task Scheduler or another mechanism) to make repository backups of database objects on a regular basis.

The only database objects needed by the program itself are a set of tables and stored procedures installed by the application via the instArchUtil.sql script included with the program. These structures should not be modified by the end user, of course.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!


More information from SearchSQLServer.com

  • Tip: SQL Server freebie: TOAD for SQL Server
  • Tip: Free SQL Server monitoring with event forwarding
  • RSS: Sign up for our RSS feed on database development


  • Rate this Tip
    To rate tips, you must be a member of SearchSQLServer.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Database Administrator
    Virtual database storage for SQL Server: Friend or foe?
    How to restore SQL Server database to transition server during upgrade
    Storage area network (SAN) basics every SQL Server DBA must know
    SQL Server backups using SAN database snapshots
    Sarbanes-Oxley compliance checklist: IT security and SQL audits
    SQL Server 2005 log shipping setup using the wizard
    Track changes to SQL Server 2000 and 2005 with one simple utility
    Tips for scheduling and testing SQL Server backups
    Ten common SQL Server security vulnerabilities you may be overlooking
    How to maintain SQL Server indexes for query optimization

    .NET development for SQL Server
    Secure SQL Server from SQL injection attacks
    Code to restore SQL Server databases in VB.NET
    Custom VB.Net scripting in SQL Server Integration Services
    Connect to SQL Server database with Visual Basics
    SQL Server Blog Watch
    Top 10 SQL Server development questions
    Developing CLR database objects: 10 tips, 10 minutes
    CLR architecture
    Creating CLR database objects
    User-Defined Functions
    .NET development for SQL Server Research

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts