Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

Privacy Policy

 

   
  SQL Server Tips by Burleson

Execution of Extended Stored Procedures

XP’s calls and interaction with TSQL are exactly like SP’s. On the surface, their usage is identical but they have a very different nature. Internally there is a “compilation” of SP’s, called plan creation, which is the process of finding the optimal plan from a statistical analysis of the data distribution. This plan resides in the Master database, in the system table syscacheobjects. Triggers, UDF’s and views also have their execution plans in that table and the plan creation works exactly the same way for all these objects. The query optimizer is the part of SQL Server responsible for optimizing the execution plans. The query optimizer requests the execution plans for use, reuse or recycling.

SP’s help reduce traffic and latency when compared with client query submissions because of the code reuse and query optimization. XP’s have that plus extremely fast execution not only because of the compiled code but also because they do not need to follow some of the steps that precede the query optimizer. Those steps are the Parsing Process and the Standardization Process. It is possible to have very simple SP’s causing performance degradation because of a poor execution plan or frequent recompilation and an XP could solve the problem.


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

 http://www.rampant-books.com/book_2005_2_sql_server_external_procedures.htm  

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster



Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   

 

   

 Copyright © 1996 -2016 by Burleson. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks
 

Hit Counter