how to import fields with line feeds into SQL

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

Expert Comment

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

Author Comment

ID: 22926534
ty sm394D

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

Expert Comment

ID: 22926539

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

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


Author Comment

ID: 22926970
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

Accepted Solution

Ernariash earned 1000 total points
ID: 22927037

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

ID: 22927360
great i will pay attention to the UI for this...

many thanks Ernariash

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
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 …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

755 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