Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update multiple rows
Message
From
13/05/2005 08:16:32
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Update multiple rows
Miscellaneous
Thread ID:
01013802
Message ID:
01013802
Views:
56
Hi,

I have 2 tables in SQL server 'ordhead' and 'ordlines' related by idord.
On relation there are cascading delete from ordhead to ordlines.
Table ordlines have a trigger for insert, update and delete to update table 'stock' related by idsku.
When I delete a line from table ordhead, by cascading, all lines from table ordlines are deleted. In delete trigger I receieve the deleted lines in cursor 'deleted'.

In order to update table stock I need to update for all lines from cursor 'deleted'. How to do this? How to write the UPDATE statement?

Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform