Re: Copying Binary data from one table to another
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 6 Mar 2008 09:17:13 -0500
Bob Barrows [MVP] wrote:
dim sql,cmd,arParms
sql="insert into binary_b (copy_a,copy_b,copy_c) values (?,?,?)"
arParms=array(original("org_a"),original("org_b"), _
original("org_c"))
set cmd=createobject("adodb.command")
set cmd.activeconnection = CecExe
cmd.commandtext = sql
cmd.commandtype=1
cmd.execute ,,128
Oops - I hit Send too soon. If this fails, then you are going to need to
explicitly create parameters and probably use GetChunk to get the binary
data from the recordset and AppendChunk to put the binary data into the
binary parameter ... are you sure you don't want to bypass using the
recordset?
Oh! and one more thing. I think in this case you need to be more
explicit:
sql="insert into binary_b (copy_a,copy_b,copy_c) values (?,?,?)"
arParms=array(original("org_a").value, _
original("org_b").value, _
original("org_c").value)
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- Re: Copying Binary data from one table to another
- From: Bob Barrows [MVP]
- Re: Copying Binary data from one table to another
- From: Bob Barrows [MVP]
- Re: Copying Binary data from one table to another
- From: normanp
- Re: Copying Binary data from one table to another
- From: Bob Barrows [MVP]
- Re: Copying Binary data from one table to another
- Prev by Date: Re: Copying Binary data from one table to another
- Next by Date: Re: Copying Binary data from one table to another
- Previous by thread: Re: Copying Binary data from one table to another
- Next by thread: Re: Copying Binary data from one table to another
- Index(es):
Relevant Pages
|
Loading