SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


2008 vs 2012 - Same Proc, different outcomes


2008 vs 2012 - Same Proc, different outcomes

Author
Message
Rob-350472
Rob-350472
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1503 Visits: 684
Hey guys,

I've been tearing my hair out over an issue with SSRS for weeks now (yes, weeks). I've got a fairly simple stored procedure which outputs 21 columns of data and about 160,000 rows. Just a straight up select, nothing complicated.

My issue comes with subscriptions in XML format.

Under SSRS 2008 these don't work with the error 'Failure writing file An error occurred during rendering of the report.'

If I make some of the columns null instead of pulling data from a table I can get it to run successfully.

Under SSRS 2012 the same procedure works exactly fine, a subscription gives me the results I need in xml format.

The fact that 2012 works fine makes me think it's not an issue with the data, however, I just can't get around the issue in 2008.

Has anyone encountered similar?
HanShi
HanShi
SSCrazy Eights
SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)

Group: General Forum Members
Points: 8490 Visits: 3718
I'm not sure, but if I read your problem it looks like a limitation in XML-size. Maybe there is a property in SSRS (like there is in SSMS) to set the size of a XML?
You mention it works when you alter column values to NULL. Does it also work if you limit the rows in the resultset (example: 100,000 instead of 160,000)?

** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
Rob-350472
Rob-350472
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1503 Visits: 684
Thanks, I think it was a volume of data issue, I tried with a different query limiting the results set, once I hit about 115,000 rows of data the XML would fail to create, below that and I was safe. From some brief reading I suspect the server it's running on isn't beefy enough as the entire XML file needs to be held in memory before it can be created I believe.

Cheers for the prompt Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search