| > | Computers > Databases > SQL Server > | |
Executing Stored Procedures |
||
|
|||||||||
|
|||||||||
|
|
Preview DRM-free music
Get information on your favorite TV Shows at Clarify the meaning of the acronyms on your web site.
Register your own domain name at A to Z Domains. or buy domains at Domain Names For Sale .net
Printer-friendly PDF* format: |
Executing DB2 Stored Procedures through a SQL Server Linked ServerMost examples on the web show that a DB2 stored procedure can be called from SQL Server through a linked server using:
The However, although the driver returns output parameters from the linked server back to SQL Server, output variables are not set when the stored procedure is called this way. Consequently, this works only if the stored procedure has no output parameters, or if the values returned from the stored procedure (such as "@outvar" above) can be ignored, which is a bad thing if success or failure must be determined from those parameters. Executing DB2 Stored Procedures with Output ParametersIn order to access the output parameters, the stored procedure must be called in this manner:
The string passed to the Accessing the Result SetTo access the result set:
Last updated Friday April 20, 2007 |
You are currently viewing this page in HTML 5 non-XML* format (* see Clicklets for more infomation). This document is also available in XHTML 1 Style Sheet*XHTML 1* XML*HTML 5 Style Sheet*HTML 5 XML*HTML 4* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.
Copyright © 2006 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.
DISCLAIMER: All information, links, forms, applications and other items on this site are provided AS IS. No warranties are expressed or implied.