<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David Mellors &#187; Red Gate Software</title>
	<atom:link href="http://www.wahooga.com/tag/red-gate-software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wahooga.com</link>
	<description>Personal Blog</description>
	<lastBuildDate>Mon, 01 Aug 2011 09:55:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Example: Updating a remote customer database schema</title>
		<link>http://www.wahooga.com/2008/06/19/sql-comparison-sdk-updating-a-customer-database-schema-part-i/</link>
		<comments>http://www.wahooga.com/2008/06/19/sql-comparison-sdk-updating-a-customer-database-schema-part-i/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 14:37:00 +0000</pubDate>
		<dc:creator>Dave Mellors</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Red Gate Software]]></category>
		<category><![CDATA[SQL Comparison SDK]]></category>

		<guid isPermaLink="false">/archive/2008/06/19/sql-comparison-sdk-updating-a-customer-database-schema-part-i.aspx</guid>
		<description><![CDATA[Overview A common use of the Red Gate SQL Comparison SDK is to package up the latest version of a database schema and send it to customers as an executable. This example demonstrates how easy it is to use the SDK to do this. NOTE: SQL Comparison SDK is to be the new name for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Overview</strong></p>
<p><img src="/images/sqlcomparisonsdk.gif" alt="" align="right" />A common use of the Red Gate SQL Comparison SDK is to package up the latest version of a database schema and send it to customers as an executable.</p>
<p>This example demonstrates how easy it is to use the SDK to do this.<br />
<span style="color: #888888;"><strong>NOTE:</strong> SQL Comparison SDK is to be the new name for SQL Toolkit</span></p>
<p><span id="more-171"></span></p>
<p><strong>Pre-requisites</strong></p>
<ul>
<li>Visual Studio 2005 or Visual Studio 2008</li>
<li><a href="http://www.red-gate.com/products/SQL_Toolkit">Red Gate SQL Comparison SDK</a><br />
You can download a <a href="http://www.red-gate.com/dynamic/downloads/downloadform.aspx?download=sqltoolkit">14 day free trial of SQL Comparison SDK</a> if you haven&#8217;t already got it.</li>
<li><a href="http://help.red-gate.com/help/SQLCompareAPIv6/0/en/Examples/SQLCompareTutorial.sql">WidgetProduction and WidgetStaging SQL creation script</a><br />
This database creation script is used by some of the SQL Compare API toolkit samples.</li>
<li><a href="/sqldbdeploy/sqldbdeploy.zip">SqlDbDeploy.zip</a><br />
The database schema deployment example used in this article.</li>
</ul>
<p><strong>Building the example</strong></p>
<p>When you load the solution in Visual Studio you will need to update the references to the toolkit assemblies.<img src="/images/updatereferences.gif" alt="" align="right" /> You can find the .dll files in the folder where you installed SQL Compare. The default location is Program Files\Red Gate\SQL Compare 6</p>
<p>If you want to change the splash image then you can replace the splash.jpg file in resources.</p>
<p>The embedded snapshot.snp file is used by default. A snapshot of the WidgetStaging database is included in the resources folder. You can delete it or replace it with your own snapshot but you need to remember to set the build action to Embedded Resource.</p>
<p style="font-weight: bold;">Using the example</p>
<p>The compiled example takes a number of command line parameters which are:-</p>
<p>/S:&lt;servername&gt;<br />
- This is the server on which the database resides to synchronize.<br />
/D:&lt;database&gt;<br />
- The database name to update.<br />
/B:&lt;filename&gt;<br />
- If you want to make a backup of the original schema before an update specify a filename here.<br />
/V:true<br />
- Specify this if you want verbose information.<br />
/UE:&lt;snapshotname&gt;<br />
- Name of embedded snapshot to use. If /UB not specified then default is snapshot.snp /UB:&lt;snapshotfilename&gt;<br />
- Name of snapshot file to use.</p>
<p>At the moment the example includes a snapshot for the WidgetProduction database so if you run the following parameters:-<br />
SqlDbDeploy.exe /S:davidm\sql2005 /D:widgetproduction /B:backup.snp</p>
<p>This would update the widgetproduction database on davidm\sql2005, create a backup snapshot before doing an updates and call the file backup.snp and provide verbose output.</p>
<p>If you want to reset the database back to the original you would use:-<br />
SqlDbDeploy.exe /S:davidm\sql2005 /D:widgetproduction /V:true /UB:backup.snp</p>
<p><strong>SqlDbDeploy &#8211; The movie<a href="/sqldbdeploy.htm"><img src="/images/screenshot.gif" border="0" alt="" align="right" /></a><br />
</strong>Just in case you haven&#8217;t installed the SDK yet you can view a flash movie of a <a href="/sqldbdeploy.htm">demonstration of SqlDbDeploy</a>.</p>
<p><strong>Thank You<br />
</strong>I would like to thank the Red Gate customers who provided information and source code which helped me to understand how they are using the SDK. In particular a big thank you to Rawden Hoff of <a href="http://www.nebulasystems.net/">Nebula Systems</a> whose VB.Net example inspired me to produce this example.</p>
<p><strong>Feedback &amp; disclaimer<br />
</strong>This example is provided &#8220;as is&#8221; and is not supported by Red Gate Software. This is my first .net Windows application so if you find this example useful or have any suggestions for improving it then it would be great to hear from you</p>
<p><strong>UPDATE FOR SQL Comparison SDK v7</strong></p>
<p>The solution available for download is for the SQL Toolkit v6 if you are using the SQL Comparison SDK v7 I believe you will need to make the following changes.</p>
<ul>
<li>Open the solution and remove the references to the Red Gate assemblies.</li>
<li>There have been some namespace changes so you will need to add the new assemblies from your V7 installation. The files are<br />
RedGate.Shared.Sql.dll, RedGate.Shared.Utils.dll and RedGate.SqlCompare.Engine.dll</li>
<li>Replace the RedGate using statements in Form1.cs with<br />
using RedGate.Shared.SQL;<br />
using RedGate.Shared.SQL.ExecutionBlock;<br />
using RedGate.Shared.Utils;<br />
using RedGate.SQLCompare.Engine;</li>
<li>Because of the namespace changes remove the references toRedGate.SQL.Shared from Form1.cs line 168 so it now looks like<br />
BlockExecutor executor = new BlockExecutor();</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wahooga.com/2008/06/19/sql-comparison-sdk-updating-a-customer-database-schema-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Toolkit introduction</title>
		<link>http://www.wahooga.com/2008/06/05/sql-toolkit-introduction/</link>
		<comments>http://www.wahooga.com/2008/06/05/sql-toolkit-introduction/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 10:37:00 +0000</pubDate>
		<dc:creator>Dave Mellors</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Red Gate Software]]></category>
		<category><![CDATA[SQL Comparison SDK]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">/archive/2008/06/05/sql-toolkit-introduction.aspx</guid>
		<description><![CDATA[In my last post I talked about writing an example application using the Red Gate SQL Toolkit but it occurred to me that I ought to mention a bit more about what SQL Toolkit is and what it can be used for. What is SQL Toolkit?&#160;SQL Toolkit is an software development kit (SDK)&#160;from Red Gate [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post I talked about writing an example application using the Red Gate SQL Toolkit but it occurred to me that I ought to mention a bit more about what SQL Toolkit is and what it can be used for.</p>
<p><span id="more-169"></span></p>
<p><strong>What is SQL Toolkit?</strong>&nbsp;<br />SQL Toolkit is an software development kit (SDK)&nbsp;from Red Gate Software (my employers) that provides&nbsp;.net developers with an api, samples and documentation for doing schema and data comparisons of Microsoft SQL Server databases. The toolkit also has a an api for packaging databases and database updates.</p>
<p></p>
<p><strong>Why would I use SQL Toolkit?<br /></strong>Interestingly I believe that many of the&nbsp;solutions&nbsp;that customers are using SQL Toolkit for can already be done with the GUI or command line&nbsp;versions of&nbsp;SQL Compare, SQL Data Compare or SQL Packager products but software developers sometimes prefer to have the increased level of control that they gain by using the SDK.</p>
<p></p>
<p mce_keep="true">The customers I have had contact with seem to use the software for the following:-</p>
<p></p>
<ul></p>
<li>
<div mce_keep="true"><strong>Update the database schema at a customers site without user interation</strong><br />An executable is sent to the customer which they run and which compares a database snapshot with the customers database and then updates the customers database with the differences.</div>
</li>
<p></p>
<li>
<div mce_keep="true"><strong>Continuous Integration (automated testing)<br /></strong>Some customers had previously been using database backups for their testing but using the toolkit is significantly quicker and more effective.</div>
</li>
<p></p>
<li>
<div mce_keep="true"><strong>Keep internal databases in sync (often in different geographical locations)<br /></strong>The Microsoft SQL Server replication isn&#8217;t as friendly or as easy as some people would like and so customers are using SQL Toolkit to keep databases synchronized across different sites.</div>
</li>
<p></p>
<li>
<div mce_keep="true"><strong>Update SQL database for remote web hosts</strong><br />You develop on a local server and then you need to migrate your changes to your web servers which are hosted remotely. </div>
</li>
<p></p>
<li>
<div mce_keep="true"><strong>Change control and auditing<br /></strong>SQL Toolkit is being used as part of the change control process to record changes being made to production systems.</div>
</li>
</ul>
<p></p>
<p mce_keep="true">There are certainly more uses for SQL Toolkit then I have listed but if you want to do SQL database comparison and want a high level of control then you should take a look at it.</p>
<p></p>
<p mce_keep="true"><strong>Links:&nbsp;<br /></strong><a class="" href="http://www.red-gate.com/products/SQL_Toolkit/" mce_href="http://www.red-gate.com/products/SQL_Toolkit/">Red Gate SQL Toolkit product page</a><br /><a class="" href="http://www.red-gate.com/dynamic/downloads/downloadform.aspx?download=sqltoolkit" mce_href="http://www.red-gate.com/dynamic/downloads/downloadform.aspx?download=sqltoolkit">SQL Toolkit free 14 day trial</a></p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wahooga.com/2008/06/05/sql-toolkit-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Gate SQL Toolkit: SQL Deployment example</title>
		<link>http://www.wahooga.com/2008/06/04/red-gate-sql-toolkit-example-to-deploy-database-schema-to-customer-site/</link>
		<comments>http://www.wahooga.com/2008/06/04/red-gate-sql-toolkit-example-to-deploy-database-schema-to-customer-site/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 09:27:00 +0000</pubDate>
		<dc:creator>Dave Mellors</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Red Gate Software]]></category>
		<category><![CDATA[SQL Comparison SDK]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">/archive/2008/06/04/red-gate-sql-toolkit-example-to-deploy-database-schema-to-customer-site.aspx</guid>
		<description><![CDATA[We are getting a lot of customers interested in using SQL Toolkit for deploying database updates to remote customer sites. Using SQL Toolkit you can distribute a single executable to your customers and use the Toolkit to do a schema comparison and then automatically update the customers database with the differences between a snapshot from [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="Red Gate SQL Toolkit" src="http://www.red-gate.com/images/boxshots/large/sqltoolkitnew.gif" align=right mce_src="http://www.red-gate.com/images/boxshots/large/sqltoolkitnew.gif">We are getting a lot of customers interested in using SQL Toolkit for deploying database updates to remote customer sites. Using SQL Toolkit you can distribute a single executable to your customers and use the Toolkit to do a schema comparison and then automatically update the customers database with the differences between a snapshot from your database and the customers database.</p>
<p><span id="more-168"></span></p>
<p>Up until now I haven&#8217;t used SQL Toolkit that much so I thought it would be nice to learn more about the product and come up with&nbsp;my own&nbsp;example of using SQL Toolkit to deploy/update a database. A recent survey and some helpful existing customers have given me an insight into what people want such an example to do so in the next few days I intend to post my first attempt and then make improvements to it over the coming weeks.</p>
<p></p>
<p mce_keep="true">The SQL Toolkit provides full api access to the Red Gate comparison tools giving you database schema, data and packaging functionality in your own applications. You can download a <a class="" href="http://www.red-gate.com/products/SQL_Toolkit/" mce_href="http://www.red-gate.com/products/SQL_Toolkit/">free 14 day trial of SQL Toolkit</a>.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wahooga.com/2008/06/04/red-gate-sql-toolkit-example-to-deploy-database-schema-to-customer-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling with ANTS Profiler and MSTest</title>
		<link>http://www.wahooga.com/2007/05/02/profiling-with-ants-profiler-and-mstest/</link>
		<comments>http://www.wahooga.com/2007/05/02/profiling-with-ants-profiler-and-mstest/#comments</comments>
		<pubDate>Wed, 02 May 2007 16:34:00 +0000</pubDate>
		<dc:creator>Dave Mellors</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ANTS Profiler]]></category>
		<category><![CDATA[Red Gate Software]]></category>

		<guid isPermaLink="false">/archive/2007/05/02/Profiling-with-ANTS-Profiler-and-MSTest.aspx</guid>
		<description><![CDATA[Had a question today from a customer interested in profiling his unit tests using MSTest which is part of the testing element of Visual Studio Team System. As I hadn&#8217;t used MSTest before I decided to take a look and see if you could use it with ANTS Profiler. After my first attempt at profiling [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/photos/blog/images/417/original.aspx" mce_href="http://www.wahooga.com/photos/blog/images/417/original.aspx"><img src="/photos/blog/images/417/secondarythumb.aspx" mce_src="/photos/blog/images/417/secondarythumb.aspx" align="right" border="0" height="116" width="160"></a>Had a question today from a customer interested in profiling his unit tests using MSTest which is part of the testing element of Visual Studio Team System. As I hadn&#8217;t used MSTest before I decided to take a look and see if you could use it with ANTS Profiler. </p>
<p>After my first attempt at profiling only produced results for MSTest, I suspected that my tests were being run in a seperate process. Luckily MSTest has a /noisolation argument and once I used this everything ran as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wahooga.com/2007/05/02/profiling-with-ants-profiler-and-mstest/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

