DDT Questions


Author
Message
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (664 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Philipp Guntermann (08/26/2008)
Sorry for thread-hijack BigGrin

Are you sure about that ? Because when i put comments into the pre-create/environent code block within the ddt, it doesnt show on the sql server after deployment.

Hah, quite the hi-jack, there Wink.

It used to keep those comments, but the way in which the DDT handles stored procedures has changed quite a bit in the last year an a half. The editing and maintenance tools are now a lot more robust, but it will also clean out any comments (as you discovered) from the pre-create/environment code block.

Any comments used within the main code block, however, will be left untouched at deployment time.

Philipp Guntermann
Philipp Guntermann
StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)
Group: Forum Members
Posts: 141, Visits: 263
Sorry for thread-hijack BigGrin

Ben Chase (01/25/2007)
3) 

4)  Yes, anything place within the pre-create/environment code is copied directly into the sproc.  So, if you edit the sproc on SQL Server, it will contain your comments.

Are you sure about that ? Because when i put comments into the pre-create/environent code block within the ddt, it doesnt show on the sql server after deployment.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Glad to here it. I'll look at the sample again (this time I'll try to absorb more of it). I don't think the DDT will work at all for my normal db updates, but I'm using for my security db (separate db, no fancy-smancy SQL stuff to work about) and it works great and I'm hoping I can use it to update some static application data. That will be nice BigGrin



Thanks for all the info!
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Look at the Database Installer Sample that is in the Samples and Solutions section of the forum.  This sample shows you how to use the DatabaseMigrator class.  The meta-data and data deployment are two different methods.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK, so if I just wanted to use the DDT to deploy data (never schema) how would I do that?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Correct.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Just be absolutely clear (as this is NOT something I want to make a mistake on), I have a profile with NO sprocs or views defined (I would have tables defined though) and I deploy this package to an existing database that has existing views/sprocs, after the deployment, I would have no views or sprocs in the database, right?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
They get deleted and recreated every time. 
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
So, one more question. If I don't define any views or sprocs in DDT, will it still delete all existing views/sprocs in the database?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Why not just delete ViewA if found, ignore ViewC and ViewD, then add ViewA back in.

Because this would require major changes to our engine.  We use SMO and have to follow certain rules.  It would require much more work to ignore certain views.  Again, this goes back to my previous post.  It defies the nature of meta-data anyway.  We should be able to accurately rely on the contents of the meta-data when deploying.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search