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 2012 Forums
 SSIS and Import/Export (2012)
 Flat file import TextQualified field

Author  Topic 

SQL_Admin20129334
Starting Member

2 Posts

Posted - 2013-07-23 : 13:22:09
Hi Everyone.

I have an issue with our new SQL 2012 server and I'm not entirely sure it's a problem or design feature. In the past I imported a flat file with the wizard and each column in the flat file was encased in a " at either end. The table importing to needs the numerical input from the first column so I put " in the text qualifier field. The second column is a description and can sometimes contain multiple "s in the line aside from the beginning and end ".

Now, in 2005 we ran the import and set the second column to text stream with TextQualified as False. In the preview it did show the first column without the quotes and second left the quotes to show. In 2012 when I use the exact same settings the preview seems to ignore the False setting on the TextQualified tag. I ran several searches here and other places and I couldn't find any references to the same issue. Does anyone have an idea if this will still apply the "s in the second column despite what the preview shows?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-24 : 01:22:05
I havent noticed this myself. But if there's an issue like this, what you could do is to edit the package created by export wizard and then add a transform task in between to strip off " characters.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

SQL_Admin20129334
Starting Member

2 Posts

Posted - 2013-07-24 : 09:05:01
Thanks for the reply, but that won't be possible. The file is a live file that is updated by the accounting software the business uses and the software people have indicated changing the export procedure will cost us $. I'll have to come up with something else, I guess.
Go to Top of Page
   

- Advertisement -