dbTalk Databases Forums  

Conditional BCP inserts

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


Discuss Conditional BCP inserts in the microsoft.public.sqlserver.dts forum.



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

Default Conditional BCP inserts - 03-21-2005 , 06:29 PM






I am not sure if BCP can do this, or anything in SQL server can do this.

I am trying to take a file that contains several record types: RHDR, RDET,
RCOM.

When the record type (position 1-4 in my input file) is RHDR, I want to
insert into certain columns in TEMP_TABLE.

When position 1-4 is RDET, I insert into different columns in TEMP_TABLE (or
perhaps a different table).

This is conditional inserts using SQLLDR in Oracle. I haven't been able to
find that same funtionality in SQL Server. Anyone point me to the correct
terminology to be searching for?

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.