Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Unexpeted Results when importing

Author  Topic 

Zix
Starting Member

31 Posts

Posted - 2010-01-06 : 09:10:13
Hi all. Returning to SQL Server after several years of not using it. So, sorry if my questions are off the wall. :)

Project: Import data from an ftp site and dump it into a staging table. There are some other nuances, but this is the basic goal.

Looks like SSIS can do all of this for me, but I'm running into a problem with the flat files. When I open them using an editor the data appears not to be delimited by anything. When I run the import wizard the data appears to map to rows/columns nicely. But, it's "jumbled". It's like what prints out when a print driver gets hosed.

Could this be a driver issue? An encoding issue?

Any thoughts?

Thanks,

Clay

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-06 : 09:42:52
whats the format of flat file? how is this generated?
Go to Top of Page

Zix
Starting Member

31 Posts

Posted - 2010-01-06 : 10:01:14
The format is .txt and I'm pretty sure the encoding is ANSI. It is generated by a third party. I assume they export it from their SQL Server environment.

Is that what you are asking?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-06 : 10:07:05
ok. what happens when you look at preview through oledb source in ssis?
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-01-06 : 10:56:23
What are youre settings in wizard on that page in relation to the flat file?


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

Zix
Starting Member

31 Posts

Posted - 2010-01-06 : 10:56:48
Thought it would be easier to show you what I'm doing. Here is a video capture that I took since I'm not really sure how to describe what I'm seeing.


<removing video link>
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-01-06 : 11:04:06
You have not considered all the possible settings after choosing the input file.
Delimiter etc.
maybe fixed?
click on columns to set length of fields for example


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

Zix
Starting Member

31 Posts

Posted - 2010-01-06 : 12:40:58
Yeah, I see. I thought this was 2 separate problems. I knew I needed to map the data fields and planned to do that later. Looks like manually mapping everything solves both problems.

Thanks for the assist guys.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-01-06 : 12:42:32
welcome


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -