create table datetbl(col1 datetime) insert into datetbl(col1) values ('17510101') Msg 242, Level 16, State 3, Line 1The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.The statement has been terminated.
create table datetbl2(col1 date) insert into datetbl2(col1) values ('17510101')
create table datetbl3(col1 date, col2 date) insert into datetbl3(col1, col2) values ('17510101', '17530101') select DATEDIFF(dd, col1, col2) from datetbl3
Remember Me
a@href@title, strike
Theme design by Jelle Druyts
Pick a theme: BlogXP sqlx BlogXP sqlx
Powered by: newtelligence dasBlog 2.0.7226.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Conor Cunningham
E-mail