[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Max length of a csv line

Posted on 2014-04-01
4
Medium Priority
?
338 Views
Last Modified: 2016-02-10
Hi EEEE:

   I am exporting data from a MS SQL 2008 into a csv using SSIS that selects all rows of a view. I noticed that the count(*) of the view didnt match the csv. Its likely because there is a max length for a line and thats being exceeded by certain rows which is forcing a newline and a separate additional row.

Could you tell me what the max length of a row is and how to fix this issue?
0
Comment
Question by:LuckyLucks
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 39970791
Are you sure there are no line feeds in your data?
0
 

Author Comment

by:LuckyLucks
ID: 39971369
Its a select * from the view...so there shouldn't be a linefeed. How can I verify this?
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39971380
Something like this:

SELECT * FROM some_table
WHERE CONTAINS(some_field, char(13)) OR CONTAINS(some_field, char(10))
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39981957
How many rows in the VIEW and how many rows in the CSV?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question