Solved

Max length of a csv line

Posted on 2014-04-01
4
307 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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Lessons learned during ten years of interviewing for SQL Server Integration Services (SSIS) and other Extract-Transform-Load (ETL) contract roles and two years of staff manager interviewing contractors.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now