Re: Remove Field Terminators from Null Columns in DTS Export
From: Mike Sayko (saykomj_at_yahoo.com)
Date: 03/22/04
- Next message: Paul Cahill: "Re: Generic DTS pump for any table from t-sql"
- Previous message: Justin Engelman: "Re: Global Variables"
- In reply to: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Next in thread: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Reply: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Messages sorted by: [ date ] [ thread ]
Date: 21 Mar 2004 23:28:35 -0800
Partha Mandayam <mcp111@hotmail.com> wrote in message news:<Ohk2r93DEHA.712@tk2msftngp13.phx.gbl>...
> if not isnull(DTSSource("col001") then
> dtsdestination("col001")=dtssource("col001")
>
> and so on for all columns.
> This will only copy the non-null columns to the output
>
>
> Regards
>
> Partha Mandayam
> Software Consultant
> Home page: http://partha.tripod.com
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Partha,
As I said, your obvious solution will not work. This problem is the
reverse of the issues group members have often shared here on Nulls
with Excel and fixed width flat files. Only trailing null columns
need to be excluded per row. Null columns are common in the middle of
two columns with data and must be exported as null. Successive column
delimiters are only prohibited between the last column of data for a
given row and the row delimiter. Hopefully the following sample will
better illustrate the problem. Thanks.
Column delimiter = '*'
Row delimiter = '~'
Current Result: SE*1*XXXXXX****123*U*********~
ISY*D*00* *321******0******~
Desired Result: SE*1*XXXXXX****123*U~
ISY*D*00* *321******0~
Regards,
Mike Sayko
Triad Research, Inc.
- Next message: Paul Cahill: "Re: Generic DTS pump for any table from t-sql"
- Previous message: Justin Engelman: "Re: Global Variables"
- In reply to: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Next in thread: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Reply: Partha Mandayam: "Re: Remove Field Terminators from Null Columns in DTS Export"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|