I created a codeunit to execute a stored procedure via ado as illustrated by several threads here and it works great. Thanks to all those who contributed.
I want to call the code from a processing only report, but I keep getting sql timeouts after several minutes. When the codeunit is run directly it runs in about one second.
I have also tried to copy the code from the codeunit into a function on the report, but I am having the same timeout issue with that approach.
We are stumped!
0
Comments
before calling the sp?
If you don't do it, the timeout of a command is a standard value (I think it is the value you find in the properties of the SQL-server=>Connections=>"Remote query timeout" but i am not sure. I never tested it).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The code we're using is below:
Are you sure that those values (both report and codeunit) are equal?
Nav, T-SQL.
As long as I put a COMMIT just before calling the codeunit, the reports runs the codeunit without any problem.
Thanks everybody for your help.