Jump to content
We've recently updated our Privacy Statement, available here ×

Jasperreport call sql server stored procedure, result different from call from SSMS


tong123123

Recommended Posts

 

jsCallsp.jpg

 

I have checked the data adapter is connected to the same db as SSMS, but when I run the same stored procedure from SSMS and jasper studio query dialog, the result is very different, many columns is not shown in jasper studio query dialog data preview tab, why?

the select statement in the stored procedure is come from dynamic sql, then using exec().

js-Callsp2.jpg

seems it is a bug of jasper studio 6.10? if I replace the sql in stored procedure, extract the runtime generated @sql and paste the string back to the stored procedure, then jasper studio can read all fields.

But the @sql is dynamic built, so it need to use exec(@sql)...Any method to work around this jasper studio read field problem?

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...