Another Year Older, Another Year of Confusion ( Triggers, et

A place for users and developers of the Xataface to discuss and receive support.

Postby dwisn » Wed Jan 03, 2007 8:17 am

Happy New Year to All..

Another year has come, and I'm still trying to migrate from Dadabik ( 1 table ) to Dataface using about 18 tables ). While 1 table is the main table ( systems ) and 12 tables are generally used for Selection/Choices ( ie: hardware/vendor/city/state etc... etcc )... I have 5 tables that I want to use to store TEXT. These tables would store Systems dump of various data ( ie: Routing tables, OS / Disk Info etc ).

I'd like to use the system name as an index into these tables, and this is where my knowledge is behind.

I am now reading about triggers and I think I need to used them. Please check my logic here and tell me If I am on the right track - or If I should be doing something different.

The 5 tables will be receiving their data automatically from scheduled jobs. So Here's my logic.

1) Within the Systems Table ( directory )..
A) Create a trigger ( after insert) that checks to see if an "entry exists" for the given system name in the corresponding 5 tables. If not, create an entry ( so that upon the scheduled job, the script can update where system name matches )
B) Create a trigger ( upon delete ) that deletes the corresponding entry ( if it exists ) in the 5 tables.

I think thats it ? - - and if so, then I'll go figure out how to do it. But I thought I would check to see if this is what i "want" to do, BEFORE, actually coding

in advance,
i thank everyone

dan
dwisn
 
Posts: 25
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Jan 03, 2007 11:12 am

That sounds like the right idea.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved