Call now: (800) 766-1884  


 SQL Server Tips
 SQL Server Training

 SQL Server Consulting
 SQL Server Support
 SQL Server Remote DBA

 SQL Server Scripts
 Scripts Menu




  SQL Server Tips by Gama and Naughter


Samples of SPís

This section is a tutorial aimed at explaining how stored procedures work through practical examples. Each piece of code is followed by a screenshot, showing the actual output from running the code in Query Analyzer.

The examples are identical or very similar to the ones from the chapter ďIntroduction to Extended Stored ProceduresĒ with the evident difference that they are coded in TSQL. The advantages of having stored procedures (SPís) functionally equivalent to XPís are:

* C++ programmers can learn more about SPís and TSQL by first understanding XPís because of their familiarity with C++.

* TSQL programmers can learn more about XPís and C++ by relating the parts of the code of an SP with its equivalent XP.

* Comparing SPís and XPís for performance, development time, maintenance issues, etc. is essential for understanding the differences between them.

XPís are not always a better choice than SPís; for simple tasks they will do as well as XPís but with less effort and time involved in the development. SPís and XPís will coexist and work together, like the infantry and artillery from the army of database tools.

The above book excerpt is from:

Super SQL Server Systems
Turbocharge Database Performance with C++ External Procedures

ISBN: 0-9761573-2-2
Joseph Gama, P. J. Naughter


Burleson Consulting Remote DB Administration







Burleson is the America's Team

Note: The pages on this site were created as a support and training reference for use by our staff of DBA consultants.  If you find it confusing, please exit this page.

Errata?  SQL Server technology is changing and we strive to update our SQL Server support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:and include the URL for the page.

Burleson Consulting
SQL Server database support


Copyright © 1996 -  2013 by Vaaltech Web Services. All rights reserved.

Hit Counter