﻿<?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?)  » Automate running a DDT Package</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 19 May 2026 13:05:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32599.aspx</link><description>Not sure what I did but after rebuilding the package it now works.</description><pubDate>Tue, 20 May 2014 11:44:41 GMT</pubDate><dc:creator>Ross L Rooker, Sr.(1)</dc:creator></item><item><title>Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost20742.aspx</link><description>I can see the command line for building a DDT package but am unable to locate any way of automatically running the package.&lt;/P&gt;&lt;P&gt;Are there command line options to the DDT to run the package?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cory</description><pubDate>Tue, 20 May 2014 11:44:41 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32598.aspx</link><description>That worked. Now my next issue: The DT package creates tables, views and also a UDF that 1 of the views refer to. The view and the UDF work perfect in SQL so there is no issue with Syntax of the View or UDF as far as SQL is concerned. But when I use the DT to dun the package I get an error when the View is being created:&lt;br/&gt;&lt;br/&gt;Creating failed for view, Sql Exception: funcConvertVersionNumber is not recognized as a built in function name.&lt;br/&gt;&lt;br/&gt;I played around with changing the "priority" of the UDF to be less than and also greater than the priority on the view with no luck.&lt;br/&gt;&lt;br/&gt;Here is the view:&lt;br/&gt;&lt;br/&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;SELECT&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; vc_int_codeid, vc_vcr_version, vc_dte_entry_date, vc_bit_mandatory, vc_vcr_ftp, funcConvertVersionNumber(vc_vcr_version) &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; VersionNumberValue &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;FROM&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; dbo.tblVersionControl&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;br/&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;Here is the UDF as it appears in the dt:&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;(@VersionString varchar(30))&lt;br/&gt;RETURNS decimal(20,3)&lt;br/&gt;AS&lt;br/&gt;BEGIN&lt;br/&gt;&amp;nbsp;DECLARE @strVersionReversed varchar(30) -- holds reversed version number&lt;br/&gt;&amp;nbsp;DECLARE @strVersionNumWhole varchar(30) -- holds whole number of converted version number&lt;br/&gt;&amp;nbsp;DECLARE @strVersionNumDec varchar(20)&amp;nbsp;&amp;nbsp; -- holds decimal number of converted version number&lt;br/&gt;&amp;nbsp;DECLARE @decVersionConverted decimal(20,3)&amp;nbsp;&amp;nbsp;&amp;nbsp; -- holds converted version number&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&amp;nbsp;-- reverse the version string&lt;br/&gt;&amp;nbsp;SET @strVersionReversed =&amp;nbsp; REVERSE(@VersionString)&amp;nbsp;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&amp;nbsp;-- Separate the revision number from the major, minor, and build number&lt;br/&gt;&amp;nbsp;SET @strVersionNumWhole = SUBSTRING(@strVersionReversed, CHARINDEX('.', @strVersionReversed) + 1, 30)&lt;br/&gt;&amp;nbsp;SET @strVersionNumDec = SUBSTRING(@strVersionReversed, 1, CHARINDEX('.', @strVersionReversed))&lt;br/&gt;&amp;nbsp;SET @strVersionNumWhole = REPLACE(REVERSE(@strVersionNumWhole), '.', '')&amp;nbsp;-- reverse to proper order AND remove decimals&lt;br/&gt;&amp;nbsp;SET @strVersionNumDec = REVERSE(@strVersionNumDec)&amp;nbsp;-- reverse to proper order&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&amp;nbsp;SET @decVersionConverted = CAST(@strVersionNumWhole + @strVersionNumDec as decimal(20,3))&amp;nbsp;-- build decimal value of version number&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&amp;nbsp;RETURN(@decVersionConverted) -- return the number value&lt;br/&gt;END&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;Why is this erroring?&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;br/&gt;&lt;/font&gt;</description><pubDate>Tue, 20 May 2014 10:07:07 GMT</pubDate><dc:creator>Ross L Rooker, Sr.(1)</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32596.aspx</link><description>Perfect! That worked.</description><pubDate>Tue, 20 May 2014 06:15:09 GMT</pubDate><dc:creator>Ross L Rooker, Sr.(1)</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32592.aspx</link><description>Ross, you might have to change the "Startup Object" that is located on the Application tab of the project properties. &amp;nbsp;You should be able to select Program.cs in the combo box or something like that to set the entry point of the application.</description><pubDate>Mon, 19 May 2014 13:45:48 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32587.aspx</link><description>I am getting 1 error: Could not find 'Sub Main' specified for Main method.&lt;br/&gt;&lt;br/&gt;The SampleDataInstallerClass rebuilds fine.&lt;br/&gt;&lt;br/&gt;When rebuilding the SampleInstallerExecutable gives the error above.&lt;br/&gt;&lt;br/&gt;The AppMain.cs has the following line in it:&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;[&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;STAThread&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;()]&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;static&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; Main()&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;So I am not certain what the error is about?</description><pubDate>Mon, 19 May 2014 09:49:32 GMT</pubDate><dc:creator>Ross L Rooker, Sr.(1)</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32549.aspx</link><description>It should. &amp;nbsp;Is it giving you a bunch of errors about "Table is not defined" and "Database is not defined?" &amp;nbsp;Stuff like that means you don't have the property SMO assemblies available on your computer.</description><pubDate>Thu, 08 May 2014 13:46:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost32547.aspx</link><description>&lt;span class="shl"&gt;&lt;strong&gt;&lt;font color=""&gt;Is the DatabaseInstallerSample supposed to&amp;nbsp; compile error free? The one in the StrataFrame C# samples?&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;</description><pubDate>Thu, 08 May 2014 13:28:00 GMT</pubDate><dc:creator>Ross L Rooker, Sr.(1)</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost20751.aspx</link><description>Thanks for the Info Ivan :)</description><pubDate>Thu, 13 Nov 2008 13:40:28 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Automate running a DDT Package</title><link>http://forum.strataframe.net/FindPost20750.aspx</link><description>Hi Cory.&lt;/P&gt;&lt;P&gt;Do you mean to run the DDT to deploy the structures and data from the command line? Not that I know.&lt;/P&gt;&lt;P&gt;But you can create a deployment application very easily and use any DDT package to be deployed. Have a look at the samples, under the DatabaseInstallerSample to give you some ideas.</description><pubDate>Thu, 13 Nov 2008 11:07:41 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>