Stored Procedure not showing fields in Crystal reports

半世苍凉 提交于 2019-12-02 01:49:29

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.

  1. 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

  2. In Crystal Report, Fields Explorer, right click your SP and Set DataSource Location. Fill in the connection details to the DB.

    • select your the existing SP and the SP from the new DB connection, then click the Update button.
  3. In CR menu, Database->Verify Database

  4. 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

SHESHAGIRI RAO

I had the same issue, almost spent 1 day looking for different aspects of crystal report, then I found

  1. There was problem in stored procedure which I corrected still field editor was not visible.
  2. Then I found crystall reports installed version was corrupted, hence re-installed it again and it worked.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!