Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Reports - Add a new field to a stored procedure and make it available in the IDE?

I added a new field to a stored procedure.

How do I get it to be available in Crystal Reports without resetting the datasource in the database expert?

like image 808
Brian Webster Avatar asked Oct 29 '09 23:10

Brian Webster


People also ask

How do you update a database field in Crystal Reports?

Back in the 'Set Datasource Location' window; make sure the correct database is selected in the 'Current Data Source' list. Select the newly created database connection in the 'Replace with' list. Click the Update button. Now the database connection is updated.


3 Answers

Verify Database works, but you have more control over things if you use the Set Datasource Location (found in Database > Set Datasource Location) to update the report after a proc change:

  1. Open the Set Datasource Location dialogue (Database > Set Datasource Location).
  2. Left click/select the procedure to update in the Current Data Source pane
  3. Navigate to the procedure on the server to update with in the Replace with pane
    • Use the Current Connections leaf if you've already ran a report within the Crystal Reports Developer application. It can take a while for the pane to refresh.
    • Otherwise, navigate to the Create New Connection > [Database] leaf. If using Oracle, you will be prompted for the TNS, user and password for the connection
  4. Click the now enabled Update button

This is where you set the Overridden Table Qualifier Name, which is essential for Oracle when a single report is to support multiple environments using the same TNS name.

like image 139
OMG Ponies Avatar answered Oct 14 '22 04:10

OMG Ponies


Database Menu -> Verify Database

http://it.toolbox.com/blogs/programming-life/adding-new-fields-to-stored-procedure-and-updating-it-in-crystal-reports-30072

like image 42
Brian Webster Avatar answered Oct 14 '22 03:10

Brian Webster


Click on Database -> Verify Database

Then right click on data source and refresh

like image 2
Tepu Avatar answered Oct 14 '22 04:10

Tepu