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 2008 Forums
 SSIS and Import/Export (2008)
 ssis error to import file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

arkiboys
Flowing Fount of Yak Knowledge

1341 Posts

Posted - 05/02/2012 :  11:54:13  Show Profile  Reply with Quote
Hi,
In ssis package I have a flat file connection which connects to .csv file.
The textqualifier is " i.e. double quotes.
Each .csv file has fields with data.
At the end of each .csv file, there is a long text i.e. "This is the end of the data..."

In the process where I place the data from the file connection to the database table, how can I ignore the last text which is i.e. "This is the end of the data..."
This is because this text appears in the first column of the .csv and therefore the ssis complains that the text is too long, etc because it tries to put it into the first column in the database table.

Question:
How can I ignore the text which appears at the end of the .csv files.
Note that this text is the same at the end of each .csv file.
Thanks

yosiasz
Flowing Fount of Yak Knowledge

USA
1608 Posts

Posted - 05/02/2012 :  11:59:15  Show Profile  Click to see yosiasz's MSN Messenger address  Reply with Quote
can u post some sample data please?

<><><><><><><><><><><><><><><><><>
If you don't have the passion to help people, you have no passion
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47023 Posts

Posted - 05/02/2012 :  20:24:17  Show Profile  Reply with Quote
whats the delimiter that comes before this text. is it consistent?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.06 seconds. Powered By: Snitz Forums 2000