how to import fields with line feeds into SQL

Posted on 2008-11-10
Last Modified: 2012-05-05
is there a way to import fields with line feeds?   see attached screen-shot
Question by:rastafaray
    LVL 13

    Expert Comment

    Right click on database->Tasks->import data-> datasource =flat file source
    browse your file and preview

    Author Comment

    ty sm394D

    i am familiar with the method, but will it retain the line feeds?
    LVL 9

    Expert Comment


    Are you using SQL 2005 SSIS importing from a Text file:
    Edit the source connection for FlatFiles, and change the Header Rows delimeter.

    Author Comment

    this is SQL 2005 but not SSIS, simply right click on dbase | all tasks | import etc etc.

    i've done flat file imports before, but still unclear as to what char code translated into a line feed
    LVL 9

    Accepted Solution


    Using the wizard is similar to SSIS :You will have the option to select the Header Row Delimeter:
    Semicolon {;}, and so on &
    Systems based on ASCII or a compatible character set use either LF (Line feed, 0x0A) char(10) or CR (Carriage Return, 0x0D) char(13) individually, or CR followed by LF (CR+LF, 0x0D 0x0A).
    If you change the Header Row Delimeter to something else (depending your file) it will import the ASCII  newline or LF to fields with line feeds.

    Author Comment

    great i will pay attention to the UI for this...

    many thanks Ernariash

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
    When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 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