StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Column tr_Schema does not belong to table...Expand / Collapse
Author
Message
Posted 10/01/2008 2:23:30 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 11/16/2008 12:56:01 PM
Posts: 16, Visits: 26
Hello,

I'm trying to create a simple trigger on Delete using the Database Deployment ToolKit but when I attempt to deploy it I get:
Column tr_Schema does not belong to table DBETrigers

Have I missed something? The following is the body of the trigger. Thanks in advance for the help:


AFTER DELETE
AS
BEGIN

-- Prevent the result count from interfering
SET NOCOUNT ON;

-- Add trigger logic here
if exists (Select 1 from Music m,deleted t
where m.Artist_fk = t.Artist_pk)
Begin
goto error
End
return
error:
raiserror 30006, 'Children exist in Music. Cannot delete this record'
END
Post #19845
Posted 10/03/2008 10:03:15 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
Cory,

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!

At any rate, it looks as though you have loaded a more recent version of the DDT but didn't update the StrataFrame structures.  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.  It should be pretty straight forward:

  1. Load the new update and be sure to allow the data structures to be updated
  2. Go back into your DDT project and rebuild the deployment package
  3. You should be good to go at this point
Post #19872
Posted 10/06/2008 1:20:09 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 11/16/2008 12:56:01 PM
Posts: 16, Visits: 26
Hi Trent.
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.

I also had another developer do a clean install and their local Strataframe DB does not have the field either.
Post #19910
Posted 10/07/2008 9:02:08 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
You are running an EXE that doesn't match the structure.  There is no longer a tr_Schema field in that table:

You can see the structure above.  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.  This sounds like your DatabaseDTK.exe file is not being overridden which could be a permissions issue.  If you go into VS and click on the StrataFrame -> Version menu, it will show which EXE version you are running.  Also, you can see the structure for the DBETriggers table above.  So you have one or the other or both out of sync somehow.

Post #19924
Posted 10/14/2008 10:22:00 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 11/16/2008 12:56:01 PM
Posts: 16, Visits: 26
You are absolutley right.  It looks like when I upgraded the DDT get overwritten correctly for some reason.

Seems to be ok now.

Thank you very much for the help!

Post #20091
Posted 10/14/2008 11:23:14 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
Glad you got it figured out
Post #20093
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:54am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.