Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Are there any limits to Pivoting

$
0
0
We have a database that has been designed to service the application - currently there is no real reporting database, reporting is done off a replicated copy of the live DB. (This is changing and I will be setting up a reporting database).For some data extracts it is necessary to pivot the data into a usable format. One particular extract that has been working for a year is suddenly falling over due to it filling the TempDB. For a little size context, the total DB is 80Gb, the tempDB has 500Gb available to it.By breaking down the query I noticed that we are now pivoting, partitioning and ordering over 20 million rows of data. I`m wondering if there is a hard limit to what SQL can actually pivot and whether I need to look at a report redesign.Anyone come across anything similar ?Thanks

Viewing all articles
Browse latest Browse all 3145

Trending Articles