Thanks Uri, Vinod & David.
Works like a charm.
>-----Original Message-----
>NULL cannot be equated to a NULL value. Hence use the IS
NULL expression in
>the where clause.
>
>--
>HTH,
>Vinod Kumar
>MCSE, DBA, MCAD, MCSD
>
http://www.extremeexperts.com >
>Books Online for SQL Server SP3 at
>
http://www.microsoft.com/sql/techinfo/productdoc/2000/boo ks.asp
>
>
>"Russ Franklin" <anonymous@discussions.microsoft.com>
wrote in message
>news:062601c3cf6f$39692f20$a501280a@phx.gbl...
>> Hello,
>>
>> How do I set the column of a table so that where it
>> equals null it gets populated with a certain value.
>>
>> What I have tried is:
>>
>> update HAIRCUT
>> set HAIRCUTCD = '001'
>> where HAIRCUTCD = NULL
>>
>> and
>>
>> update pipe_pipeNo
>> set ContractId = '001'
>> where ContractId = 'NULL'
>>
>> and
>>
>> update HAIRCUT
>> set HAIRCUTCD = '001'
>> where HAIRCUTCD = ''
>>
>> Neither of which has worked. I receive the following:
(0
>> row(s) affected)
>>
>> The table currently has 12,000 rows where HAIRCUTCD is
>> NULL.
>>
>> Thanks,
>> Russ
>>
>
>
>.