SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 Flat file import TextQualified field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SQL_Admin20129334
Starting Member

Canada
2 Posts

Posted - 07/23/2013 :  13:22:09  Show Profile  Reply with Quote
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

India
52325 Posts

Posted - 07/24/2013 :  01:22:05  Show Profile  Reply with Quote
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

Canada
2 Posts

Posted - 07/24/2013 :  09:05:01  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000