Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Two users get vastly different file sizes when using results to file option Expand / Collapse
Author
Message
Posted Wednesday, May 23, 2012 9:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 21, 2014 11:24 AM
Points: 4, Visits: 57
Hello, (I hope I'm posting this in the right place)
We are exporting some tables to text to give to a client. We set query results to file to create .rpt files (SQL Server 2005). When one user did this, the resulting files were huge. Another user on the same tables/database/server got much smaller files. The files do not have any oversized text fields, etc. Can anyone explain this?
Examples:
(File/Rows/Size of text file for User 1/Size of text file for User 2)

File 1: 1,667,469 rows/ User 1 rpt: 1.7GB/ User 2 rpt: 253MB
File 2: 515,120 rows/ User 1 rpt: 379MB/ User 2 rpt: 96MB
File 3: 15,215,975 rows/ User 1 rpt: 24.4GB/ User 2 rpt: 2.5GB

Thanks for any feedback.
Post #1305092
Posted Wednesday, May 23, 2012 10:17 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 8:41 PM
Points: 22,491, Visits: 30,185
Based on what has been provided, nope. We can't see from here what you see there.

Have you tried running these same queries to see what you get and to see if there are any differences between the files?



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1305110
Posted Wednesday, May 23, 2012 10:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, March 21, 2014 11:24 AM
Points: 4, Visits: 57
The queries run exactly the same - it's just the results to file that generate such big differences.
I'm wondering if there's some kind of user-related setting that determines how files are saved.

Thanks for your comment.
Post #1305116
Posted Thursday, May 24, 2012 6:38 PM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Friday, March 28, 2014 2:25 PM
Points: 9,902, Visits: 9,479
Open the files up and take a look at them. Or post them here as attachments and we'll look at them. (smaller ones than this though)


-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Post #1306259
Posted Friday, June 01, 2012 2:20 PM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Today @ 9:54 PM
Points: 565, Visits: 65,642
Not sure if or where it might be but I had the results to text include a lot of extra non printable data. Where if I opened it ( Been a while but i think i opened in excel) and then saved it as a .csv the same file became half the size of the original. I would suggest to check both the users options for query results - Results to Text and see if there are any differences there.
Post #1309985
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse