Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
frds i want first delete table data and then want to insert data on some condition
how i do tht in some query....
Posted
Comments
Karthik_Mahalingam 6-Feb-14 1:20am    
what you have tried?
post your code.

1 solution

Look for Transaction: that allows for doing several queries as a block, and in case of an error in one of the queries, you can Rollback all of the previous quries.
 
Share this answer
 
Comments
bhushan sinkar 6-Feb-14 3:56am    
SIR plz provide me link for that
VICK 7-Feb-14 1:09am    
Have a look at the following..

http://technet.microsoft.com/en-us/library/ms188929.aspx

Hope it will help. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900