Is there any way to see that ROWCOUNT is installed?
The component that is used to call my stored procedure has the ability to limit the number of lines, but apparently does this by setting ROWCOUNT. One stored procedure returns only one aggregated row, but intermediate requests sometimes return more than the limit and are truncated. The function that performs all this is common and is used to call other stored procedures; some of my other procedures may need a limitation.
Now I set ROWCOUNT to a very large number at the top of my stored procedure, and then set it back to the (hard-coded) regular limit before I return my result. I do not support the component that calls my stored procedures, so I may not know if the limit of the returned string has changed. What I would like to do is set the local variable to the current ROWCOUNT value, and then set it at the end. Is there any way to see that ROWCOUNT is installed?
source share