﻿<?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 » Issues  » DDT, SProcs and Views . . . Oh, My!</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 10:39:48 GMT</lastBuildDate><ttl>20</ttl><item><title>DDT, SProcs and Views . . . Oh, My!</title><link>http://forum.strataframe.net/FindPost18525.aspx</link><description>For&amp;nbsp;a new project I imported 2 tables into the DDT.&amp;nbsp; No stored procedures were imported.&amp;nbsp; No views were imported.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I made sure that object name&amp;nbsp;history was clear.&lt;/P&gt;&lt;P&gt;I edited these two tables.&amp;nbsp; I also added two new tables to the DDT.&lt;/P&gt;&lt;P&gt;The object name history was looking good and ready for a deployment.&lt;/P&gt;&lt;P&gt;I deployed my changes to the database.&amp;nbsp; At this point, I have four tables that should be showing up in the table list with my changes.&amp;nbsp; They did!!&amp;nbsp; Suh-weeet!&amp;nbsp; This is great stuff...and so easy. :w00t:&lt;/P&gt;&lt;P&gt;Maybe too easy!?!&amp;nbsp; &lt;/P&gt;&lt;P&gt;At the time I did not know it, but ALL stored procedures were&amp;nbsp;dropped from the database.&amp;nbsp; ALL views were dropped from the database.&amp;nbsp; Only table schema should have been altered in the DB, right?&amp;nbsp; Did I blow by some checkbox somewhere that says, "Drop all SPs/Views"?&amp;nbsp; What configuration of the DDT would cause this behavior?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Please help me so that I am not dropping things every time I deploy changes to my database.&amp;nbsp; :hehe:&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Mon, 18 Aug 2008 16:41:12 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: DDT, SProcs and Views . . . Oh, My!</title><link>http://forum.strataframe.net/FindPost18552.aspx</link><description>Simple enough.&amp;nbsp; Thanks!!</description><pubDate>Mon, 18 Aug 2008 16:41:12 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: DDT, SProcs and Views . . . Oh, My!</title><link>http://forum.strataframe.net/FindPost18550.aspx</link><description>It will require a full version of SSMS.&amp;nbsp; But once you have it, just right-click a sproc that the DDT depoyed, go the extended property and delete it.&amp;nbsp; If you want to do it in code...well, that is more complicated :D</description><pubDate>Mon, 18 Aug 2008 14:21:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DDT, SProcs and Views . . . Oh, My!</title><link>http://forum.strataframe.net/FindPost18545.aspx</link><description>[quote]depending on how you have deployed to this machine in the past...So these stored procedures, views, or UDFs had&amp;nbsp;[an] extended property applied to it.[/quote]&lt;P&gt;I had previously imported everything.&amp;nbsp; After a couple of bumps in the table and indexing roads, I started over and chose to simply import the specific tables that I needed.&amp;nbsp; What I failed to comprehend was that the database itself was altered..even though I did not change certain parts of it (sp, views, etc.).&amp;nbsp; Since each sproc and view had an extended property updated...and my last deployment did not have the sprocs and views in the schema...then the deployment covertly dropped all of them.&lt;P&gt;Ok...I can accept that.&amp;nbsp; &lt;P&gt;How do I remove that extended property&amp;nbsp;on all db objects&amp;nbsp;so I can start this process over again?</description><pubDate>Mon, 18 Aug 2008 13:49:46 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: DDT, SProcs and Views . . . Oh, My!</title><link>http://forum.strataframe.net/FindPost18539.aspx</link><description>[quote]At the time I did not know it, but ALL stored procedures were&amp;nbsp;dropped from the database.&amp;nbsp; ALL views were dropped from the database.&amp;nbsp; Only table schema should have been altered in the DB, right?&amp;nbsp; Did I blow by some checkbox somewhere that says, "Drop all SPs/Views"?&amp;nbsp; What configuration of the DDT would cause this behavior?&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;This could be right depending on how you have deployed to this machine in the past.&amp;nbsp; Any SPROC, view, UDF, etc. that was created outside of the DDT will be left alone...assuming that that sproc, view, or UDF has &lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;never&lt;/U&gt;&lt;/STRONG&gt; &lt;/EM&gt;been deployed by the DDT.&amp;nbsp; When the DDT deploys a SPROC, view , or UDF, it applies an attribute (Extended Property) to the entity in question so that it knows that it was deployed by the DDT and can safely be removed.&amp;nbsp; So these stored procedures, views, or UDFs had to have that extended property applied to it.&lt;/P&gt;&lt;P&gt;Now if you are running an older version of the DDT, then it will do exactly what you mentioned regardless of the attribute.&amp;nbsp; But if you are running on the latest version of the DDT (1.6.6 or better) then this will not happen....and I am very confident that this works because I recently talked to someone who uses the DDT in an environment where there is a DB admin and the developers deploying to the same production server...and the scenario that you explained use to cause...well...let's just say, "some issues." :D&amp;nbsp; But I recently asked them (with the last week) how this has been working for them and all is well.&amp;nbsp; This is something that actually applied to our medical software as well...so I am confident that this is working as it should.&amp;nbsp; But this should at least clue you in as to how the DDT treats these items.</description><pubDate>Mon, 18 Aug 2008 13:25:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>