Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

30 M rows in SQL Server 2008 R2- View or Table for faster performance

$
0
0

Hello,

I am creating a SSRS 2008 report that currently is using a view. It's a view made out of one table and is not indexed.

There are 70 some columns that I am displaying in the report with 10 or so parameters that I am passing through a procedure from SSRS to SQL Server.

When the report runs in Server or in development mode, the report gets out of memory error - which could be a totally different issue as it is trying to bring in a  couple million rows amd runs for 15- 20 mins.. and errors out.

My question is if it is sourcing a single table, will a view be better with the right index or a table with index.

Clustered, non clustered? Any suggestions or input would be greatly appreciated.

Thank You.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>