I have a Stored Procedure which was showing Execution Plan when execute it until some days back!!!
Suddenly, Execution plan not generating for the Procedure when I execute it!! But, Its executing and showing the result as expected.
I could not also see the Procedure definition and bellow is the Err!!
Msg 15197, Level 16, State 1, Procedure sp_helptext, Line 116
There is no text for object 'proc_sample2'.
What would be the reason ?
It seems like the Procedure's definition got !!! Encrypted !!!
Let's try to find out...
USE <DatabaseName>
GO
SELECT CASE OBJECTPROPERTY([Object_ID],'IsEncrypted') WHEN 1 THEN 'YES' ELSE 'NO' END [IsEncrypted]
FROM sys.Objects WHERE type_desc ='SQL_STORED_PROCEDURE'
AND is_ms_shipped =0
AND Name='proc_sample2'
GO
Yes. That is correct!! The Procedure's definition got Encrypted. So that the Execution Plan can not be generated as per the MSDN Definition...
"Execution plans are not displayed for encrypted stored procedures or for triggers."
Suddenly, Execution plan not generating for the Procedure when I execute it!! But, Its executing and showing the result as expected.
I could not also see the Procedure definition and bellow is the Err!!
Msg 15197, Level 16, State 1, Procedure sp_helptext, Line 116
There is no text for object 'proc_sample2'.
What would be the reason ?
It seems like the Procedure's definition got !!! Encrypted !!!
Let's try to find out...
USE
GO
SELECT CASE OBJECTPROPERTY([Object_ID],'IsEncrypted') WHEN 1 THEN 'YES' ELSE 'NO' END [IsEncrypted]
FROM sys.Objects WHERE type_desc ='SQL_STORED_PROCEDURE'
AND is_ms_shipped =0
AND Name='proc_sample2'
GO
Yes. That is correct!! The Procedure's definition got Encrypted. So that the Execution Plan can not be generated as per the MSDN Definition...
"Execution plans are not displayed for encrypted stored procedures or for triggers."