Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Error converting data type varchar to smalldatetime.

$
0
0
Hi All, I have a small test stored proc. I keep getting an error saying Error converting data type varchar to smalldatetime.create procedure test @TestDate smalldatetime AS if @TestDate > '06/06/2079' select @TestDate = nullelseprint 'test1'when I do this test '12/01/2079'. I get an error "converting data type varchar to smalldatetime." How can I resolve this error.any help will be greatly appreciated.

Viewing all articles
Browse latest Browse all 3145

Trending Articles