<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Database Builds</title>
        <link>http://weblogs.sqlteam.com/billg/category/148.aspx</link>
        <description>Database Builds</description>
        <language>en-US</language>
        <copyright>Bill Graziano</copyright>
        <managingEditor>graz@sqlteam.com</managingEditor>
        <generator>Subtext Version 1.9.4.0</generator>
        <item>
            <title>More SQL Server NAnt Tasks</title>
            <link>http://weblogs.sqlteam.com/billg/archive/2005/05/08/4914.aspx</link>
            <description>&lt;P&gt;I've updated my NAnt tasks to 0.94 (&lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.94-src.zip"&gt;source&lt;/A&gt; and &lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.94.zip"&gt;binary&lt;/A&gt;).  I've added three new tasks.&lt;/P&gt;
&lt;P&gt;The first is a task to &lt;STRONG&gt;load an Excel spreadsheet into a SQL Server table&lt;/STRONG&gt;.  We've found this to be a fair way to manage code tables.  They're easy to edit and print out for review.  They don't handle the foreign key checking until we load them in but that's been a fair trade-off for their ease of use.&lt;/P&gt;
&lt;P&gt;The second task &lt;STRONG&gt;imports an image file into SQL Server&lt;/STRONG&gt;.  It's basically a mirror image of TEXTCOPY.EXE except that it's a NAnt task and the trust connection works.&lt;/P&gt;
&lt;P&gt;The last task is an &lt;STRONG&gt;updated SQL task from NAntContrib.&lt;/STRONG&gt;  This version adds back proper column formatting for result sets.  They should come out nice and lined up.  We have SELECT statements in our build that we wanted to see in a readable format.&lt;/P&gt;
&lt;P&gt;I'm considering writing a task that will execute a series of SQL files against SQL Server to create stored procedures.  The key being that it will sequence them properly.  I've got a rough draft working but it's not very fast at this point.  It will also process the command files that Visual Studio generates.&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/billg/aggbug/4914.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bill Graziano</dc:creator>
            <guid>http://weblogs.sqlteam.com/billg/archive/2005/05/08/4914.aspx</guid>
            <pubDate>Sun, 08 May 2005 19:26:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/billg/archive/2005/05/08/4914.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/billg/comments/commentRss/4914.aspx</wfw:commentRss>
            <trackback:ping>http://weblogs.sqlteam.com/billg/services/trackbacks/4914.aspx</trackback:ping>
        </item>
        <item>
            <title>NAnt Task to Restore a SQL Server Database</title>
            <link>http://weblogs.sqlteam.com/billg/archive/2005/04/21/restoredb.aspx</link>
            <description>&lt;P&gt;In my long tradition of releasing odd utilities (ok, utility) that no one but me uses I think I've come up with a winner.  On one of my projects we've created an extensive database build process using &lt;A href="http://nant.sourceforge.net/"&gt;NAnt&lt;/A&gt;.  This process creates the database with all its objects and runs a series of jobs to populate data.  Much of that data comes from other databases on the same server.  At the start of the build process we need to restore a series of database backups as of specific dates.  Since this script can run against a variety of developer workstations, test servers, QA servers, etc. we need to restore these backups into a variety of directories.&lt;/P&gt;
&lt;P&gt;This NAnt task will restore a database backup onto the target server.  The task will query the server to determine the proper location for the data files and log files and move them to the proper directory.  It will also rename the files based on the database name.  It can set the database to simple recovery mode and shrink it.  It handles multiple data and log files but only restores the first backup in a backup file.&lt;/P&gt;
&lt;P&gt;You can download the &lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.91.zip"&gt;binary&lt;/A&gt; and the &lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.91-src.zip"&gt;source code&lt;/A&gt;.  It is a NAnt task so you'll need to be using NAnt to use it.  Installation is as simple as dropping the DLL into NAnt's &lt;FONT face="Courier New"&gt;bin&lt;/FONT&gt; directory.&lt;/P&gt;
&lt;P&gt;If you're running any kind of build script in your development process and aren't using NAnt I'd encourage you to look at it.  It's a great tool!&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: I've release 0.92 which you can download here: (&lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.92.zip"&gt;binary&lt;/A&gt; and &lt;A href="http://www.sqlteam.com/downloads/ClearData.NAntTasks-0.92-src.zip"&gt;source code&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: I've released &lt;A href="http://weblogs.sqlteam.com/billg/archive/2005/05/08/4914.aspx"&gt;0.94&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/billg/aggbug/4597.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bill Graziano</dc:creator>
            <guid>http://weblogs.sqlteam.com/billg/archive/2005/04/21/restoredb.aspx</guid>
            <pubDate>Thu, 21 Apr 2005 19:52:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/billg/archive/2005/04/21/restoredb.aspx#feedback</comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/billg/comments/commentRss/4597.aspx</wfw:commentRss>
            <trackback:ping>http://weblogs.sqlteam.com/billg/services/trackbacks/4597.aspx</trackback:ping>
        </item>
        <item>
            <title>Building with NANT</title>
            <link>http://weblogs.sqlteam.com/billg/archive/2004/03/01/nantbuild.aspx</link>
            <description>&lt;A href="http://www.theserverside.net/"&gt;TheServerSide.NET&lt;/A&gt; has a great article up on building your &lt;A href="http://www.theserverside.net/articles/article.aspx?l=NAnt"&gt;solution using NANT&lt;/A&gt;.&amp;nbsp; It was interesting to read since I'm working on an article on our database build process.&lt;img src="http://weblogs.sqlteam.com/billg/aggbug/1023.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bill Graziano</dc:creator>
            <guid>http://weblogs.sqlteam.com/billg/archive/2004/03/01/nantbuild.aspx</guid>
            <pubDate>Mon, 01 Mar 2004 22:26:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/billg/archive/2004/03/01/nantbuild.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/billg/comments/commentRss/1023.aspx</wfw:commentRss>
            <trackback:ping>http://weblogs.sqlteam.com/billg/services/trackbacks/1023.aspx</trackback:ping>
        </item>
    </channel>
</rss>