Link to home
Start Free TrialLog in
Avatar of BrianMc1958
BrianMc1958

asked on

Any way to retrieve execution plan after PreparedStatement runs?

Dear Experts,

My Java app issues a Java PreparedStatement against an MS SQL 2000 db.  I suspect it's actually causing a table scan at a customer site.  Is there any way I can retrieve the execution plan after the PreparedStatement exectutes?  (The statement would be issued 10,000 times each time my app runs...)

I know it's not possible through Java.  Is it possible through SQL 2000?  'm a bit of a dummie about SQL 2000.  Is there a setting I can use such that the execution plan(s) would be stored in a SQL log?

Thanks!
BrianMc1958
ASKER CERTIFIED SOLUTION
Avatar of KirillMueller
KirillMueller

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianMc1958
BrianMc1958

ASKER

The trace is showing me what I need.  Thanks very much, folks.  This is extremely helpful.

--BrianMc1958
Cool.