BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to protect Firebird Stored Procedure Source Code

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
roberto smith
Guest





PostPosted: Wed Jul 07, 2004 1:26 pm    Post subject: How to protect Firebird Stored Procedure Source Code Reply with quote



Hi,

I have read an article by Miguel Angel Suárez Rodríguez that shows the
sample code to protect Interbase Stored Procedure Source Code:

UPDATE RDB$PROCEDURES
SET RDB$PROCEDURE_SOURCE = NULL
WHERE RDB$SYSTEM_FLAG = 0;

I try to run the same code in Firebird 1.5, it doesn't seem to work, the
source code is still readable, any advice will be appreciated.


regards,

roberto smith

Back to top
Thomas Steinmaurer
Guest





PostPosted: Wed Jul 07, 2004 1:53 pm    Post subject: Re: How to protect Firebird Stored Procedure Source Code Reply with quote



Quote:
I have read an article by Miguel Angel Suárez Rodríguez that shows the
sample code to protect Interbase Stored Procedure Source Code:

UPDATE RDB$PROCEDURES
SET RDB$PROCEDURE_SOURCE = NULL
WHERE RDB$SYSTEM_FLAG = 0;

I try to run the same code in Firebird 1.5, it doesn't seem to work, the
source code is still readable, any advice will be appreciated.

Try:

UPDATE
RDB$PROCEDURES
SET
RDB$PROCEDURE_SOURCE = NULL
WHERE
RDB$SYSTEM_FLAG = 0
OR RDB$SYSTEM_FLAG IS NULL;

Don't forget to commit the update statement.

Mind you, when extracting a DDL script for the entire database using
either isql.exe or a third-party tool, the script won't have the stored
procedure source included, so you won't be able to recreate the
database from that script.



HTH,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database and MS SQL Server
Upscene Productions
http://www.upscene.com



Back to top
roberto smith
Guest





PostPosted: Thu Jul 08, 2004 4:09 am    Post subject: Re: How to protect Firebird Stored Procedure Source Code Reply with quote



Hi Thomas,

Thanks, it works now.

regards,

roberto smith

Thomas Steinmaurer wrote:
Quote:
I have read an article by Miguel Angel Suárez Rodríguez that shows the
sample code to protect Interbase Stored Procedure Source Code:

UPDATE RDB$PROCEDURES
SET RDB$PROCEDURE_SOURCE = NULL
WHERE RDB$SYSTEM_FLAG = 0;

I try to run the same code in Firebird 1.5, it doesn't seem to work, the
source code is still readable, any advice will be appreciated.


Try:

UPDATE
RDB$PROCEDURES
SET
RDB$PROCEDURE_SOURCE = NULL
WHERE
RDB$SYSTEM_FLAG = 0
OR RDB$SYSTEM_FLAG IS NULL;

Don't forget to commit the update statement.

Mind you, when extracting a DDL script for the entire database using
either isql.exe or a third-party tool, the script won't have the stored
procedure source included, so you won't be able to recreate the
database from that script.



HTH,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database and MS SQL Server
Upscene Productions
http://www.upscene.com




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.