--Error code
DECLARE @dt VARCHAR(10)
SET @dt = '12012009'
SELECT CAST(@dt AS DATETIME)
--Working code
DECLARE @dt VARCHAR(10)
SET @dt = '20091201'
SELECT CAST(@dt AS DATETIME)
Showing posts with label date. Show all posts
Showing posts with label date. Show all posts
Tuesday, January 19, 2010
Subscribe to:
Posts (Atom)