SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

tjyoung
Starting Member

1 Posts

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

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...

Thanks!

lazerath
Constraint Violating Yak Guru

USA
337 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

visakh16
Very Important crosS Applying yaK Herder

India
52317 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000