?
Solved

importing data from text file

Posted on 2009-05-13
2
Medium Priority
?
314 Views
Last Modified: 2013-11-30
HI, i have a notepad with data like this -

"CUS_ORD","ID","C_NAME","C_ADR_1","C_ADR_2","C_ADDR_I1","C_ADDR_I2","C_ADDR_I3","White Comapny V"
"CAB",4,"Mrs Louisa Henriques","Chaleshurst","Petworth Road","Chiddingfold","Nr Godalming","GU8 4ST","X"
"BAC",6,"Mrs Pop Frisby","Rosalie Farm","Cowlinge","Newmarket","Suffolk","CB8 9HU","X"
"BAB",7,"Mrs Sophie Horton","18 Vine Court  Road","Sevenoaks",,"Kent","TN13 3UY","X"
"BAC",12,"Mrs K Kinsky","42 Boscombe Road","London",,,"W12 9HU","X"

when i try to import the data into SQL Server 2005 using import and export wizard, i have used flat file source and loaded the data
into the database.. but my data in the table appears as it is in the source file as below -
 
"custid" "ID"   "custname"
"BAC"      10595      "Mrs Gilly Cowley"
"GAB"      10596      "Mrs Sara Beare"
"GAB"      10597      "Mrs Gina Cernuschi"

can anybody tell me how do i get rid of " " both in Column and rows ?

Many thanks
0
Comment
Question by:gvamsimba
[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 Comments
 
LVL 13

Accepted Solution

by:
St3veMax earned 1500 total points
ID: 24376136
If this is a one-time import; the easiest way would be to clean up your source before you import it; i.e. do a find and replace and replace " with nothing.

HTH
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24376214
attach here the an exact example of your flat file and I will create a SSIS Example for you!
Regards,
Pedro
www.pedrocgd.blogspot.com
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

771 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