all groups > sql server reporting services > july 2005 >
You're in the

sql server reporting services

group:

SP takes longer on RS than query analyzer


SP takes longer on RS than query analyzer manish
7/12/2005 10:45:02 AM
sql server reporting services:
I have 3 SPs those when run on query analyzer, runs within 1-3 secs. But when
the same is run in data window of RS, doesnt return atleast before 2 mins
each. When the report is run , it shows "report is running" for a long time
before it returns sometimes.

RE: SP takes longer on RS than query analyzer manish
7/13/2005 6:26:13 AM
Any thought Pz..

[quoted text, click to view]
Re: SP takes longer on RS than query analyzer Christopher Conner
7/14/2005 10:35:51 AM
You can verify the timing by looking at the logging - in query analyzer,
change the database to the reportserver DB then do the following:

select ca.name, el.timedataretrieval, el.timeprocessing, el.timerendering
from executionlog el
inner join catalog ca on (el.reportid = ca.itemid)
where name = 'NAME OF REPORT'

We use this all the time to check up on long running queries, or to see if
the performance is related to the RENDERING of the report as opposed to
actual data being retrieved from SQL.


=-Chris

[quoted text, click to view]

Re: SP takes longer on RS than query analyzer manish
7/19/2005 1:41:03 PM
I am not running the report just calling the same SPs by selecting reporting
enviornment's dataset and passing the parameters..There is no report
rendering here. Still it takes longer. Can there be anything to verify?

I ran this query on query analyser pointing to the same DB, report points to
but it errors out by not identifying executionlog & catalog. Is it a
different DB I should point to?

[quoted text, click to view]
Re: SP takes longer on RS than query analyzer Vic Polotsky
7/28/2005 11:46:14 AM
Manish: have you run any SQL trace on your SPs? We have a similar problem,
and the trace shows that when a rteport is run, the same SP starts and stops
several times. However, when a report is generated, the result data set is
correct. When we cut & pasted the query into a report, it also was executed
several times. Does anyone know how Reporting Services run queries and SP?

[quoted text, click to view]
Re: SP takes longer on RS than query analyzer manish
8/1/2005 11:57:06 AM
Vic, I never did that but this may be the reason report takes longer than the
same query on query analyzer. Did you able to find anything on that?

[quoted text, click to view]
AddThis Social Bookmark Button