﻿<?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?)  » How to get Database Name in Profile from the Package File</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 02:49:36 GMT</lastBuildDate><ttl>20</ttl><item><title>How to get Database Name in Profile from the Package File</title><link>http://forum.strataframe.net/FindPost21603.aspx</link><description>I've created a command line version of SampleDataInstaller solution where you pass in the package path, sqlserver, username, and password.  This deploys the database just like the DDT.  Now I want to be able to pass in a different database name than what's in the package.  I know the DatabaseMigrator method DeployMetaData() allows you to pass in a DatabaseTargetName array.&lt;br&gt;
&lt;br&gt;
I guess the part I don't understand is how do I know what the database name in the profile is to pass to the DatabaseTargetName constructor?  I tried looking into the PackageFile class, but that looks like a ton of work to extract the XML files and look in those, but I figured there must be an easier way.&lt;br&gt;
&lt;br&gt;
What am I missing here?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Derek</description><pubDate>Wed, 21 Jan 2009 13:27:22 GMT</pubDate><dc:creator>Derek Price</dc:creator></item><item><title>RE: How to get Database Name in Profile from the Package File</title><link>http://forum.strataframe.net/FindPost21606.aspx</link><description>Yeah, that should do it.&amp;nbsp; Let me know if that wasn't what you were looking for.</description><pubDate>Wed, 21 Jan 2009 13:27:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to get Database Name in Profile from the Package File</title><link>http://forum.strataframe.net/FindPost21605.aspx</link><description>I think I just found what I needed:&lt;br&gt;
&lt;br&gt;
[codesnippet]var databaseNames = DatabaseMigrator.EnumDatabaseNames(PackagePath, FrameworkPassword);[/codesnippet]</description><pubDate>Wed, 21 Jan 2009 13:11:30 GMT</pubDate><dc:creator>Derek Price</dc:creator></item></channel></rss>