Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Export Result to File: File Size Increased by 25x!
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 08/22/2013 :  16:10:06  Show Profile  Reply with Quote

I have been using SQL Server 2012 for the past few months, and just yesterday, the results of a query that have normally taken up 2 GB of space now take up over 54 GB of space. I do not think I have changed any settings (at least on purpose). Does anyone have a solution to this?

The number of rows has stayed constant (about 2.5 million) and the number of columns has stayed constant (140 columns).

Open to any ideas...


Constraint Violating Yak Guru

343 Posts

Posted - 08/26/2013 :  12:43:30  Show Profile  Reply with Quote
When you say "the results of a query that have normally taken up 2 GB of space now take up over 54 GB of space", do you actually mean the database? If so, you'll want to check what the recovery model is. If it's FULL, are you doing backups? If not, either setup backups or switch the recovery model to SIMPLE. Alternately, if it is a SQL query, can you post the query?
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 08/28/2013 :  11:55:44  Show Profile  Reply with Quote
how do you calculate space taken by query result? are you dumping it onto a table?

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000