Display / Use Timestamp data type from Oracle into crystal report

Posted on 2004-09-22
Last Modified: 2012-08-13
I am using crystal report 8.5 and my database is Oracle 8i.
I have a field of type "timestamp" in one of the table defined as "DATETIME,  TIMESTAMP(6),  2147483647"
When I try to include this in my report, although the field gets included, it gives me ODBC error generated by oracle of incompatible types followed by crystal report error saying error detected in dll. When i rightclick on the field it shows : Blob Field: "tablename.datetime" followed by other options.
Can anybody throw some light please?
Best Wishes,
Question by:picasothakkar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 101

Expert Comment

ID: 12127053
Is the name of the field DATETIME?

If so I suspect there is a problem with either Crystal or the ODBC driver or both because DATETIME is a datatype in Crystal and may also be one in the ODBC driver.

LVL 22

Expert Comment

by:Helena Marková
ID: 12130719
It would be better if you post here your table.

Author Comment

ID: 12132643
As per suggestion from mlmcc, i am in process to get the field name "DATETIME" changed to "LOGDATETIME". Here's the current schema that is giving problem:

[Row, Column, Type, Length]
3  DATETIME,  TIMESTAMP(6),  2147483647,

Thanks in advance,
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 12137114
I got the field name changed to LOGDATETIME but that still dosen't solve the problem. Any second thoughts?
LVL 22

Expert Comment

by:Helena Marková
ID: 12140219
In Oracle there cannot be a column of type TIMESTAMP - see this (the registration is free):
So correct it to:

Author Comment

ID: 12143643
i don't know which version of oracle i am using but i do get a resultset when i execute the sql query (select to_char(logdatetime) from loginfo) gives results as:
1  20-SEP-04 PM,
2  20-SEP-04 PM,
3  20-SEP-04 PM,
4  20-SEP-04 PM,
5  20-SEP-04 AM,
6  20-SEP-04 AM,
7  20-SEP-04 AM,
8  20-SEP-04 AM,
9  20-SEP-04 AM,
10  20-SEP-04 AM,
11  20-SEP-04 AM,
Should i use date datatype? does it include time also?
LVL 22

Accepted Solution

Helena Marková earned 50 total points
ID: 12157781
This result seems to be Oracle 9i or higher. What tool do you use for executing sql query ?

In the DATE datatype there is also time there. In Oracle it is about format mask:

SQL> select to_char(sysdate,'') from dual;


SQL> select to_char(sysdate,' hh24:mi:ss') from dual;

27.09.2004 07:26:43


Author Comment

ID: 12185611
I converted the field to date and things work fine now. My oracle db is 8.0. Thanks henka

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question