Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 update a datetime column to Null

Author  Topic 

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2011-08-29 : 14:50:25
Hi
Iam trying to update a datetime column from '1/1/1900' to Null.
When i try to update with the folloing below sql 1/1/1900 is getting inserted.I would like to have it updated to 'NULL'
How would i do that


Update Table A
Set tableA.ColumnA = ''
where reqno = xxxxx


Thanks
Jim

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-08-29 : 15:00:53
Update TableA
Set ColumnA = null
where reqno = xxxxx

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page
   

- Advertisement -