Hello When I try to create the procedure,
I receive the error message :
Msg 102, Level 15, State 1, Procedure usp_SecurCreation, Line 96
Incorrect syntax near '@SCDB'.
Msg 102, Level 15, State 1, Procedure usp_SecurCreation, Line 134
Incorrect syntax near '@SCDB'.
This correspond to the code
INSERT INTO #TempSecurables2
EXEC master..sp_executesql (@SCDB)
May I ask you some help ?
Thanks