468,110 Members | 1,949 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

How to Store NULL in datetime datatype

Hi am working with asp.net with backend Sql2000

i want to store NULL in datetime datatype field through coding. i wrote a update statement as
Update table set Date1='NULL' where ........
but while updating it is giving error converting varchar to datetime

how to store NULL in that field
please respond

Thanks in Advance
Jul 24 '08 #1
1 1083
r035198x
13,262 8TB
Don't put the quotes around NULL. The quotes are the ones making it a string.
Jul 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by andrew lowe | last post: by
2 posts views Thread by Pet Matrix. | last post: by
6 posts views Thread by Markus Eßmayr | last post: by
3 posts views Thread by Martin | last post: by
3 posts views Thread by Reza Solouki | last post: by
3 posts views Thread by Jay | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.