November 28, 2010 at 9:21 pm
We are not able to see the execution plan of encrypted stored procedure, if that is the case then there is the need of encryption keyword 🙂
If we use SQL Profiler and add performance -> "Showplan XML" or "Showplan text", then profiler displays "Encrypted text" when it is executing actual procedure.
Thanks
November 28, 2010 at 10:45 pm
Referencing to the link bellow
if we create procedure like
CREATE PROCEDURE #RegularSP
AS
SELECT TOP 10 City
FROM Person.Address
GO
/* Create SP with Encryption */
CREATE PROCEDURE #EncryptSP
WITH ENCRYPTION
AS
SELECT TOP 10 City
FROM Person.Address
GO
/* Execute SP - Execution Plan Tab shows up */
EXEC #RegularSP
GO
and execute the #RegularSP then it will show the execution plan
and if we execute the #EncryptSP then the execution will be disappear.
November 28, 2010 at 10:49 pm
Referencing to the bellow link
here the example
CREATE PROCEDURE #RegularSP
AS
SELECT TOP 10 City
FROM Person.Address
GO
/* Create SP with Encryption */
CREATE PROCEDURE #EncryptSP
WITH ENCRYPTION
AS
SELECT TOP 10 City
FROM Person.Address
GO
/* Execute SP - Execution Plan Tab shows up */
EXEC #RegularSP
GO
if create the stored procedure like above and execute the #RegularSP then it will show the executio plan and if we execute the #EncryptSP then the execution plan will be disappear.
Yousaf Khan
November 29, 2010 at 3:25 am
Many thanks to all of you..
I was wrong, but now i understand..
December 3, 2010 at 1:36 pm
Thanks for the question, it made me think about it some and learn something. (Though I still don't think encrypted procedures are worthwhile.)
December 29, 2010 at 2:00 pm
Nice question!
I was tricked by the 'Estimated execution plan' and 'Actual Execution Plan'.
You definitely don't see the Actual Execution Plan for encrypted stored procs. However, you can see 'something' in the estimated execution plan, which is not relevant, but still...enough for me to rush and press 'Yes' 🙂
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply