September 12, 2012 at 10:54 pm
[font="Tahoma"]
Hi Friends,
I am in the process of fine tuning a stored procedure and hence I am trying to view the estimated execution plan for a stored procedure. However, when I select the Stored Procedure Name and select the option Display Estimated Execution Plan in SSMS I am getting the error message as mentioend below.
Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option.
Can someone please let me know the reason why this error is generated. This is the first time I am trying to view the execution plan for the stored procedure. Is this the right way to view the execution plan for an SP?
[/font]
September 13, 2012 at 1:46 am
Yes that is the right way to get the estimated execution plan.
Some suggestions.
Can you display execution plans for other stored procs?
Also try getting the entire text of the stored proc into an SSMS window,
delete the create proc line
add 'DECLARE' for each parameter, and delete the 'AS'
then highlight the code and display estimated execution plan. If you still get the failure try selecting the declares plus the first statement etc, breaking it down to see which statement is at fault.
Also - the obvious - is the proc calling any CLR procs or CLR UDFs?
And - does it work if you enable the clr?
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply