Asset Management Suite

 View Only

SQL Safety 

Aug 23, 2007 12:30 PM

Every query that you run on a SQL database that modifies data in some way, has the potential of causing damage if it has not been written correctly. Luckily for us, there are a few commands that can be used in order to help prevent this type of user error. BEGIN TRANSACTION - Run this before running your query. COMMIT TRANSACTION - Run this after running your query, only if it was successful and did what you wanted it to. ROLLBACK TRANSACTION - Run this is your query did something nasty.

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Sep 27, 2007 07:34 AM

very very useful :-)
Tks SK ;-)

Related Entries and Links

No Related Resource entered.