May 3, 2012 at 9:14 am
I'm copying a report, and want to change the stored procedure in the dataset properties. But when I do that all fields disappear. Now I found the following solution. Change the property to a text and change the text into this :
DECLARE@return_value int
set dateformat dmy
EXEC@return_value = [dbo].[Name stored procedure]
@dtStart = N'01/04/2012',
@dtEnd = N'30/04/2012'
SELECT'Return Value' = @return_value
When I do this in fact I get a return of the fields. But as such my parameter values are fixed. so when I'm changing the dataset properties again to the correct stored procedure my data fields dissapear again.
Anyone got any clue ?
JV
May 3, 2012 at 2:06 pm
If I change the stored procedure, I test it by clicking the Query Designer button, and then the red ! button to run it. It will bring up a box to enter in the parameters and return the data.
Usually the Refresh fields button will do that too.
May 4, 2012 at 12:44 am
Sarah
Unfortunately they disappear.
Kind regards
JV
May 9, 2012 at 2:40 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply