Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Strategies
»
Two users get vastly different file sizes...
Two users get vastly different file sizes when using results to file option
Rate Topic
Display Mode
Topic Options
Author
Message
laurence.berg
laurence.berg
Posted Wednesday, May 23, 2012 9:58 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:19 AM
Points: 4,
Visits: 51
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
Lynn Pettis
Lynn Pettis
Posted Wednesday, May 23, 2012 10:17 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 3:18 AM
Points: 21,588,
Visits: 27,375
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
laurence.berg
laurence.berg
Posted Wednesday, May 23, 2012 10:21 AM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 13, 2013 8:19 AM
Points: 4,
Visits: 51
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
RBarryYoung
RBarryYoung
Posted Thursday, May 24, 2012 6:38 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
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
DBA_Dom
DBA_Dom
Posted Friday, June 01, 2012 2:20 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 1:49 PM
Points: 563,
Visits: 58,795
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 »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.