cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal freezes when changing stored procedure

Former Member
0 Kudos

Hi,

I have a problem modifying a report. The report runs from a stored procedure, with many parameters in the stored procedure. The sp itself doesn't use most of these parameters, but I need them to be in there, because the reports are run from a third-party application that can either use crystal parameters or stored procedure parameters, but not both, so most parameters are used from crystal.

The problem I have is that when I try to add a new parameter (of type nvarchar(27)) to the sp, the report stops working completely in crystal (it displays "accessing database", will sometimes get to "reading records 2/2", then freezes). Nothing else has changed in the report, and the sp still runs fine in about 4 seconds in SQL Server management studio.

Accepted Solutions (0)

Answers (1)

Answers (1)

patrick_genest
Advisor
Advisor
0 Kudos

Hi Charles,

I will suggest to do a verify database to ensure Crystal Reports detected the changes you have made in your stored procedure.

To verify database:

- Select "Verify Database" under the menu "Database"

Once this is done, your new parameter should then be added to the report, and you should be able to refresh the report.

If you are still experiencing an issue, I will then suggest for testing purposes to verify if creating a new report of that stored procedure works.

Patrick

Former Member
0 Kudos

I'd actually done the verify database, and since I suspected the problem would not crop up again if I just started off a new report off of this stored proc, and did not want to redo the report completely to check if the problem came back, I instead re-created the stored procedure with a different name, and used set datasource location to point to the new SP. I really don't understand why, but that solved the problem...