Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Oracle Server vs. ODBC Post Reply Post New Topic
Author Message
grmrpr
Newbie
Newbie


Joined: 05 Jun 2007
Online Status: Offline
Posts: 2
Quote grmrpr Replybullet Topic: Oracle Server vs. ODBC
    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

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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.

Crystal Reports and Oracle


Edited by BrianBischof - 05 Jun 2007 at 10:48am
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>
IP IP Logged
grmrpr
Newbie
Newbie


Joined: 05 Jun 2007
Online Status: Offline
Posts: 2
Quote grmrpr Replybullet 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
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.