cancel
Showing results for 
Search instead for 
Did you mean: 

Why will Crystal Reports not produce the correct results using an SQL query?

Former Member
0 Kudos

I write a rather complex (several inner and outer joins and one "not in" clause) query using Oracle's SQL Developer and get results. I then paste the query into a command as the source of a Crystal Report. For this particular query, SQL developer returns 27 rows and Crystal Reports returns zero. There are no parameters to the command and I have performed no selecting in the report. I have 50 or more reports in my application that all work as expected with this one exception. What is prohibiting Crystal Reports from passing the command through to Oracle unchanged?

Accepted Solutions (1)

Accepted Solutions (1)

vitaly_izmaylov
Employee
Employee

There is one limitation in Native (Oracle Server) connection in Crystal Reports connecting to Command Object, View or Stored Procedure. It supports only specific Date format. If you have hardcoded Date selection in your query - it could be the cause.

https://apps.support.sap.com/sap/support/knowledge/public/en/1569938

Answers (3)

Answers (3)

Former Member
0 Kudos

Ian, you got me thinking. I changed the database location and created a new connection using OLE DB. Although it runs a little slower, the report now returns the correct results. Any idea why the "Oracle Server" connection would not return any results?

Former Member
0 Kudos

When creating the connection, I click on "Oracle Server".

Former Member
0 Kudos

What is the connection type ODBC, OLEDB

Is it the same type of connection for all reports?

I have had some problems when using ODBC with some commands?

Ian