﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 23 May 2026 19:26:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20760.aspx</link><description>Hello all,&lt;/P&gt;&lt;P&gt;I am trying to build, deploy, and the run another process against a Database all under one button.&amp;nbsp; The problem is that I don't know when the DeployMetaData is finished before moving on.&lt;/P&gt;&lt;P&gt;Is there a way for me to know that the process has finished from within c#?&lt;/P&gt;&lt;P&gt;As always thanks for the help ;)&lt;/P&gt;&lt;P&gt;-Cory</description><pubDate>Fri, 14 Nov 2008 14:31:59 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20773.aspx</link><description>Glad you got it going, Cory! :cool:</description><pubDate>Fri, 14 Nov 2008 14:31:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20771.aspx</link><description>I was able to use the samples Ivan produced to get the needed event to fire.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Ivan!&lt;/P&gt;&lt;P&gt;-Cory</description><pubDate>Fri, 14 Nov 2008 14:03:21 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20769.aspx</link><description>No I'm not able to open the sample code at all.&lt;/P&gt;&lt;P&gt;I appreciate the help.</description><pubDate>Fri, 14 Nov 2008 13:50:18 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20768.aspx</link><description>I assume you were not able to open the C# SampleDataInstallerClass project. &lt;P&gt;But here are the lines for the _DatabaseSetup, although I think you would get some more ideas having a look at the DataProgress.cs.&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.DBEngine.SQL.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DatabaseMigrator&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _DatabaseSetup;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;//-- Create the handlers&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;_DatabaseSetup.DeployDataComplete += &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.DBEngine.SQL.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DatabaseMigrator&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DeployDataCompleteEventHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(_DatabaseSetup_DeployDataComplete);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt; Indicates that the data deployment started by the DeployData command is complete&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;/summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;param name="e"&amp;gt;&amp;lt;/param&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _DatabaseSetup_DeployDataComplete(MicroFour.StrataFrame.DBEngine.SQL.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SQLManagerEventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;//-- Since we are finished, close the form with a good result&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;DialogResult = System.Windows.Forms.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DialogResult&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.OK;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet]</description><pubDate>Fri, 14 Nov 2008 13:42:03 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20765.aspx</link><description>I think I understand, however in c# there is no withevents&amp;nbsp;for the databaseMigrator object&amp;nbsp;and I'm having considerable issues making the event handler for it.&amp;nbsp; Here is what I have.&amp;nbsp; The Question mark indicates where I have no idea what to enter.&amp;nbsp; As always I appreciate the help:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DatabaseMigrator&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; _DatabaseSetup;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; DataDeployment()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;._DatabaseSetup.BuildComplete += &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;DatabaseMigrator&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;BuildCompleteEventHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;FONT color=#dd3333&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;/P&gt;&lt;P&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 14 Nov 2008 12:49:54 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20764.aspx</link><description>Cory.&lt;P&gt;Not sure why you can't open the solution. Maybe you could try installing them again.&lt;/P&gt;&lt;P&gt;Anyway, if you can open the project, go to the SampleDataInstallerClass and have a look at the code of the DataProgress.vc (or DataProgress.cs, as I think you are doing C#) and check how the _DatabaseSetup is declared as MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.&lt;/P&gt;&lt;P&gt;If you check the&amp;nbsp;"Handled Events" region, you will find a _DatabaseSetup_DeployDataComplete routine, that closes the form when done.&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;summary&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' Indicates that the data deployment started by the DeployData command is complete&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;/summary&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;param name="e"&amp;gt;&amp;lt;/param&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub _DatabaseSetup_DeployDataComplete(ByVal e As MicroFour.StrataFrame.DBEngine.SQL.SQLManagerEventArgs) Handles _DatabaseSetup.DeployDataComplete&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Since we are finished, close the form with a good result&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DialogResult = Windows.Forms.DialogResult.OK&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;[/codesnippet]</description><pubDate>Fri, 14 Nov 2008 11:53:48 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20763.aspx</link><description>Howdy,&lt;/P&gt;&lt;P&gt;I am currently having issues opening the solution for the Database INstaller (tells me that the vbproj files don't exists) but I have opened up the files in the solution seperately as well as serached the project files through Widows search for "&lt;FONT size=2&gt;BuildComplete" as this is the event that I'd like to use and am unable to find an example of it.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Could someone post an example of how to create the event handler and use this event?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks for all the help,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Cory&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 14 Nov 2008 10:34:07 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20762.aspx</link><description>If you are trying to do this all through T-SQL, then Ivan's suggestion of the Profile scripts may be helpful.&amp;nbsp; However, if you are just wanting to do something outside of the DDT altogether, and I assume that you are using the database Migrator, then there are events that tell you each phase of what is going on, including when the meta-data has been completed.&amp;nbsp; For a sample of these events, look at the Database Installer Sample.</description><pubDate>Fri, 14 Nov 2008 09:52:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Is there a way to know that the DatabaseMigrator.DeployMetaData is finished programatically</title><link>http://forum.strataframe.net/FindPost20761.aspx</link><description>Hi Cory.&lt;/P&gt;&lt;P&gt;Would the DDT Profile Scripts be the case?&lt;/P&gt;&lt;P&gt;Have a look at the help file under the Database Deployment Toolkit / Profile Scripts. You can tell it to run Pre or Post Deployment.</description><pubDate>Fri, 14 Nov 2008 09:47:13 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>