Hi,
I am trying to get rid of an error message in Crystal Report 9.0 which is using a stored procedure. All reports using a stored proc work fine except that one. And it only gives an error message when the parameters passed causes the sp to return no records...
Lets have a look on what's special about this sp:
This one has a code like this:
-----
SELECT @strQuery='SELECT tb.fnm, '+@Budget'+ 'FROM tb Inner join tb2 WHERE tb.year in '@YrPr
EXEC @srtQuery
------
It's acctually a very long string, I tried to sumarize it.
When I run this with paramaters that doesn't return records in Query Analyzer, it only says:
"The commands completed successfully."
When it returns records, then I am able to see all records with all column names.
When I run my other stored procedures, I can at least see the column names even if I have no records. So that's the difference.
So that one acts differently. I don't know why Query Analyzer says commands completed only instead of informing me that there are no records but
Is there any way to make it behave like that?
Thanks so much in advance...
I am trying to get rid of an error message in Crystal Report 9.0 which is using a stored procedure. All reports using a stored proc work fine except that one. And it only gives an error message when the parameters passed causes the sp to return no records...
Lets have a look on what's special about this sp:
This one has a code like this:
-----
SELECT @strQuery='SELECT tb.fnm, '+@Budget'+ 'FROM tb Inner join tb2 WHERE tb.year in '@YrPr
EXEC @srtQuery
------
It's acctually a very long string, I tried to sumarize it.
When I run this with paramaters that doesn't return records in Query Analyzer, it only says:
"The commands completed successfully."
When it returns records, then I am able to see all records with all column names.
When I run my other stored procedures, I can at least see the column names even if I have no records. So that's the difference.
So that one acts differently. I don't know why Query Analyzer says commands completed only instead of informing me that there are no records but
Is there any way to make it behave like that?
Thanks so much in advance...