You could also try a stored procedure, and only make one call to the DB.

Just my $0.02


On Tue, 15 Feb 2005 02:59:48 -0500, Roberto Perez <[EMAIL PROTECTED]> wrote:
> At 11:11 PM 2/15/05, Barney Boisvert wrote:
> >Just four sequential CFQUERY tags, each with an INSERT statement.
> 
> Thanks. Two additional thoughts:
> 
> 1) should I enclose all four queries within a CFTRANSACTION tag with a
> rollback option? That way, if something happens that interrupts the insert
> process, data integrity would be protected (i.e., there wouldn't be some
> tables with new information and some tables without)...
> 
> 2) for those tables sharing keys (PK and FK), should I go ahead an insert
> the value in both tables (e.g., "word PK" and "word FK" in two different
> tables)? I don't have "cascade" enabled (using Access 2000). Is it a custom
> practice to enable cascade, or is it better to manually populate the FK
> fields with INSERT?
> 
> Thanks,
> 
> Roberto Perez
> [EMAIL PROTECTED]
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194952
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to