| Home | SQL | PHP | HTML | Perl | PowerBuilder | C/C++ | General | Solutions | Contacts |
SQLIndexSearch and Replace Multiple Outer Joins Comparing Dates ProceduresTemplate |
Stored Procedure Template (Transact SQL)What does it do?It's a simple template that allows stored procedures to be written in a consistent format, including consistent transaction management. Many stored procedures explicitly issue a begin tran at the start of their code, this isn't (in my opinion) the best way to handle transactions. If you have already begun a transaction, then starting a new one and rolling back will rollback all the way to the beginning of the first transaction. If you issue a save tran you will be able to rollback to the savepoint, which allows each stored procedure to be a self contained unit as well as part of a greater transaction. CopyrightYou may use this template in your own code, copyright free TemplateNotes
SuggestionsYou may wish to use a text editor with templating functionality, to save editing time. There are many free and commerical text editors available with templating functionality, it all comes down to personal preference. DetailsAuthor: Wayne Jones Created: 1 May 2003 Works with: MS SQL Server, Sybase | |
| This is Code, all contents copyright - © Wayne Jones 2004. |
