﻿<?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?)  / Deploying a PackageIt file / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Fri, 21 Nov 2008 18:18:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>That is when you will want to use the Option 2 mentioned above.</description><pubDate>Wed, 01 Nov 2006 15:06:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>Is there any method of deploying on SQL Servers remotely located for web applications. I definitely cant install DDT on the database server.</description><pubDate>Wed, 01 Nov 2006 15:03:18 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>At first glance I am not seeing this.  It must have been left out of the compile help file.  We will get this addressed :blush:  sorry for any trouble.</description><pubDate>Wed, 01 Nov 2006 15:02:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Thanks. are these options documented in the DDT Help File ? </description><pubDate>Wed, 01 Nov 2006 14:18:02 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>There are three ways to deploy your package.  Below are each of the options.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1&lt;BR&gt;&lt;/STRONG&gt;Deploy your package file through the DDT run-time environment.  See the image below for a point of reference.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/f20b4e63-e1b5-4ecc-a4f1-7cf5.jpg"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;&lt;BR&gt;This option is geared more towards installations.  You can programmatically deploy a package using the a class that may look something like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;Imports MicroFour.StrataFrame.DBEngine.SQL&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;Public Class SetupMenu&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;    ''' &amp;lt;summary&amp;gt;&lt;BR&gt;    ''' Declare the variable with events so that we can capture progress indicators&lt;BR&gt;    ''' &amp;lt;/summary&amp;gt;&lt;BR&gt;    ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;    Private WithEvents _DataDeploy As DatabaseMigrator&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;    ''' &amp;lt;summary&amp;gt;&lt;BR&gt;    ''' Deploy the data to the specified server&lt;BR&gt;    ''' &amp;lt;/summary&amp;gt;&lt;BR&gt;    ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;    Private Sub DeployData()&lt;BR&gt;        '-- Create a new migrator instance&lt;BR&gt;        _DataDeploy = New DatabaseMigrator("localhost", False, Me, "sa", "mypassword")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;        '-- Deploy the structure to the SQL server&lt;BR&gt;        _DataDeploy.DeployMetaData("c:\MyPackageFile.pkg", "")&lt;BR&gt;    End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;    ''' &amp;lt;summary&amp;gt;&lt;BR&gt;    ''' Captures any detailed information about the progress of the deployment&lt;BR&gt;    ''' &amp;lt;/summary&amp;gt;&lt;BR&gt;    ''' &amp;lt;param name="e"&amp;gt;&amp;lt;/param&amp;gt;&lt;BR&gt;    ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;    Private Sub _DataDeploy_ProgressUpdate(ByVal e As MicroFour.StrataFrame.DBEngine.SQL.SQLManagerEventArgs) Handles _DataDeploy.ProgressUpdate&lt;BR&gt;        Me.ProgressBar.Value = e.ProgressPercent&lt;BR&gt;        Me.lblTitle.Text = e.Title&lt;BR&gt;        Me.lblMessage.Text = e.Message&lt;BR&gt;    End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;    Private Sub SetupMenu_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.GotFocus&lt;BR&gt;        'WinAPI.SetForegroundWindow(Me.Handle.ToInt32())&lt;BR&gt;        'Me.BringToFront()&lt;BR&gt;        WinAPI.BringWindowToTop(Me.Handle.ToInt32())&lt;BR&gt;    End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;BR&gt;        MenuSystem.UDPMenuSession.SendMessage(UDPMessageType.VisualFoxProCommand, Me.Textbox1.Text)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT color=#1111ff&gt;    End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;End Class&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;&lt;FONT color=#1f5080&gt;&lt;STRONG&gt;Option 3&lt;BR&gt;&lt;/STRONG&gt;This is similar to Option 2, but you do not have to use your own dialogs.  You can use the same dialogs that you see witin the DDT run-time environment.  This is how you would call them.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;&lt;FONT color=#1f5080&gt;Dim loDeploy As New MicroFour.StrataFrame.DBEngine.Deployment.MDDeployMain("c:\MyPackage.pkg", "")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#1111ff&gt;&lt;FONT color=#1f5080&gt;loDeploy.ShowDialog()&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 01 Nov 2006 13:17:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Deploying a PackageIt file</title><link>http://forum.strataframe.net/Topic4030-11-1.aspx</link><description>I am quite new to DDT so pls pardon my lack of knowledge on DDT. I have made a DDT Package-IT File, but am not able to figure out how to deploy on SQL 2000 database on my client's server using the Package-IT file.  </description><pubDate>Wed, 01 Nov 2006 11:03:06 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item></channel></rss>