SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Two users get vastly different file sizes when using results to file option


Two users get vastly different file sizes when using results to file option

Author
Message
replace('!','?')
replace('!','?')
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 95
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.
Lynn Pettis
Lynn Pettis
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39007 Visits: 38508
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?

Cool
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)
replace('!','?')
replace('!','?')
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 95
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.
RBarryYoung
RBarryYoung
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14616 Visits: 9518
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."
DBA_Dom
DBA_Dom
Say Hey Kid
Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)Say Hey Kid (676 reputation)

Group: General Forum Members
Points: 676 Visits: 81110
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search