Help with SET SHOWPLAN !!!!

Help with SET SHOWPLAN !!!!

Post by Reinoud van Leeuw » Tue, 20 May 1997 04:00:00




>Is there any way I can use "set showplan", "statistics_io" and
>"statistics time" to monitor queries and stored procedures that are
>run from within a GUI "canned" application (Platinum Financials).  I
>am not sure what queries and stored procedures are used during the
>execution of different jobs from within the application.  I have some
>experience working with Oracle's trace files and TKPROF.  With Oracle
>I am able to have the user log into the canned app which produces a
>trace file matching their SID which will trace all the sql thrown at
>the database.  With "set showplan" it seems that I would have to some
>how pull out all the SQL an run it manually !!!

You can "mis"use the audit feature to trace all the SQL that the
application sends to the server.
__________________________________________________

http://www.xs4all.nl/~reinoud
I specifically DO NOT give anyone permission to use my email adress
for any commercial or non commercial mailings. I will bill everyone
who sends me this kind of mail for wasting my time. Under Dutch law,
people who don't let me know they disagree with such a bill are obliged
to pay it.
Attention: remove extra anti-spam info at end of reply adress
 
 
 

Help with SET SHOWPLAN !!!!

Post by John McVicke » Tue, 20 May 1997 04:00:00


Bill,
You should investigate using both the SQL Server Audit feature,
available in SQL Server 10 and 11, as well as SQL Monitor.  SQL
Monitor will give you execution times of stored procedures when
using SQL Monitor 11.0.x (which can run against SQL Server 10 and
11) as well as I/Os by table (Object I/O).  Also, Sybase Historical
Server (part of the SQL Monitor Bundle kit) includes additional
detail that SQL Monitor Client doesn't give with its default
windows.  There, you can get I/Os by stored procedure line # !

You may not need plans on this, but it all depends on what you
are trying to do.  I'd be glad to talk to you more about this if
you're interested.  I work right in your area.


> Is there any way I can use "set showplan", "statistics_io" and
> "statistics time" to monitor queries and stored procedures that are
> run from within a GUI "canned" application (Platinum Financials).> ************************************
> Bill Timm
> Asplundh Tree Expert Co.
> ************************************

--
John McVicker
Principal Consultant, District Lead Architect
Sybase Professional Services
Pennsylvania/New Jersey District
301-896-1765



 
 
 

Help with SET SHOWPLAN !!!!

Post by b.. » Tue, 20 May 1997 04:00:00


Is there any way I can use "set showplan", "statistics_io" and
"statistics time" to monitor queries and stored procedures that are
run from within a GUI "canned" application (Platinum Financials).  I
am not sure what queries and stored procedures are used during the
execution of different jobs from within the application.  I have some
experience working with Oracle's trace files and TKPROF.  With Oracle
I am able to have the user log into the canned app which produces a
trace file matching their SID which will trace all the sql thrown at
the database.  With "set showplan" it seems that I would have to some
how pull out all the SQL an run it manually !!!

Any help would be greatly appreciated !!!!!

************************************
Bill Timm
Asplundh Tree Expert Co.
voice:  (215) 784-1457
fax:    (215) 784-1366

************************************

 
 
 

1. SET SHOWPLAN

Hello,

I'd like to trace some select statements. There used to be a tab in SQL
Query Tool of Enterprice Manager (in SQL Server 6.0). I found SET SHOWPLAN
statement at least in 6.5 but:

SET SHOWPLAN ON
go
select ...
go

displays only resultset without showing query plan.
What did I miss ? Is it possible to look at query plan in SQL 6.5 ?

Thank you


Empire Czech

2. event-alarms -Reply

3. SET SHOWPLAN ON

4. SQL Server weekly functions.

5. "set showplan on" not working

6. mailing list

7. questions concerning cursors and 'showplan' setting

8. (no subject)

9. set SHOWPLAN

10. Help with bad SHOWPLAN on datawarehouse SQL 6.5

11. help on SHOWPLAN and STATISTICS

12. Help to set local variable equal to value of field in result set

13. Help: How to set the character set??