Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANSI-PADDING DTS job 1

Status
Not open for further replies.

sanctified

Programmer
Mar 9, 2006
65
GB
I've created a DTS job which will export data from a table into a text file using the delimited format.
The field is a char datatype of size 10 chars.
I need to be able to strip trailing spaces from a field how can I achieve this? I've tried using SET ANSI_PADDING ON/OFF within the script but the trailing spaces still appear.

Kind Regards
 
If you're using a select statement to get the data, try:

select rtrim (my_column_name), etc. etc.

Rgds,

M.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top