๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.perl.misc
Article #259

Re: Difference between Win32::ODBC and Win32::OLE

#259
From: Martin Atkins
Date: Wed, 21 Jul 1999 00:00
38 lines
2120 bytes
.----- On Wed, 21 Jul 1999 09:02:28 +0100, Alain BORGO posted:
|Hello,
|
|I have a field LONG in a oracle database.
|
|When I use Win32::ODBC, I can correctly retrieve this field and print
|it in an ASP page.
|
|BUT, when I use Win32::OLE, I get this error :
|
|Microsoft OLE DB Provider for ODBC Drivers error '80040e21' 
|Des erreurs sont survenues. 
|
|Can someone tell me why ?
|-- 
|A bient๏ฟฝt.
'-------------------------------------

I don't know what 'Des erreurs sont survenues' means in English, but I can
make a small suggestion. If you are using ASP, as this post indicates, then
use the supplied 'server component' for database access rather than the perl
modules, eg:

Set OBJdbConnection = Server.CreateObject("ADODB.Connection")  
OBJdbConnection.Open "DSN Name"

SQLQuery = "SELECT * FROM tablename ORDER BY Name ASC"

Set db = OBJdbConnection.Execute(SQLQuery) 

and so on...

It works fine for me, but then my fields are strings.

Hope this helps,
-Martin
|\/| _..__|_o._   /\_|_| o._  _   mart.atkins@--
|  |(_||  |_|| | /--\|_|<|| |_>            --bigfoot.com
Technical Details
Message-ID: <3795ee10.8798632@news.vossnet.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37957E94.9DD683AC@ratp.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 105311,f2fe7d1d3c5b7a50
X-Google-Attributes: gid105311,public
X-Google-Thread: 112333,f2fe7d1d3c5b7a50
X-Google-Attributes: gid112333,public
X-Google-Thread: fb7f8,f2fe7d1d3c5b7a50
X-Google-Attributes: gidfb7f8,public
X-Google-Thread: fa0ae,f2fe7d1d3c5b7a50
X-Google-Attributes: gidfa0ae,public
From: zneg.ngxvaf@ovtsbbg.pbz (Martin Atkins)
Subject: Re: Difference between Win32::ODBC and Win32::OLE
Date: 1999/07/21
Message-ID: <3795ee10.8798632@news.vossnet.net>
X-Deja-AN: 503734576
References: <37957E94.9DD683AC@ratp.fr>
X-Complaints-To: abuse@cableinet.net
X-Trace: news1.cableinet.co.uk 932600400 23558 195.188.10.2 (21 Jul 1999 23:40:00 GMT)
Organization: Cable Internet (post doesn't reflect views of Cable Internet)
Reply-To: zneg.ngxvaf@ovtsbbg.pbz
NNTP-Posting-Date: 21 Jul 1999 23:40:00 GMT
Newsgroups: comp.lang.perl.misc,fr.comp.lang.perl,comp.infosystems.www.servers.ms-windows,fr.comp.infosystemes.www.serveurs