Posted by Plamen Ratchev on 02/12/07 21:17
....it has been a long day already :) On the last one you do not need the extra CAST: SELECT RIGHT('0000' + CAST(1 as varchar), 4) or, SELECT RIGHT('0000' + CAST(code as varchar), 4) FROM Employes Plamne Ratchev http://www.SQLStudio.com
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming