Debug: step into stored procedure with sp_executesql
Posted: Mon 10 Jun 2019 20:35
Hello,
I'm doing an eval and have a question.
I have a length stored procedure which builds a string to execute.
When I debug with dbForge, it does not let me step into the sproc (with F11).
When I debug the same code with SSMS, I can step into the dynamic SQL ok.
Here is my statement from the proc:
let me step in but steps over.
I am a newbie here - is there something I am missing?
Thanks.
Bruce
I'm doing an eval and have a question.
I have a length stored procedure which builds a string to execute.
When I debug with dbForge, it does not let me step into the sproc (with F11).
When I debug the same code with SSMS, I can step into the dynamic SQL ok.
Here is my statement from the proc:
To recap, SSMS handles this and lets me step into this. However, dbForge does notEXEC sp_executesql @sql
,N'@ValidationErrorsID uniqueidentifier, @ActionID uniqueidentifier, @PrimaryKeys varchar(MAX), @UserID uniqueidentifier, @SessionID uniqueidentifier, @SessionSessionID uniqueidentifier, @PreviousWorkflowStepID uniqueidentifier'
,@ValidationErrorsID
,@ActionID
,@PrimaryKeys
,@UserID
,@SessionID
,@SessionSessionID
,@PreviousWorkflowStepID;
let me step in but steps over.
I am a newbie here - is there something I am missing?
Thanks.
Bruce