RE: Performance static vs dinamic sql

RE: Performance static vs dinamic sql

 

  

Hi Sankar,

Whats the order of execution of this SQL's. When I say this I mean which
one do you execute first?

Regards,
Abhishek.

-----Original Message-----
From: Padhi Sankar
[mailto:db2udbdba-ezmlmshield-x53008227.[Email address protected]
Sent: Monday, December 11, 2006 10:01 PM
To: LazyDBA Discussion
Subject: Performance static vs dinamic sql

Any thoughts why stored procedure taking longer than dynamic SQL:

I'm running a SQL in a stored procedure its is taking 15 min. and the
same SQL as dynamic statement takes 2 min.


I dropped and recreated Stored procedure - nohelp.


Environment: db2 8.1 Fixpak9 AIX 5.3.



---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

DB2 & UDB email list listserv db2-l LazyDBA home page