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
 Transact-SQL (2000)
 set image field to null

Author  Topic 

imughal
Posting Yak Master

192 Posts

Posted - 2004-09-03 : 07:16:13
hello

i have table containg id, filename and fileinformation fields.
fileinformation datatype is image and i store image in binary format in imageinformation field. Due to shortage of sapce i have to set null values in fileinformation filed and keep other field information.

i have tried this like that

update filetable set fileinformation= '' where fileid=1

is this the right way to set NULL in replace of binary data field. Or is there any other best way.

thx

mr_mist
Grunnio

1870 Posts

Posted - 2004-09-03 : 07:19:25
'' is not null, it's an empty string, which is different.

set fileinformation = null would set it to null.

-------
Moo. :)
Go to Top of Page
   

- Advertisement -