September 5, 2007 at 10:21 am
I got few stored procedures With Encryption for the database that I converted to SQL Server 2000. I need to access those stored procedures. How can I un-encrypted them?
September 6, 2007 at 10:44 am
November 17, 2007 at 9:59 pm
Hi,
You can also check theses links
http://www.sqlmag.com/Article/ArticleID/95728/sql_server_95728.html
http://khsw.blogspot.com/2004/08/decrypt-stored-procedures-on-sql.html
http://www.sql-shield.com/decrypt-stored-procedure.html
http://www.sqlmag.com/Article/ArticleID/14369/How_can_I_decrypt_a_SQL_Server_storedprocedure.html
Regards,
Ahmed
November 18, 2007 at 5:58 am
If it's SQL Server 2000, there's no better tool than:
dSQLSRVD - dOMNAR's SQL Server SysComments Decryptor
It doesn't work on SQL Server 2005, which requires an admin connection, etc., but it's great for SQL Server 2000.
K. Brian Kelley
@kbriankelley
November 26, 2007 at 6:17 am
IF I am not mistaken I thought the unencrypted version is stored in one of the sys tables. Unfortunately I can't remeber which one.
November 26, 2007 at 11:31 am
Ron Aughenbaugh (11/26/2007)
IF I am not mistaken I thought the unencrypted version is stored in one of the sys tables. Unfortunately I can't remeber which one.
Unfortunately, no. In syscomments it is encrypted. I believe in SQL Server 2005 it's encrypted as well. SQL Server 2005 makes it more difficult because you've got to come in via DAC to be able to decrypt.
K. Brian Kelley
@kbriankelley
April 16, 2008 at 4:59 am
Hello,
Thanks a lot Brian, the tool that you told me (dOMNAR's SQL Server SysComments Decryptor) was very usefull.
Thanks and regards,
JMSM 😉
April 21, 2008 at 1:59 am
May 9, 2008 at 3:59 pm
May 9, 2008 at 6:17 pm
Have you tried turning on profiler and running the procedure?
Often enough - Profiler will capture the unencrypted version of the procedure. No fuss, no muss.
----------------------------------------------------------------------------------
Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?
May 10, 2008 at 6:29 am
Profiler won't show you the CREATE PROCEDURE statement. You can get the execution of the procedure, but not the definition. If you try and run Profiler you'll get something akin to "-- Encrypted Text" for the TextData column.
K. Brian Kelley
@kbriankelley
January 18, 2012 at 8:54 pm
Hello,
I am using SQL 2000 and I've same Problem here. and yes the script does work to solve the encrypted SP.
still there are some problem have not been solved. they are more than 4000 length SP script can't be decrypted.
i wonder if there are another solution for this kind of problem.
regards,
Eric
May 16, 2012 at 5:24 am
Hi,
Recently, I read one article about SQL Decryptor which explains the SQL Server encryption and decryption process. you can take help from it to get points clear about sql decryption for the encrypted database which included encryption of stored procedures, views, rules, etc.
June 5, 2012 at 11:48 am
June 6, 2012 at 1:17 pm
Red Gate's SQL Compare will un-encrypt an "encrypted" stored procedure.
1) Start SQL Compare.
2) Specify the database , containing the encrypted procedure(s) , as both the source and target (can pick a different db if you wish as the target).
3) Click COMPARE.
4) In the results window, click on the stored procedure that you are interested in and BAZINGA..... there is the source code.
I was using version 8.1.0.360 in case your experience varies. I was using SQL 2005 . I tried on SQL 2000 and it also worked.
Viewing 15 posts - 1 through 15 (of 24 total)
You must be logged in to reply to this topic. Login to reply