sankar.nandakumaran (6/28/2013)
Hi..I have a table and need insert multiple data into it. First i have delete all data into the table and then insert multiple rows in table using sql transactions so that if any error comes all data will not be deleted.
Thanks and Regards
Sankar
Cochin
The quick answer for >SQL2008 would be something like:
BEGIN TRAN
[MERGE with INSERT. UPDATE, and DELETE]
END TRAN
Check out these articles:
Using the MERGE Statement[/url]