Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Why Does SSIS Make It So Difficult to Import a Fixed Width File?

$
0
0

Importing a fixed width file into an Access table is a five-second task - why is it such a headache in SSIS? Is SSIS unable to count blank spaces? It would seem so, because it can't seem to align the columns.

Admittedly, for the last three lines of my data, the columns were a bit out of alignment, so I added extra spaces to align them (although I didn't have to take this extra step for  MS Access, it read the file perfectly the first time around). But even with this extra step, I still can't isolate the columns in SSIS. Everything's running/merging together, no matter how much I try to drag the red vertical line back and forth. What am I doing wrong? I must be using the wrong wizard. I'm using SS 2012, right-click the DB > Tasks > Import Data > Flat File Source  > Fixed Width. Here's the data.

1.00010001   ARS   9/3/2001   0:00    0.99960016
1.00010001   ARS   9/4/2001   0:00    1.001001001
1.00020004   ARS   9/5/2001   0:00    0.99990001
1.00020004   ARS   9/6/2001   0:00    1.00040016
1.00050025   ARS   9/7/2001   0:00    0.99990001
1.00050025   ARS   9/8/2001   0:00    1.001001001
1.00050025   ARS   9/9/2001   0:00    1
1.00010001   ARS   9/10/2001  0:00    1.00040016
1.00020004   ARS   9/11/2001  0:00    0.99990001
1.00020004   ARS   9/12/2001  0:00    1.001101211


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>