Hello,
I am trying to create a Report Model based on Data View that references a SQL View.
I get a an error when building the Report Model based on this view:
An error occurred while executing a command.
Message: Arithmetic overflow error converting expression to data type int.
Command: SELECT COUNT(*) FROM [dbo].[myViewName]
I don't know exactly how many rows are returned from this view, but I do know that it can contain quite a few rows. I tried to find out how many rows were in the view by running a SELECT COUNT() on the view, but I got the following error from SQL Server 2005 query window:
Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type int.
This appears to be a SQL 2005 issue, but affects me building a Report Model. My question is, is this a SQL Server 2005 issue? Is there a way around it (other than chaning my view to decrease the amount of rows in it)?
BTW...I am running SQL 2005 Developer Edition on a Windows XP (SP2) laptop.
Thanks!!
Brian
Nevermind. It looks like there was an error in the view that I was using.This does bring up a good question though...Are there limitations to how much data (number of rows) can be used with a Report Model?
Thanks!
Brian|||No, there is technically no limit, although certain expressions like Count(<entity>) could overflow if you have more than 2^31 (~2 billion) rows.|||what can i do if my count(*) exceeds the limit. I have this situation now already.
No comments:
Post a Comment