• rs80 - Thursday, September 28, 2017 11:42 AM

    Is it possible to replicate this code from a stored procedure in a SSRS dataset?

    exec @dtEffective = dbo.selUpdEnv 'PrevBusDt','=',@cdUser,'N'

    What I'm trying to do is save the effective date in a variable and display the date in a textbox.

    I tried creating a parameter called dtEffective and use it in the dataset.  But it didn't save the value.

    You need to define it as an OUTPUT parameter to make the stored procedure return the correct value.
    exec dbo.selUpdEnv 'PrevBusDt','=',@cdUser,'N', @dtEffective OUTPUT
    However, I'm not sure if you need to do something else in SSRS
    . You might need to configure something else.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2