dbTalk Databases Forums  

DTS package that needs to handle two different types of CSV files

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS package that needs to handle two different types of CSV files in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J-T
 
Posts: n/a

Default DTS package that needs to handle two different types of CSV files - 07-18-2005 , 02:46 PM






I need to create a package that pumps two different types of CSV files into
database.The only thing I know is that CSV files are definitely comma
seprated ,might be double-qoute delimitted or not ,in one format there is 10
fields and in the other one there is 12 fields.

Is there some ideas that can help?

Thanks



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS package that needs to handle two different types of CSV files - 07-19-2005 , 05:29 AM






So you build two data pump tasks that handle these files.

You have an Active Script task that checks the file and asks "What type are
you?"

The answer will determine which path in the workflow gets turned on or off.

Multiple Paths in Workflow
(http://www.sqldts.com/default.aspx?218)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"J-T" <J-T (AT) nospam (DOT) com> wrote

Quote:
I need to create a package that pumps two different types of CSV files into
database.The only thing I know is that CSV files are definitely comma
seprated ,might be double-qoute delimitted or not ,in one format there is
10 fields and in the other one there is 12 fields.

Is there some ideas that can help?

Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.