Connecting Tech Pros Worldwide Help | Site Map

Find SQL in Stored Procedures

  #1  
Old November 5th, 2008, 02:05 PM
swami
Guest
 
Posts: n/a
I have 100's of stored procedures running.
is there any way to find that the Stored procedure has raised a
particular sql
and it has been completed its execution ?
  #2  
Old November 5th, 2008, 05:45 PM
Kent Milligan
Guest
 
Posts: n/a

re: Find SQL in Stored Procedures


Yes, you can use the SQL Performance Monitors in System i Navigator or the
Database Monitor command to capture a procedure's SQL statements.

swami wrote:
Quote:
I have 100's of stored procedures running.
is there any way to find that the Stored procedure has raised a
particular sql
and it has been completed its execution ?
--
Kent Milligan
ISV Enablement - System i
kmill@us.eye-bee-m.com (spam trick) GO HAWKEYES!!
Quote:
Quote:
Quote:
>>ibm.com/iseries/db2
(opinions stated are not necessarily those of my employer)
  #3  
Old November 6th, 2008, 12:15 PM
Serge Rielau
Guest
 
Posts: n/a

re: Find SQL in Stored Procedures


swami wrote:
Quote:
I have 100's of stored procedures running.
is there any way to find that the Stored procedure has raised a
particular sql
and it has been completed its execution ?
Swami,

Which platform?
On DB2 for LUW you can start a STATEMENT event monitor.
It will generate an entry for every SQL statement executed with:
Schemaname, packagename, line-number. The package dependency allows you
to link back to the procedure name.
This is the approach taken by the procedure profiler in Data Studio.

Cheers
Serge


--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error and output variables in stored procedures barmatt80 answers 1 January 9th, 2008 06:05 PM
How to find Execution time of Select, Insert and Update in stored procedures taru answers 3 January 25th, 2006 01:35 PM
Concurrency Handling In Stored Procedures xAvailx answers 2 July 23rd, 2005 10:29 AM
Search for a field name in stored procedures Eugene answers 3 July 23rd, 2005 08:57 AM