dbTalk Databases Forums  

Right-Justified Export

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


Discuss Right-Justified Export in the microsoft.public.sqlserver.dts forum.



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

Default Right-Justified Export - 08-07-2003 , 12:40 PM






How do I export numeric fields into a test file that the
numeric fields are right-justified(the default is left-
justified).

Thanks.

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Right-Justified Export - 08-07-2003 , 02:07 PM






In article <011701c35d0a$f3712300$a401280a (AT) phx (DOT) gbl>, Jian Liu
<Jizliu (AT) hotmail (DOT) com> writes
Quote:
How do I export numeric fields into a test file that the
numeric fields are right-justified(the default is left-
justified).

Thanks.
You could use a source SQL statement, convert the field to varchar and
pad with spaces up to the field length.

Or

Use an ActiveX Script Transform where you could follow the same process.

SQL would probably be faster.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com




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.