![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using DTS in SQL 2000 to download data to a text file. (Fixed Width Columns) All works well but the numbers are all left justified. How to I right justify in Transformations? Jim |
#3
| |||
| |||
|
|
Jim, Basically, you don't. Justification of data is a controlled through whatever client tool you use to view the data. You would control display behavior through a client app, not on a transformation. -Sue On Thu, 8 Apr 2004 16:22:28 -0500, "Jim Covington" jim (AT) firstbankms (DOT) com> wrote: I am using DTS in SQL 2000 to download data to a text file. (Fixed Width Columns) All works well but the numbers are all left justified. How to I right justify in Transformations? Jim |
#4
| |||
| |||
|
|
On Thu, 8 Apr 2004 16:22:28 -0500, "Jim Covington" jim (AT) firstbankms (DOT) com> wrote: I am using DTS in SQL 2000 to download data to a text file. (Fixed Width Columns) All works well but the numbers are all left justified. How to I right justify in Transformations? Jim |
|
Jim, Basically, you don't. Justification of data is a controlled through whatever client tool you use to view the data. You would control display behavior through a client app, not on a transformation. -Sue |
#5
| |||
| |||
|
|
In addition to Sue's comments I would add that because you are using FW text files then maybe you can pad the strings as they go to text file so Source val = 1234 Destination val needs to be 1234 I would convert to string and then pad the length at the start with " " until I reached the length of my column |
#6
| |||
| |||
|
|
In addition to Sue's comments I would add that because you are using FW text files then maybe you can pad the strings as they go to text file so Source val = 1234 Destination val needs to be 1234 I would convert to string and then pad the length at the start with " " until I reached the length of my column -- |
![]() |
| Thread Tools | |
| Display Modes | |
| |