Re: Getting date/time fields from Oracle with ADO
From: Cesar Ronchese (ronchese_at_smlinfo.com.br)
Date: 03/09/04
- Next message: Rick Rothstein: "Re: Time change"
- Previous message: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- In reply to: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Next in thread: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Reply: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Mar 2004 15:56:36 -0300
The Oracle Enterprise Manager is showing DATE, but ADO shows datatype 135
(TimeStamp).
"Douglas Marquardt" <no_spam@dummy.com> wrote in message
news:Oi8aNfgBEHA.2768@tk2msftngp13.phx.gbl...
Hi Cesar:
Can you verify that the field in Oracle was created using the
"DATE" datatype and not "TIMESTAMP"?
Doug.
"Cesar Ronchese" <ronchese@smlinfo.com.br> wrote in message
news:%23Qf2$ZgBEHA.1140@TK2MSFTNGP10.phx.gbl...
> Hello, guys!
>
> I'm migrating from SQLServer (7) to Oracle (9.i release 2), so my software
> can support multi-databases. In SQL Server, all works fine.
>
> However, testing my programs in Oracle, I got a problem with fiels in Date
> datatype, when that field use date/time togheter.
>
> See the following sample:
>
> Dim cnn As New Connection
> Dim rs As New Recordset
>
> 1 cnn.Open "Provider=MSDAORA.1;Password=PWD;User ID=USER;Data
> Source=NAME;Persist Security Info=True"
> 2 rs.Open "select doctype_insertdate from doctype", cnn
> 3 Debug.Print rs("doctype_insertdate").Value
>
>
>
> The error occurs when I try get the value in line 3, above. The message
is:
>
> Run-time error '-2147217887 (80040e21)':
> Mulitple-step OLE DB operation generated errors. Check each OLE DB status
> value, if available. No work was done.
>
>
> If I remove the time from field (directly in database), the code above
work.
> But, I need to get the date and time from that field.
>
> Anyone have a solution for this problem?
>
> Tks in advance!
>
> []'s
> Cesar
>
>
>
>
>
- Next message: Rick Rothstein: "Re: Time change"
- Previous message: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- In reply to: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Next in thread: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Reply: Douglas Marquardt: "Re: Getting date/time fields from Oracle with ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|