﻿<?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?)  » Column tr_Schema does not belong to table DBETrigers</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 22:44:52 GMT</lastBuildDate><ttl>20</ttl><item><title>Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost19845.aspx</link><description>Hello,&lt;br&gt;
&lt;br&gt;
I'm trying to create a simple trigger on Delete using the Database Deployment ToolKit but when I attempt to deploy it I get:&lt;br&gt;
Column tr_Schema does not belong to table DBETrigers&lt;br&gt;
&lt;br&gt;
Have I missed something?  The following is the body of the trigger.  Thanks in advance for the help:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
AFTER DELETE&lt;br&gt;
AS&lt;br&gt;
BEGIN&lt;br&gt;
&lt;br&gt;
    -- Prevent the result count from interfering&lt;br&gt;
    SET NOCOUNT ON;&lt;br&gt;
&lt;br&gt;
    -- Add trigger logic here&lt;br&gt;
	if exists (Select 1 from Music m,deleted t&lt;br&gt;
		where m.Artist_fk = t.Artist_pk)&lt;br&gt;
		Begin&lt;br&gt;
			goto error&lt;br&gt;
		End&lt;br&gt;
	return&lt;br&gt;
error:&lt;br&gt;
	raiserror 30006, 'Children exist in Music.  Cannot delete this record'&lt;br&gt;
END&lt;br&gt;</description><pubDate>Tue, 02 Dec 2008 13:21:06 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20967.aspx</link><description>[quote]Is it possbile that the file in Windows.Prefetch causes problems with the install? [/quote]&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; It would change how the PKG file would be produced which would cause the DBEngine (DatabaseMigrator class) to fail.&amp;nbsp; So hopefully that was all it was!&amp;nbsp; If it is deploying now, then you should be in good shape.</description><pubDate>Tue, 02 Dec 2008 13:21:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20963.aspx</link><description>I checked DBETriggers and it contained the correct columns so I assumed that the problem had to be with DatabaseDTK.exe. Next I un-installed SF, re-booted, and re-installed SF. I had done this previously but this time I ran a search for DatabaseDTK.exe prior to installing and found a file named DatabaseDTK.exe-... in the Windows.Prefetch directory. I deleted the file, re-instaled SF, and everything now works as it should:) Is it possbile that the file in Windows.Prefetch causes problems with the install?</description><pubDate>Tue, 02 Dec 2008 12:16:48 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20958.aspx</link><description>That column that is specified is no longer in use.&amp;nbsp; So either your data structures are not updated and that column still exists and/or the tr_schema column exists within your PKG file and just needs to be rebuilt.&amp;nbsp; So start by looking at your data structures in the StrataFrame database in teh DBETriggers table.&amp;nbsp; The structure should look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/05916c78-0b58-4f35-a153-49ab.png"&gt;</description><pubDate>Tue, 02 Dec 2008 09:57:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20951.aspx</link><description>Spoke too soon. The DDT deletes triggers with no error message but I still get the error when trying to add a trigger.</description><pubDate>Mon, 01 Dec 2008 17:15:03 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20949.aspx</link><description>The error message that was displayed is misleading. There was an error in the trigger code that was preventing it from being deployed and not a missing column. Fixed the trigger and everything deployed OK.</description><pubDate>Mon, 01 Dec 2008 16:27:55 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20947.aspx</link><description>I'm running the 1.6.7 beta release and I'm having the same problem when trying to deplpy a trigger. Attached is a screen shot of the software version and error.</description><pubDate>Mon, 01 Dec 2008 14:02:51 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20093.aspx</link><description>Glad you got it figured out :)</description><pubDate>Tue, 14 Oct 2008 11:23:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost20091.aspx</link><description>You are absolutley right.&amp;nbsp; It looks like when&amp;nbsp;I upgraded the DDT get overwritten correctly for some reason.&lt;/P&gt;&lt;P&gt;Seems to be ok now.&lt;/P&gt;&lt;P&gt;Thank you very much for the help!</description><pubDate>Tue, 14 Oct 2008 10:22:00 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost19924.aspx</link><description>You are running an EXE that doesn't match the structure.&amp;nbsp; There is no longer a tr_Schema field in that table:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/b64aa349-9ba9-49ea-ac22-9c1a.png"&gt;&lt;/P&gt;&lt;P&gt;You can see the structure above.&amp;nbsp; I would recommend either download the install again and trying again (as I know that this is a solid build) or even trying the 1.6.7 beta.&amp;nbsp; This sounds like your DatabaseDTK.exe file is not being overridden which could be a permissions issue.&amp;nbsp; If you go into VS and click on the StrataFrame -&amp;gt; Version menu, it will show which EXE version you are running.&amp;nbsp; Also, you can see the structure for the DBETriggers table above.&amp;nbsp; So you have one or the other or both out of sync somehow.</description><pubDate>Tue, 07 Oct 2008 09:02:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost19910.aspx</link><description>Hi Trent.&lt;br&gt;
I re-ran the install making sure to let the database deployment happen and although it wiped out my business objects it didn't add the field to DBETriggers.&lt;br&gt;
&lt;br&gt;
I also had another developer do a clean install and their local Strataframe DB does not have the field either.</description><pubDate>Mon, 06 Oct 2008 13:20:09 GMT</pubDate><dc:creator>Cory Cookson</dc:creator></item><item><title>RE: Column tr_Schema does not belong to table DBETrigers</title><link>http://forum.strataframe.net/FindPost19872.aspx</link><description>Cory,&lt;/P&gt;&lt;P&gt;I totally missed this post until just now...in the future don't be afraid to post a "bump" post if it has been more than a couple of days!&lt;/P&gt;&lt;P&gt;At any rate, it looks as though you have loaded a more recent version of the DDT but didn't update the StrataFrame structures.&amp;nbsp; Also, you will need to re-create your packages once the new update is installed as well as some of the column structures have changed.&amp;nbsp; It should be pretty straight forward:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Load the new update and be sure to allow the data structures to be updated&lt;/LI&gt;&lt;LI&gt;Go back into your DDT project and rebuild the deployment package&lt;/LI&gt;&lt;LI&gt;You should be good to go at this point&lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Fri, 03 Oct 2008 10:03:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>