Article View: borland.public.cppbuilder.database.ado
Article #134Accessing BLOB fields through ADO in VBS
From: Marc
Date: Wed, 24 Oct 2007 09:51
Date: Wed, 24 Oct 2007 09:51
37 lines
1857 bytes
1857 bytes
Hi All
I need to read from a VB Script a BLOB field in my Paradox 7 table
"messages".
Using the script below, I was able to connect to the database and retrieve
some of the entries, but ADO does not return the BLOB fields.
MSDN KB confirms this situation:
Q300189: Paradox ISAM Does Not Support Some Paradox 4.x Types
As this article if from 2004, is there a solution in the meantime to read
BLOB fields through ADO?
I tried to ask this question to the PARADOX gurus, but no answer there...
Rds
Marc
***************
Set dbc_conn = CreateObject("ADODB.Connection")
dbc_conn.Open "Driver={Microsoft Paradox Driver (*.db )};" & _
"DriverID=538;" & _
"Dbq=c:\database\;" & _
"CollatingSequence=ASCII"
set rs= createobject("adodb.recordset")
sql="select * from messages"
rs.open sql, dbc_conn,1
while not rs.eof
for each i in rs.fields
MsgBox rs(i.name)
next
rs.movenext
wend
Technical Details
Message-ID:
<471f15ec$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,830064c110f31a3e,start X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Marc" <info@mawnet.com> From: "Marc" <info@mawnet.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Accessing BLOB fields through ADO in VBS Date: Wed, 24 Oct 2007 11:51:41 +0200 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 85.1.121.79 Message-ID: <471f15ec$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193219564 85.1.121.79 (24 Oct 2007 02:52:44 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail