Using: CR in VS2010, SQL Server 2008R2
I have a SP that returns results when run in SQL Server, but when I add this to a CR it doesnt show any fields in the Field Explorer. But if I try any other SP, it works fine I can see its fields. Steps I am performing:
Infact the new SP and the old have both have the same number of fields. Just some sql changed.
Pissed of with this one..Please help.
Thanks
HOW TO update the Stored Procedure in Crystal Report after altering the Stored procedure in the database.
This procedure can also be used when you have added a parameter to the Stored Procedure in the database.
Make sure your SP returns a dataset not via another SP inside your SP.
ex. this will not work: @sql = 'select * from sometable' exec(@sql)
If this is the case, temporarily add a select statement at the end of your SP
@sql = 'select column1, column2 from table1' exec(@sql)
select column1, column2 from table1
In Crystal Report, Fields Explorer, right click your SP and Set DataSource Location. Fill in the connection details to the DB.
In CR menu, Database->Verify Database
After Database has been verified, remove the temporary select statement from Step1.
I got it by not accepting the default selection crystal makes in the subreport links on the left side. I had to change it to my own and no tuse the defaults.
That worked. Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With