Print Page | Close Window

Oracle Server vs. ODBC

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=783
Printed Date: 04 May 2025 at 8:50pm


Topic: Oracle Server vs. ODBC
Posted By: grmrpr
Subject: Oracle Server vs. ODBC
Date Posted: 05 Jun 2007 at 6:54am

Okay the problem I am having is pretty strange. I have a Crystal Report that is using the ODBC connection with a view and a SQL command together. The report is pulling fiscal periods and I need to be able to show an end user what month the fiscal period represents. In other words, if the fiscal period is '01' then the month is July. There is a fiscal period in the view but there it does not say what month it is.

This is where my SQL Command is used. It does a decode statement so that I can use the actual month for the parameter prompt for the user.

My problem is now I have to change the source from the ODBC connection to the Oracle Server. Now, the report does not work correctly using the SQL Command. It is not pulling anything at all.

For reference, here is the SQL Command that I am using (I am linking this SQL Command to the view using the fields FISCAL_YEAR and FISCAL_PERIOD):
<SQL Command>
SELECT DISTINCT fiscal_year, fiscal_period, DECODE(fiscal_period, '00', 'Beginning Balance', '01', 'July', '02', 'August', '03', 'September', '04', 'October', '05', 'November', '06', 'December', '07', 'January', '08', 'February', '09', 'March', '10', 'April', '11', 'May', '12', 'June') "MONTH"
FROM af_operating_ledger
WHERE fiscal_period_status = 'O' or fiscal_period_status = 'C'
ORDER BY fiscal_year, fiscal_period
</SQL Command>

Why would the report stop working because of the SQL Command in Oracle Server? What is different between using the ODBC connection and the Oracle Server connection in Crystal Reports that would cause this SQL Command to stop working?

Any help would be much appreciated,
Grim




Replies:
Posted By: BrianBischof
Date Posted: 05 Jun 2007 at 10:45am
Sorry, I know nothing about Oracle. Are there any oracle experts here? I do know that there is an excellent book on CR and Oracle that you can buy off Amazon.com.

http://www.amazon.com/exec/obidos/ASIN/0072230797/bischofsystem-20 - Crystal Reports and Oracle


-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: grmrpr
Date Posted: 05 Jun 2007 at 10:51am
My main concern is that I will need to change ALL of my Crystal Reports that I have done because they were all done using the ODBC. This is the main problem that I am having with the change from ODBC to Oracle Server (so far, at least).
 
I have asked several IT staff here and no one really knows what is the difference when using a reporting tool (like Crystal Reports) using the ODBC or using Oracle Server connection.
 
Since I am going to need to change all of the reports, they are all using some form of SQL Command to pull very specific things for a report. This problem seems like it would be easy to fix, but so far I have been unsuccessful.
 
I can go into more detail if that would help anyone assess the situation, if needed. I just need to QUICKLY figure out how to fix this for end-of-year Finance reporting (end of June for us).
 
Thanks,
Grim


Posted By: BrianBischof
Date Posted: 05 Jun 2007 at 10:56am
Unfortunately, I think this forum is mostly visited by SQL Server people. I only see an Oracle person periodically and I doubt if you'll get an answer for your problem. You should get that book right away b/c it will be your best resource for using Oracle and Crystal Reports.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window