By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,419 Members | 1,612 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,419 IT Pros & Developers. It's quick & easy.

Table Automatically Populating with Data from another table

P: 8
So I am working on this project, where I have an ITEM_PURCHASE table and an WAREHOUSE table I want users to be able to input data into the ITEM_PURCHASE table thru a form and the WAREHOUSE table will automatically populate from certain fields in ITEM_PURCHASE. In this scenario should I use a trigger or stored procedure? Can someone provide the SQL code to get me started? Can someone help me out here, it will be greatly appreciated.

Thanks
Nov 9 '08 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
Trigger would be better for this one. Just use transactions to ensure consistency.

-- CK
Nov 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.