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

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy


  SQL Server Tips by Burleson

Parameter Management


This returns the number of parameters passed to your XP.


This function is used to get the name of a parameter, which is passed, by name. Parameters to an XP can be passed by name or by position and you cannot mix the two at the same time. Passing a parameter by name is useful, when your XP can be called with a lot of parameters but most of the time default values can be used for the less used ones. Normally when your XP has only a few parameters you would pass then by position and would have no use for “srv_paramname”. Parameter indexes start at 1 so your code should be careful when you use C based indices which start at 0.


This is the corollary to the function srv_parname. It returns the index of a parameter given the parameter name. Again this function is only useful if the XP will pass it parameters by name.


This function returns information about a specific parameter. Information returned includes its ODS data type, Maximum Length, Actual Length, the data for the parameter and whether it is a null flag.


This function returns a value, which represents the “status” of a parameter. Currently only one status flag is defined. This is whether the parameter is a return parameter (i.e. defined in TSQL using “OUTPUT”)


This function allows the actual value of an OUTPUT parameter to be set from your XP.

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  

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 -2017 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