Re: Setting an image datatype to NULL
From: Roger Withnell (rogerREMOVE_at_THISFIRSTupperbridge.co.uk)
Date: 09/08/04
- Next message: Curt_C [MVP]: "Re: Web Design for ASP"
- Previous message: Steven Burn: "Re: How to put Crystal Report In Web Server ???"
- In reply to: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Next in thread: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Reply: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Reply: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 15:03:44 +0000 (UTC)
I'm using AspUpload to upload two images at the same time. Don't see how I
can do that with an UPDATE, so I'm stuck with updating a record set.
Any other ideas appreciated.
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:OfQCdyNlEHA.3372@TK2MSFTNGP09.phx.gbl...
> Use an UPDATE statement, then you don't have to worry about how the word
> "null" is misinterpreted in the various layers.
>
> conn.execute "UPDATE tbl SET imageCOLUMN = NULL [...where...]", , 129
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Roger Withnell" <rogerREMOVE@THISFIRSTupperbridge.co.uk> wrote in message
> news:chipc3$4v5$1@titan.btinternet.com...
>> I'm updating a record by opening a recordset, setting the fields and the
>> updating it with objRS.Update.
>>
>> I need to set an image datatype to NULL. objRS("field") = NULL works
>> for
>> datatypes int and varchar but not for datatype image, although there is
>> no
>> error - the image field still contains the image!
>>
>> I'm using SQL server and running an UPDATE statement including image =
> NULL
>> works.
>>
>> Any help would be much appreciated.
>>
>>
>
>
- Next message: Curt_C [MVP]: "Re: Web Design for ASP"
- Previous message: Steven Burn: "Re: How to put Crystal Report In Web Server ???"
- In reply to: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Next in thread: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Reply: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Reply: Aaron [SQL Server MVP]: "Re: Setting an image datatype to NULL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|