dbTalk Databases Forums  

Load empy file

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


Discuss Load empy file in the microsoft.public.sqlserver.dts forum.



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

Default Load empy file - 01-26-2006 , 02:20 PM






Is it possible to load a blank or empty file with a data pump task? We have
a process that loads multiple files, and sometimes they contain data and
sometimes they don't. We don't know which files will contain data and which
ones wont. Instead of creating multiple packages to handle every possible
scenario, is it possible to have the source file in a data pump be blank and
have it load 0 rows to the destination table?

Any help is appreciated.

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Load empy file - 01-26-2006 , 09:36 PM






Another option is when you loop through the files, check the
file size to see if it has data and should be imported.

-Sue

On Thu, 26 Jan 2006 12:20:02 -0800, "Andy"
<Andy (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Is it possible to load a blank or empty file with a data pump task? We have
a process that loads multiple files, and sometimes they contain data and
sometimes they don't. We don't know which files will contain data and which
ones wont. Instead of creating multiple packages to handle every possible
scenario, is it possible to have the source file in a data pump be blank and
have it load 0 rows to the destination table?

Any help is appreciated.


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.