April 28, 2009 at 9:38 am
This is somewhat of a mystery. We have 2 sql2005 servers and on all the user databases on them, all the user created stored procs are encrypted (lock indicator shown in SSMS).
However, as far as we can tell, none of the scripts used to create the SPs contained the WITH ENCRYPTION clause.
I can't find any server/database/SSMS option that forces this.
Any ideas on how this can happen?
Also - as far as we know, no one ran any script to encrypt all SPs but I am checking on that possibility.
In fact, I just checked on an SP that was recently deployed to one of the servers, the script does a DROP, then CREATE. The CREATE does not have WITH ENCRYPTION in it, but the SP is encrypted on the database. The scripts are run with the SA account, I'm accessing the server with a normal user account that has datareader, datawriter, and executeStoredProc (role created for sp execution) permissions.
TIA,
Toby
April 28, 2009 at 11:14 am
I'm sorry, I've never seen that one occur before. On a guess, someone did it. Especially if it's everywhere.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 28, 2009 at 11:24 am
There is no option to force it, except for a DDL trigger (database level).
Check for DDL triggers that might re-create the sprocs adding the "with encryption" option
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 28, 2009 at 11:37 am
...all the user created stored procs are encrypted (lock indicator shown in SSMS).
That is not necessarily an indication of encryption.
I have seen the UI show the "lock indicator" simply when the user does not have "view definition" permissions on the objects.
You should try to add that permission and refresh the UI.
Sorry if I spoiled the mystery.
* Noel
April 28, 2009 at 1:24 pm
yep, that was it! thanks!
April 28, 2009 at 1:35 pm
aahh yes ... security granularity with SQL 2005 and beyond...;-)
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply