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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 update query doesn't work

Author  Topic 

jim65
Starting Member

35 Posts

Posted - 2006-04-20 : 16:51:43
update dbo.adBorrowerEntity
set ContactFYE = '12/31/2005'
where ContactFYE = NULL


I have a smalldatetime ContactFYE, when I run this, it doesn't work.
Thanks.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-04-20 : 19:38:15
[code]update dbo.adBorrowerEntity
set ContactFYE = '12/31/2005'
where ContactFYE is NULL[/code]



KH


Go to Top of Page

jim65
Starting Member

35 Posts

Posted - 2006-04-20 : 20:23:21
got it, Thanks
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-21 : 02:17:34
You should always use IS to compare with NULL. Null cant be compared with columns using =

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -