Solved

Updating stored proc result set in Crystal Reports

Posted on 2010-08-27
9
1,210 Views
Last Modified: 2012-05-10
I added a stored procedure to a crystal report.  
After adding to the CR it appeared the same as a view/table with the fields (result set) on the left hand side under Database Fields.

But, unlike a view or table, I don't seem to be able to update changes.

i.e. I have added a number of columns to the result set that is being returned.   I then went into Set Datasourse Location, found the SP and clicked update.   New table fields were not added to the CR.

I can remove the SP and add it again, but this will not be an option in the future when the report is more developed.  I will need to be able to update it on the fly.

Any ideas?
0
Comment
Question by:obrienj
9 Comments
 
LVL 8

Accepted Solution

by:
kingjely earned 250 total points
ID: 33540849
Hi

Go Database > verify database.

Then refresh your report

Kj
0
 
LVL 8

Expert Comment

by:kingjely
ID: 33540896
A few other things oif that doesnt work,
go to database>Database Expert> right click in the left hand panel, > what options are checked?
Verify stored procedures on first refresh? THere are a few options in here you may need to adjust.

Then you may need to go DAtabase> log off server and log back on.

Then Database>verify Database, you should see your new columns added.

Kj
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33540910
Have tried the Verify Database option on the Database menu?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:obrienj
ID: 33541070
Okay, I tried to Verify Database.... got a load of error messages, so something is wrong here.

Query Engine Error: 'ORA-24372: invalid object for describe'

Query Engine Error: 'Fail to describe a database object. OCI Call: OCIDescribeAny'

Query Engine Error: "

Then repeat of error message again.
0
 

Author Comment

by:obrienj
ID: 33541082
btw, since then I can't preview the report either... get the same error messages (wasn't getting this prior to the verify database)

0
 

Author Comment

by:obrienj
ID: 33541150
okay, it appears my SP wasn't compiled somehow.
0
 

Author Comment

by:obrienj
ID: 33541201
Okay, still trying to verify the database.


When I click it, it comes up with the Parameter box.  I leave these set to null and click okay.
It then gives me the following error message:

Query Engine Error: 'ORA-24338: statement handle not executed'
Query Engine Error: ''

0
 
LVL 19

Assisted Solution

by:GJParker
GJParker earned 250 total points
ID: 33541324
Try enetring some values fior the parameters when verifying teh database.
0
 

Author Closing Comment

by:obrienj
ID: 33541432
Thanks, that last bit was the key, had to have parameters for some reason. (Actually thinking about it it makes perfect sense as it has to get the result set for the SP).

Cheers for the help.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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