Symptom
- Cannot update current connection with a stored procedure.
- The connection name for the stored procedure does not change.
- Crystal Reports crashes when connection is updated with SQL Server stored procedure.
Environment
- SAP Crystal Reports 2013
- SAP Crystal Reports 2016
- MS SQL Server
Reproducing the Issue
- In Crystal Reports, create a report to a MS SQL Server database.
- Under the menu "Database", select "Set Database Location"
- Update the connection to SQL Server, to a Stored Procedure.
Cause
- The database tables are updated with the Stored Procedure but the connection name for the stored procedure doesn’t change, and this normal behavior.
- But Crystal Reports crash because of the MS Windows Data Execution Prevention.
Resolution
- Set the MS Windows Data Execution Prevention, to allow Crystal Reports:
- Right Click on My Computer, and select "Properties"
- Click on Advanced tab
- Click on Settings in the Performance frame
- Go to Data Execution Prevention (DEP) tab
- Check the option ‘Turn on the DEP for all programs and services except those I select:’
- Browse to the appropriate location and add the application crw32.exe
- Click OK
Note: The above steps may be different, depending on the version of MS Windows used.
- Rename the connection in Crystal Reports:
- In Crystal Reports, open the report, and under the menu "Database", select "Database Expert"
- On the Selected Tables panel, right click on the connection name, and select "Rename"
- Rename it to the newly created Stored Procedure connection.
Keywords
CR , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
SAP Crystal Reports 2013 ; SAP Crystal Reports 2016