Re: Getting date/time fields from Oracle with ADO
From: Douglas Marquardt (no_spam_at_dummy.com)
Date: 03/09/04
- Next message: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Previous message: Rick Rothstein: "Re: Time change"
- In reply to: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Next in thread: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Reply: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Mar 2004 12:08:41 -0700
Hi Cesar:
Yes, ado will report 135 for a date field in Oracle.
The reason I asked, is because I was having the same problem
and I discovered that my field was set to timestamp; when I
changed it to data the error went away.
Do you create the table using SQL (i.e. CREAT TABLE ..etc)
or did you do it manually in the OEM?
Doug.
"Cesar Ronchese" <ronchese@smlinfo.com.br> wrote in message news:uyIx$ggBEHA.392@TK2MSFTNGP12.phx.gbl...
> 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: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Previous message: Rick Rothstein: "Re: Time change"
- In reply to: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Next in thread: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Reply: Cesar Ronchese: "Re: Getting date/time fields from Oracle with ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|