Link to home
Create AccountLog in
Avatar of Ali Saad
Ali SaadFlag for Kuwait

asked on

Import Text file to sql server using Import wizard

Hello
I used Sql server Import & Export wizard to import a flat file ".TXT" as the attached file .... the problem is all data comes in one column ..i tried to change the delimter i cant but i couldnt get the rquired columns  ... the desired column i need as follows

Col1                    Col2                   Col3         Col4                      Col5
2060348440       2782152547     10000      RANA Johnson        01/04/2012
SAMPLE.txt
Delimeter.jpg
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

It's not delimited.  It's fixed width, so you will have to define how many columns there are, the start position of each column, and the width of each column.
Avatar of Ali Saad

ASKER

Is that possible by using import wizard? If yes how i cando that?
Or i should use VS to create SSIS PACKAGE?
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer