Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add data into 2 tables

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Do you have any idea on how to add data onto 2 different tables.s-)
 
if you want to do it at the same time then you may want to research cascading updates.
 
Cascading updates only work when one field is a foriegn key in another field. While this is nice, it only works on those related fields. If you are just looking to update two tables, just create two different SQL statements and run them right after each other using Conn.Execute. Trying to get them to run at the same time can be dangerous if the second SQL table is in any affected by the first (except with foriegn key relationships). Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Cascading updates only work when one field is a foriegn key in another field. While this is nice, it only works on those related fields. If you are just looking to update two tables, just create two different SQL statements and run them right after each other using Conn.Execute. Trying to get them to run at the same time can be dangerous if the second SQL table is in any way affected by the first (except with foriegn key relationships). Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
The best way to do it: Stored Procedures. leo

------------
Leo Mendoza
lmendoza@students.depaul.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top