StrataFrame Forum

Executing a package for different database name not working

http://forum.strataframe.net/Topic29090.aspx

By Melvin Xuereb - 11/24/2010

Hi,

I'm having issues when trying to execute a package through StrataFrames DLLs.

I have the following scenario

2Databases:
Database1
Database2

Database2 was imported into StrataFrame DDT profile - profile name is 'DDTProfile'.

The file name in the data files of the filegroup 'PRIMARY' is set to '$DbName$'
I set a pre deployment script to drop 'table1'

A package was created from DDT and executed through the following code:

  DatabaseTargetName dbToUpdate = new DatabaseTargetName("DDTProfile");
  dbToUpdate.NameOnServer = "Database1";
  _dbMigrator.DeployMetaData(@"D:\DevPackages\Package.pkg", "", new DatabaseTargetName[]{ dbToUpdate });



I understand that when executed, this package should drop 'table1' from 'Database1', which isn't doing. 

Instead, it is dropping the table from 'Database2'.

Below please find a sample of the log which the DDT returns in the ProgressUpdate event:
Database Progress Update:99% completed - Ensuring Views, Stored Procedures, and UDFs Complete - View, Stored Procedure, and UDF verification complete.
Database Progress Update:99% completed - Ensuring View Indexes for 'Database2' - Ensuring Indexes exist on database 'Database2'
Database Progress Update:99% completed - Ensuring View Indexes Complete - Index verification complete.



Am I missing something here? 

Thanks,
Melvin



               
By Ivan George Borges - 11/24/2010

Hi Melvin.

Hard to say just looking at your post. But for a starter, follow the thread from the post bellow and you will find some points you can check on your project:

http://forum.strataframe.net/FindPost20018.aspx
By Melvin Xuereb - 11/24/2010

Thanks!! Case sensitivity problem too!

Melvin
By Ivan George Borges - 11/24/2010

You're welcome. Cool