ceciliaf.vm.ar Posted January 20, 2014 Share Posted January 20, 2014 Hello.I have a stored procedure in database of MS SQL Server 2008 wich have two parameters. I using sqljdbc4.jar.Well, my problem is this: I can't call in the report a stored procedure with two o more parameters.I try with this options: exec Stored_procedure value1, value2Stored_procedure value1, value2Sotred_procedure (value1, value2) The procedure, in then query analyzer of SQL return the data correctly.I see in the Query designer that only options to create sintax is with SELECT.Forgive my english, I have little knowledge of the language.Thanks. Link to comment Share on other sites More sharing options...
cameron_1 Posted January 20, 2014 Share Posted January 20, 2014 You should be able to put the exec sp_name <parameter1>, <parameter2> statement directly into the report query window (don't use the query designer as it doesn't work that well) - Link to comment Share on other sites More sharing options...
ceciliaf.vm.ar Posted January 20, 2014 Author Share Posted January 20, 2014 Hellow cameron_1. Thanks for the help, but I discovered that jdbcsql not solve stored procedures with temporary tables. To solve the problem, from PHP run the stored procedure and keep the result in a table, and from iReport select the record that need to see. Regards. Link to comment Share on other sites More sharing options...
ceciliaf.vm.ar Posted February 12, 2014 Author Share Posted February 12, 2014 - Link to comment Share on other sites More sharing options...
Solution ceciliaf.vm.ar Posted February 12, 2014 Author Solution Share Posted February 12, 2014 The problem is the driver. It not knows how solve stored procedures with temporal tables.So, the solution is create a new stored procedure that return it the content of original stored procedure.Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now