Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Left pad field

    This will pad out any column or variable to what ever length you need.

    CONVERT(varchar(5), REPLICATE('0', 5 - DATALENGTH(CONVERT(varchar(5), ColA))) + CONVERT(varchar(5), ColA))

  • RE: Transaction log will not shrink

    I tried Hoo-t suggestion and code and it worked like a champ. Thanks for the info.

Viewing 2 posts - 1 through 2 (of 2 total)