﻿<?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?)  » Deploy 1 package to multiple databases on same server</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 23:05:58 GMT</lastBuildDate><ttl>20</ttl><item><title>Deploy 1 package to multiple databases on same server</title><link>http://forum.strataframe.net/FindPost25732.aspx</link><description>Hi guys,&lt;br&gt;
&lt;br&gt;
I'm trying to do the above.  I've looked at the sampledatainstaller and DatabaseMigratorClass info. Still have a few questions though.&lt;br&gt;
1.  Is it possible to install a database to a filegroup programmatically? IOW supply the value at runtime? &lt;br&gt;
2.  How can I select a database to apply a profile script to that's not in the drop down?  Is it possible to change that value on the fly as well? &lt;br&gt;
3.  If I want to do a Grant EXEC on PPMUserSecurity_Delete to SOMEID in the script for stored procedures, is it possible to pass in the SOMEID value on the fly?&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Wed, 03 Feb 2010 10:21:18 GMT</pubDate><dc:creator>Marcel Heitlager</dc:creator></item><item><title>RE: Deploy 1 package to multiple databases on same server</title><link>http://forum.strataframe.net/FindPost25746.aspx</link><description>Yep, you are right. I went in and reproduced it and we aren't accounting for wildcards when we check for duplicate physical file names. &lt;/P&gt;&lt;P&gt;We've corrected it, and the correction will go out with the next build.&amp;nbsp; In the mean time, the work around is to add anything to the wildcard to make it a unique name for the profile.&amp;nbsp;So instead of the default "$DbName$", change the second database to "$DbName$_Standard" or anything else unique for the profile and it will allow you to save the record and deploy.</description><pubDate>Wed, 03 Feb 2010 10:21:18 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: Deploy 1 package to multiple databases on same server</title><link>http://forum.strataframe.net/FindPost25742.aspx</link><description>Funny thing happened this evening on the way to the bathroom at Subways.  I was thinking, you know, that wildcard value pre-filled in that field with the instructions next to it, probably takes care of the database naming issue.  I tried it out, and then looking at the xml files for the Profilescripts I noticed that it reference the Database key, not the name, so I figured I bet that takes care of that too.  It did! Later I got home and thought, let me reply to my message before they respond. Arghh!! too late.  &lt;br&gt;
&lt;br&gt;
Anyway, thanks (though I can't promise that later I won't have another question if I'm nowhere near the epiphany chamber.)&lt;br&gt;
&lt;br&gt;
[b]However, I got a little issue now.[/b]  I have two databases in one profile. I added the wildcard to the filegroup for the first database.  I left the filegroup for the second database blank, because it wouldn't let me put the wildcard in it.  That worked for a while, but then suddenly the name of the last database I installed appeared in the 2nd database's filegroup.  When I try to give the 2nd database the same wildcard value it won't let me. Neither will it let me leave it blank.  What gives? Is there a "wilcard" type of way to force both tables in same filegroup using your interface?&lt;br&gt;
&lt;br&gt;
Marcel</description><pubDate>Wed, 03 Feb 2010 01:38:18 GMT</pubDate><dc:creator>Marcel Heitlager</dc:creator></item><item><title>RE: Deploy 1 package to multiple databases on same server</title><link>http://forum.strataframe.net/FindPost25737.aspx</link><description>Yes, this is all possible and is actually what we do with our medical application.&lt;/P&gt;&lt;P&gt;When you create a file group, you can use a wildcard which will change with the name provided for a database.&amp;nbsp; This is actually done by default, but this is how you can have as many different databases deployed to the same server through the same package with a different name.&amp;nbsp; You just have to supply the deployment name.&amp;nbsp; You can do this programmatically or through the standard pre-built dialogs.&amp;nbsp; To have the file group rename itself with the database name you supply at run-time, use the $DbName$ wildcard:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/53b66611-7673-43bd-8ee6-4e70.png"&gt;&lt;/P&gt;&lt;P&gt;As for executing a profile script for a database that doesn't exist, just use the master database and then you can use your profile code to either set a database or execute on a database just as you would for any other SPROC.</description><pubDate>Tue, 02 Feb 2010 18:19:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>