?
Solved

IMPORTING CSV FILE USING BCP OR BULK INSERT

Posted on 2005-03-11
4
Medium Priority
?
237 Views
Last Modified: 2008-03-04
I have been trying to successfully import a | delimited file into a SQL database with no success.  I continue receiving an error message about non-whitespace characters.

I read about using DTS to strip out the non-white characters by using the TRIM function.  I am not a programmer - learning, however - and am asking for assistance in completing a DTS package that will strip out all of the non-whitespace characters so I can successfully conduct an import from this file.

I am not sure what information to provide so please let me know what you will need to provide a solution.

Thanks!

Saladart
0
Comment
Question by:saladart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 25

Expert Comment

by:jrb1
ID: 13519851
Can you give the syntax of how you are importing?  You should be specifying a Column Delimiter.
0
 
LVL 25

Accepted Solution

by:
jrb1 earned 2000 total points
ID: 13519872
Also, an example of a row of data would be helpful.

Are you going through Enterprise Manager? Then through the "Import Data" dialog?  You specify your file name (source text file).  Then delimited with the |.
0
 

Author Comment

by:saladart
ID: 13521015
I figured it out - so you know, I was using DTS do to the import through.  The problem was I had selected the wrong row delimiter.

Thanks for your input!

Saladart


0
 
LVL 34

Expert Comment

by:arbert
ID: 13522607
Close the question
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

743 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