dbTalk Databases Forums  

Conditional creation of raw files in dataflow in SSIS

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


Discuss Conditional creation of raw files in dataflow in SSIS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marc
 
Posts: n/a

Default Conditional creation of raw files in dataflow in SSIS - 05-05-2006 , 08:14 AM






Dear all

In SSIS I want to write the error rows in the dataflow of a package to a row
file. This works well. But if I have no errors, I do NOT want to create a raw
file. How can I achieve this?

Regards,

Marc

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: Conditional creation of raw files in dataflow in SSIS - 05-07-2006 , 09:22 PM






Hi Marc,

Thank you for using MSDN Managed Newsgroup Support.

Based on my scope, you could set the Data source Error Output to the Raw
file destination.

I don't think you could set the precondition in the Data flow.

Here is a option you may use from community members.

http://groups.google.com/group/micro...browse_frm/thr
ead/8e6f01122295fe5/546ba6ed896888dc

Hope this will be helpful.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #3  
Old   
Marc
 
Posts: n/a

Default RE: Conditional creation of raw files in dataflow in SSIS - 05-09-2006 , 02:58 AM



Hi Wei

I tried to use the row count error output to the raw file destination, but
it created the file either if there were errors or if there where no errors.
I implemented a script task in the control flow which checks at the end of
the package the errors occured - if there aren't any it deletes the file just
created. Its not that nice but it works.

Best regards,

Marc



Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default RE: Conditional creation of raw files in dataflow in SSIS - 05-09-2006 , 06:27 AM



Hi Marc,

Thanks for the update. Glad to hear you resolve this issue by add a script
to delete the file.

If you have any questions or concerns, please feel free to let me know.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


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.