dbTalk Databases Forums  

DTS to text file, remove blank line between each record/row

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


Discuss DTS to text file, remove blank line between each record/row in the microsoft.public.sqlserver.dts forum.



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

Default DTS to text file, remove blank line between each record/row - 08-10-2005 , 12:55 PM






Hi,

I finally got this DTS thing to work except that when the records are
written to the specified text file there is a blank line/carriage return in
between each record:

Record 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

is there any way to get rid of that space?

Thanks!

Mitch



Reply With Quote
  #2  
Old   
Rick Gittins
 
Posts: n/a

Default Re: DTS to text file, remove blank line between each record/row - 08-11-2005 , 04:20 PM






What do you have for your file type and row delimiter in the properties of
you export connection?

Rick

"mitch" <mitch_001 (AT) REMOVEyahoo (DOT) com> wrote

Quote:
Hi,

I finally got this DTS thing to work except that when the records are
written to the specified text file there is a blank line/carriage return
in between each record:

Record 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

is there any way to get rid of that space?

Thanks!

Mitch




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

Default Re: DTS to text file, remove blank line between each record/row - 08-11-2005 , 05:32 PM



I tried every combination and these two produced the best results:

Fixed
OEM
CR/LF

and

Fixed
UniCODE
CR/LF

Thanks for taking a look at this.

Mitch




"Rick Gittins" <rgittins (AT) dungarvin (DOT) com> wrote

Quote:
What do you have for your file type and row delimiter in the properties of
you export connection?

Rick

"mitch" <mitch_001 (AT) REMOVEyahoo (DOT) com> wrote in message
news:eBq1nycnFHA.3608 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi,

I finally got this DTS thing to work except that when the records are
written to the specified text file there is a blank line/carriage return
in between each record:

Record 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

is there any way to get rid of that space?

Thanks!

Mitch






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

Default Re: DTS to text file, remove blank line between each record/row - 08-12-2005 , 10:32 AM



Problem solved!

Very strange, but the problem was that although I was not calling up every
field in the table, the fields that were not being used and were just NULL
were causing a bunch of extra characters that were forcing a line break.

I removed those fields we would never use and it works fine.

I thought I would post this just in case someone else runs into this
someday.

Mitch


"mitch" <mitch_001 (AT) REMOVEyahoo (DOT) com> wrote

Quote:
I tried every combination and these two produced the best results:

Fixed
OEM
CR/LF

and

Fixed
UniCODE
CR/LF

Thanks for taking a look at this.

Mitch




"Rick Gittins" <rgittins (AT) dungarvin (DOT) com> wrote in message
news:%23GhJ2HrnFHA.3608 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
What do you have for your file type and row delimiter in the properties
of you export connection?

Rick

"mitch" <mitch_001 (AT) REMOVEyahoo (DOT) com> wrote in message
news:eBq1nycnFHA.3608 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Hi,

I finally got this DTS thing to work except that when the records are
written to the specified text file there is a blank line/carriage return
in between each record:

Record 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Record 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

is there any way to get rid of that space?

Thanks!

Mitch








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.