﻿<?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?)  » Deployment Options for DatabaseMigrator class?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:52:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27839.aspx</link><description>When using the DDT to deploy a package there are 3 Deployment Options available:&lt;br&gt;
1- Standard Deployment&lt;br&gt;
2- Deploy Stored Procedures, Views and UDFs Only.&lt;br&gt;
3- Deploy Data Only&lt;br&gt;
&lt;br&gt;
When using the DatabaseMigrator class, is there a way to provide a Deployment Option?&lt;br&gt;
&lt;br&gt;
I have a customer with several million records and sometimes only a View or Stored Procedure changed, but the deployment will take over 30 minutes when using the DatabaseMigrator and I would like to programatically setup my update process to only update what have changed.&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Fri, 06 Aug 2010 10:31:52 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27859.aspx</link><description>Yep, you really could send a parameters file and work with it depending on your situations.&lt;/P&gt;&lt;P&gt;Glad the links helped. ;)</description><pubDate>Fri, 06 Aug 2010 10:31:52 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27855.aspx</link><description>Hi Ivan,&lt;br&gt;
&lt;br&gt;
This post by Randy Jean [url=http://forum.strataframe.net/FindPost20066.aspx]http://forum.strataframe.net/FindPost20066.aspx[/url] really helps.&lt;br&gt;
&lt;br&gt;
Since what I am trying to do is build an self automated update process so when I release an update to the customer, based on some parameters this will update the database and deploy needed data without user intervention.&lt;br&gt;
&lt;br&gt;
In this case, this database could have several million records and hence the need for me to control how the DatabaseMigrator class should apply the update, but I am having some problems figuring out how to let the DatabaseMigrator do their job automatically, probably using an encrypted XML file in the same folder as the DDT package file.  &lt;br&gt;
&lt;br&gt;
Anyway, thanks again for the prompt assistance and comments.</description><pubDate>Fri, 06 Aug 2010 09:55:28 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27851.aspx</link><description>You're welcome, my friend. :cool:</description><pubDate>Fri, 06 Aug 2010 08:20:10 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27850.aspx</link><description>Thanks Ivan.</description><pubDate>Fri, 06 Aug 2010 08:01:55 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27849.aspx</link><description>See if this ones help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost21603.aspx"&gt;http://forum.strataframe.net/FindPost21603.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost20018.aspx"&gt;http://forum.strataframe.net/FindPost20018.aspx&lt;/A&gt;</description><pubDate>Fri, 06 Aug 2010 07:57:34 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27844.aspx</link><description>Ivan,&lt;br&gt;
&lt;br&gt;
If you don't mind can you post a VB sample code on how to create the collection for the DatabaseTargetName?&lt;br&gt;
[codesnippet]&lt;br&gt;
_DatabaseSetup.DeployMetaData(_DDTPackagePathAndName, _DDTPackagePassword, DatabaseTargetName, True)&lt;br&gt;
[/codesnippet]</description><pubDate>Thu, 05 Aug 2010 16:56:25 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27842.aspx</link><description>Thank you Ivan.&lt;br&gt;
&lt;br&gt;
I didn't notice the overload, I was using this code only:&lt;br&gt;
_DatabaseSetup.DeployMetaData(_DDTPackagePathAndName, _DDTPackagePassword)&lt;br&gt;
&lt;br&gt;
Now for the DatabaseTargetNames, I have to create a string array with the names of the database I want to create? usually will be just one name.</description><pubDate>Thu, 05 Aug 2010 16:30:12 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployment Options for DatabaseMigrator class?</title><link>http://forum.strataframe.net/FindPost27840.aspx</link><description>Hi Edhy.&lt;P&gt;Have a look at the DatabaseMigrator.DeployMetaData overload:&lt;/P&gt;&lt;DIV class=section&gt;&lt;DIV class=sectionTitle &amp;#111;nclick=toggleSection(this.parentNode)&gt;&lt;SPAN class=keyword&gt;public&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;void&lt;/SPAN&gt; &lt;SPAN class=identifier&gt;DeployMetaData&lt;/SPAN&gt;(&lt;BR&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;string&lt;/A&gt; &lt;SPAN class=parameter&gt;MetaDataPkgPathAndFileName&lt;/SPAN&gt;,&lt;BR&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;string&lt;/A&gt; &lt;SPAN class=parameter&gt;PkgPassword&lt;/SPAN&gt;,&lt;BR&gt;&lt;A href="mk:@MSITStore:C:\Program%20Files%20(x86)\MicroFour\StrataFrame\Documentation\SF%20Class%20Library.chm::/html/984132bd-db73-661b-ae64-6da4b5b754e7.htm"&gt;DatabaseTargetName&lt;/A&gt;[] &lt;SPAN class=parameter&gt;DatabaseTargetNames&lt;/SPAN&gt;,&lt;BR&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target=_blank&gt;bool&lt;/A&gt; &lt;SPAN class=parameter&gt;sprocsViewsUdfsOnly&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV class=sectionContent&gt;&lt;DIV id=syntaxSection&gt;&lt;DIV id=syntaxBlocks&gt;&lt;DIV style="DISPLAY: none" class=code x-lang="VisualBasic"&gt;&lt;PRE&gt;&lt;SPAN class=keyword&gt;Public&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;Sub&lt;/SPAN&gt; &lt;SPAN class=identifier&gt;DeployMetaData&lt;/SPAN&gt; ( _&lt;SPAN class=parameter&gt;MetaDataPkgPathAndFileName&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;As&lt;/SPAN&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;, _&lt;SPAN class=parameter&gt;PkgPassword&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;As&lt;/SPAN&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;, _&lt;SPAN class=parameter&gt;DatabaseTargetNames&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;As&lt;/SPAN&gt; &lt;A href="mk:@MSITStore:C:\Program%20Files%20(x86)\MicroFour\StrataFrame\Documentation\SF%20Class%20Library.chm::/html/984132bd-db73-661b-ae64-6da4b5b754e7.htm"&gt;DatabaseTargetName&lt;/A&gt;(), _&lt;SPAN class=parameter&gt;sprocsViewsUdfsOnly&lt;/SPAN&gt; &lt;SPAN class=keyword&gt;As&lt;/SPAN&gt; &lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target=_blank&gt;Boolean&lt;/A&gt; _)&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV style="DISPLAY: none" class=code x-lang="ManagedCPlusPlus"&gt;&lt;PRE&gt;&lt;SPAN class=keyword&gt;public&lt;/SPAN&gt;:&lt;SPAN class=keyword&gt;void&lt;/SPAN&gt; &lt;SPAN class=identifier&gt;DeployMetaData&lt;/SPAN&gt;(&lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;^ &lt;SPAN class=parameter&gt;MetaDataPkgPathAndFileName&lt;/SPAN&gt;, &lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;^ &lt;SPAN class=parameter&gt;PkgPassword&lt;/SPAN&gt;, &lt;SPAN class=keyword&gt;array&lt;/SPAN&gt;&amp;lt;&lt;A href="mk:@MSITStore:C:\Program%20Files%20(x86)\MicroFour\StrataFrame\Documentation\SF%20Class%20Library.chm::/html/984132bd-db73-661b-ae64-6da4b5b754e7.htm"&gt;DatabaseTargetName&lt;/A&gt;^&amp;gt;^ &lt;SPAN class=parameter&gt;DatabaseTargetNames&lt;/SPAN&gt;, &lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target=_blank&gt;bool&lt;/A&gt; &lt;SPAN class=parameter&gt;sprocsViewsUdfsOnly&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id=parameters&gt;&lt;DIV class=section&gt;&lt;DIV class=sectionTitle &amp;#111;nclick=toggleSection(this.parentNode)&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=sectionTitle &amp;#111;nclick=toggleSection(this.parentNode)&gt;&lt;STRONG&gt;Parameters&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=sectionContent&gt;&lt;DL paramName="MetaDataPkgPathAndFileName"&gt;&lt;DT&gt;&lt;SPAN class=parameter&gt;MetaDataPkgPathAndFileName&lt;/SPAN&gt;&amp;nbsp;(&lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;) &lt;DD&gt;The path and filename of the package file containing the metadata&lt;/DD&gt;&lt;/DL&gt;&lt;DL paramName="PkgPassword"&gt;&lt;DT&gt;&lt;SPAN class=parameter&gt;PkgPassword&lt;/SPAN&gt;&amp;nbsp;(&lt;A href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target=_blank&gt;String&lt;/A&gt;) &lt;DD&gt;The password for the package file&lt;/DD&gt;&lt;/DL&gt;&lt;DL paramName="DatabaseTargetNames"&gt;&lt;DT&gt;&lt;SPAN class=parameter&gt;DatabaseTargetNames&lt;/SPAN&gt;&amp;nbsp;(&lt;SPAN class=languageSpecificText&gt;&lt;SPAN class=cpp&gt;array&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;A href="mk:@MSITStore:C:\Program%20Files%20(x86)\MicroFour\StrataFrame\Documentation\SF%20Class%20Library.chm::/html/984132bd-db73-661b-ae64-6da4b5b754e7.htm"&gt;DatabaseTargetName&lt;/A&gt; &lt;SPAN class=languageSpecificText&gt;&lt;SPAN class=cpp&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=cs&gt;[]&lt;/SPAN&gt;&lt;SPAN class=vb&gt;()&lt;/SPAN&gt;&lt;SPAN class=nu&gt;[]&lt;/SPAN&gt;&lt;/SPAN&gt;) &lt;DD&gt;A collection of target database names. This allows the database name to change dynamically from what is within the package file at run-time.&lt;/DD&gt;&lt;/DL&gt;&lt;DL paramName="sprocsViewsUdfsOnly"&gt;&lt;DT&gt;&lt;SPAN class=parameter&gt;sprocsViewsUdfsOnly&lt;/SPAN&gt;&amp;nbsp;(&lt;A href="http://msdn2.microsoft.com/en-us/library/a28wyd50" target=_blank&gt;Boolean&lt;/A&gt;) &lt;DD&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description><pubDate>Thu, 05 Aug 2010 15:38:57 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>