Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

TempDb getting full

$
0
0

Hi ,

 I have a Sp which is generating Dynamic select query, that query returning some 75000 records. When I am runing this sp Its getting very slow after few minutes I am getting result like "

Msg 1105, Level 17, State 2, Procedure Usp_Dir_UserReportUsersLog, Line 83

Could not allocate space for object 'dbo.Large Object Storage System object:  422589207871488' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

"

Case -2 : I print that select statement and run directly that query  I got result and also its taking only 11 sec.

Can  you please help me to know where I am missing.

Thanks !


Regards Vikas Pathak


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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