SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 SSRS and Temp tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/18/2012 :  20:14:58  Show Profile  Reply with Quote
Just a general question regarding temp tables and SSRS. Whenever I use temp tables in SSRS and the query takes longer than 16 seconds, it will time out saying it could not populate all the fields while rendering the report. Does anyone know why this happens or what causes this? I use temp tables often, but I find that I cant use them in SSRS if the query takes longer than 16 seconds to run.

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 09/19/2012 :  12:13:56  Show Profile  Reply with Quote
i've not seen this myself yet. I've used temp tables quite a lot in ssrs queries and have not had any issues with it.

Are you rendering report from standard report viewer or from custom .net page?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/19/2012 :  12:36:31  Show Profile  Reply with Quote
its being rendered from a standard report viewer. Everything works fine, but if the query takes longer than 16 seconds, i'll get an error saying SSRS could not update all the fields.
Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/19/2012 :  20:40:57  Show Profile  Reply with Quote
I ended up replacing all of my temp tables with CTEs and everything works perfectly. I just hate the fact that I can't use Temp Tables in SSRS if my query takes longer than 16 seconds to run.
Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/20/2012 :  11:06:38  Show Profile  Reply with Quote
Now, i'm starting to get this message even with CTEs: Not really sure where to go with this one. It takes 1 minute to run in managment studio.

An error occurred while the query design method was being saved. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/20/2012 :  11:21:39  Show Profile  Reply with Quote
I changed the timeout property for 15 seconds to 10,000 seconds so lets see if this works
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 09/20/2012 :  11:49:14  Show Profile  Reply with Quote
oh...if timeout is set as 15 s regardless of whether you use temp tables or not it will fail if query execution time goes beyond 15 s

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/20/2012 :  11:57:29  Show Profile  Reply with Quote
wow, this is getting worse - time out set to 10,000 and it still times out.
Go to Top of Page

joe8079
Posting Yak Master

USA
127 Posts

Posted - 09/20/2012 :  17:26:57  Show Profile  Reply with Quote
for some reason, it seems to be working now. No issue anymore.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 09/20/2012 :  23:27:29  Show Profile  Reply with Quote
it might have been issue with load on report server

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000