If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Tracing Stored proc variables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-08, 05:00
mjbullen mjbullen is offline
Registered User
 
Join Date: May 2004
Posts: 10
Tracing Stored proc variables

Hi all,

Anyone know how I can trace what variables have been passed to s Stored Proc ? The statement monitor passed the SQL in the SP, but not the actual variables passed.

I'm running DB2 Express v8.2 on Windows 2003

Any help appreciated.
Reply With Quote
  #2 (permalink)  
Old 07-03-08, 06:19
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You can modify the stored procedure code to write the values out to a log file or to return them via OUT parameters.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-03-08, 07:52
mjbullen mjbullen is offline
Registered User
 
Join Date: May 2004
Posts: 10
Thanks for the reply. I was hoping to do this in a production system, so not able to amend the actual SP.

any other ideas ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On