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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy data from one table to another using asp.net

Status
Not open for further replies.

monkeymagic2222

Technical User
May 13, 2002
78
GB
Hi,

I have 2 sql tables, one called tbl_orders and one called tbl_stock.

When a user places an order, the details of that order go into the tbl_orders table. The order then comes to us to process. A status field in this table is set to "ordered"

When the item comes in I would like to update the status field in the orders table to say "complete" and then add this information, as well as some new detail (such as item serial number, etc.) as a new record to the stock table.

I can do this with classic asp but only have basic asp.net knowledge.

Any tips or help would be much appreciated!
 
I doesn't matter if you are using ASP or ASP.NET. What you want to do needs to be done with SQL. Sounds like a trigger might work for what you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top