Re: how to update a text BLOB in ODBC?
| From: | Ryan Gallagher | Date: | Wed, 20 Nov 2002 07:07:58 +0000 |
| Subject: | Re: how to update a text BLOB in ODBC? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23509@lists.php.net to get a copy of this message | ||
Quoting Jeff Stern <jastern@uci.edu>:
> thanks for the correction, miles and martin.. just an email typo.
>
> i still have the problem though. :(
>
>
> On Tue, 19 Nov 2002, Miles Thompson wrote:
>
> > Jeff,
> >
> > Check your SQL. Shouldn't
> > $sql = "insert into note_tbl
> > (note) values ('${note}')
> > where pkey = '45'";
> >
> > be UPDATE .... where pkey = '45' ?
With MSSQL the blobs (text/image) can be handled with READ_IMAGE/READ_TEXT and
WRITE_IMAGE/WRITE_TEXT. This writes/reads from the paged resource directly,
bypassing the transaction log etc etc. I don't know if your DB possibly has a
similiar method?
Aside: Insert and Update work normally as well... but are fully logged.
--
Ryan T. Gallagher
ryan@studiesabroad.com
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522