Connecting Tech Pros Worldwide Forums | Help | Site Map

Find SQL in Stored Procedures

swami
Guest
 
Posts: n/a
#1: Nov 5 '08
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
Guest
 
Posts: n/a
#2: Nov 5 '08

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)
Serge Rielau
Guest
 
Posts: n/a
#3: Nov 6 '08

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