Viewing 2 posts - 16 through 18 (of 18 total)
Hello,
Please find an example sql below. Hope it helps.
-- Drop table if it already exists
IF (OBJECT_ID('tempdb..#tmpOrders') IS NOT NULL)
BEGIN
DROP TABLE #tmpOrders ;
END ;
-- Create temp table...
March 11, 2014 at 6:14 pm
#1696188
A bit longer, but more obvious.
DECLARE @INTINT= 1 ;
SELECT REPLICATE('0', 2 - LEN(@INT)) + CAST(@INT AS VARCHAR)
Pass the column name instead of @INT
October 9, 2013 at 11:10 pm
#1657374