DDT Erasing Existing Database's Trigger


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)StrataFrame VIP (2.2K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
can you clarify when this will be implemented, I see the post is from 2009 and I still have 3rd party triggers that get wiped out. It is a big problem for us.

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thus my previous post.  This has been on the list for a while and will be implemented in a future update.  Thanks.  Smile
Sierra Fourwinds
Sierra Fourwinds
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 15, Visits: 50
Trent, this makes using the DDT more difficult on larger projects for sure in the meantime where there are 100+ tables and 40 of them all have 3rd party triggers installed by a 3rd party for field-level audit tracking for regulatory puposes.  Having the DDT not remove these would be real desire for our company. 
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
In short, the SPROCS and VIEWS already have this logic implemented.  When a SPROC or a VIEW is created through the DDT a database property is assigned to the code element in question that designates that the SPROC was deployed with the DDT.  The triggers, on the other hand at the moment, will be cleared out and re-deployed.  This is due to dependencies.  However, this has already been added to the list and will be in a near update.  My recommendation, however, would be to ensure that all of the trigger in which you need to support at the moment are part of your meta-data so that they are recreated as part of the deployment.
Aaron Young
Aaron Young
Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
There are many third party reasons why triggers will be added (replication, auditing, etc.), I guess it would be really useful to have an option to ignore all existing triggers to overcome this. In addition, some third party add-ons will create additional indexes and these would also be currently removed by the DDT. Maybe an option to leave all existing indexes in place would be a good idea. This would also help with local database administrators who profile their own databases and add in recommended indexes from SQL Server too.



Aaron
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I know that in a few other areas (views I believe) the DDT now can actually leave pre-existing SQL items alone. However, if this hasn't yet been implemented (I don't if it has or not), you could use the post deployment script to add those extra triggers back in.
Sierra Fourwinds
Sierra Fourwinds
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 15, Visits: 50
Jim, I am also a StrataFrame beginner.  I read your post and am most interested in the replies you receive.  I am not going to need SQL replication features, but will need to use a 3rd party tool for database field-level change auditing.  All the tools I have evaluated use triggers.  I also would like to know how to use the DDT in a way that would leave these types of triggers in place.  For us this would be a must have feature.  Just wanted to insert this comment into this topic b/c I have posted a question about the auditing features in SF and know I must use a 3rd party tool w/ database triggers to handle the large volume of transactions and audit records created.
Aaron Young
Aaron Young
Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)Advanced StrataFrame User (505 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Hi Jim,



Where have your database triggers come from if they were not part of the original DDT package? You can create triggers within the DDT and I would assume they would have been imported via the Import Database Structures option (haven't imported triggers myself but I assume it would work).



However, if your triggers are being added by SQL Server (maybe for replication) after you have deployed the database then you may have a problem as there is currently no way to tell DDT to leave these triggers in place. Check this post for more information:-



http://forum.strataframe.net/Topic22646-12-1.aspx



Aaron



Jim Keansuai
Jim Keansuai
StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)StrataFrame Beginner (5 reputation)
Group: Forum Members
Posts: 1, Visits: 1
Hi all, Jim here.



Currently i having an issue while upgrading the existing database by DDT. Existing database containing trigger that not created by DDT. Now after i install DDT supposed to only modify the structure of database by without removing the existing trigger.

I had checked the DDT, inside do not contains any new trigger/ any history on deleting the trigger. Do i have miss out any setting i can do?



Does anyone can provide some guideline on the this issue?



Thanks a lot.
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