BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADOQuery and BlobStreams

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Powell Benedict
Guest





PostPosted: Tue Jul 20, 2004 2:16 am    Post subject: TADOQuery and BlobStreams Reply with quote



All,

I have a table which has two blob fields. I have located code that shows
how to use a TADOTable component to insert new records into this table, but
my questions is this: what if I want to update one of those records?

My preference would be to use a TADOQuery. I have seen code to read blob
data from a TADOQuery, but how would I do an update? I'd like to issue a
SQL Update to do this, is it possible?

Is there a better way?

Thanks!!

Powell


Back to top
Powell Benedict
Guest





PostPosted: Thu Jul 22, 2004 3:02 am    Post subject: Re: TADOQuery and BlobStreams Reply with quote



Worked like a champ, THANKS!!!


"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote

Quote:

I have a table which has two blob fields. I have located code that shows
how to use a TADOTable component to insert new records into this table,
but
my questions is this: what if I want to update one of those records?

My preference would be to use a TADOQuery. I have seen code to read blob
data from a TADOQuery, but how would I do an update? I'd like to issue a
SQL Update to do this, is it possible?
If you want to do an Update query TadoCommand is a better choice than
TADOQuery.
For blobFields create parameters in the update query. You can use
Tparameter.loadfromFile or Tparameter.LoadfromStream to set the value of
the
parameters with your blob value

--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.