Quick Search for:  in language:    
ALTER,Access,application,will,decrypt,Stored,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
SQL Stats

 Code: 45,316. lines
 Jobs: 126. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login





Latest Code Ticker for SQL.
sp_db_paging_pr imary_key
By Marcus LeBlanc on 1/11


sp_db_paging
By Marcus LeBlanc on 1/11


Beginners pack
By hardik shah on 1/11


Inline Views
By Thivya Prabakaran on 1/6


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

Decrypt MS SQL 2000 stored procedures of ANY SIZE!

Print
Email
 
winzip icon
Submitted on: 11/5/2002 3:03:54 AM
By: Alexander Polozov 
Level: Advanced
User Rating: By 4 Users
Compatibility:SQL Server 2000

Users have accessed this code 3195 times.
 
 
     This MS Access application will decrypt Stored Procedures encrypted using "with encryption" option. If automatic removing of "with encryption" option fails user will asked to manually modify the source of SP. The source of SP must start with “ALTER PROCEDURE” instead of “CREATE”. In case of any problems all uncommitted changes will be rolled back. But remember: 7 backups is much more better as 6 !!!.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
11/5/2002 11:04:45 AM:Joseph Gama
Excellent work! 5*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/5/2003 3:32:26 PM:
This looks like a great a tool but I'm 
getting an error. Error: Syntx Error!!! 
stored procedure (procedurename) failed!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/6/2003 3:34:14 AM:Alexander Polozov
You can get an error message if source 
of Your SP begins with comments section 
and it contains word "CREATE".
My 
program tries to automatically replace 
first entry of this word by "ALTER".
I 
didn't make syntax parsing for SQL 
therefore this replacement can be 
performed in comments.
You must just 
edit source of SP in appeared window to 
replace 
"CREATE STORED PROCEDURE" 
with "ALTER STORED PROCEDURE" and to 
check if "WITH ENCRYPTION" option 
exists.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/20/2003 5:15:54 PM:
Great job!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/26/2003 6:11:59 AM:
It work very good on my PC!
Great!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/6/2003 4:35:56 AM:
It worked find. 
By the way, is there 
any way to keep the procedure encrypted?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/6/2003 9:30:45 AM:Alexander Polozov
Text of SP is stored in table 
"syscomments" column "ctext" (varbinary 
(8000)) in unicode format.
If You like 
to hide this text You can:
1) You 
can remove text of SP from system table 
"syscomments" using:
delete c from  
syscomments c, sysobjects o where 
o.id=c.id and name='Name of SP'
2) 
Or You can put in this table wrong text 
instead of real text of SP.
update c 
set ctext=convert(varbinary 
(8000),'Hello!') from  syscomments c, 
sysobjects o where o.id=c.id and 
name='Name of SP'
But don't forget 
to save scripts of SP in some external 
storage and make full backup of 
database before any intrusion in system 
catalog!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | SQL Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.