Unix Technical Forum

How To PROTECT SQL Server Database Files ?

This is a discussion on How To PROTECT SQL Server Database Files ? within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello, How to protect structures(Tables,SP,Views and Functions) of a SQL Server Database?(Password protect a database file) I have a ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 06:50 AM
Parham
 
Posts: n/a
Default How To PROTECT SQL Server Database Files ?

Hello,
How to protect structures(Tables,SP,Views and Functions) of a SQL
Server Database?(Password protect a database file)
I have a SQL database that will distribute with my application, I want
to protects it's structure from my appliction users. Only my
application can access the database.

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 06:50 AM
Mike Epprecht \(SQL MVP\)
 
Posts: n/a
Default Re: How To PROTECT SQL Server Database Files ?

Hi

Can not be done. An Access DB password can be cracked in minutes.
Even if you could protect it, Profiler could trace what commands you send to
the DB.

Basic computer security principle: If someone has physical access to a
computer or a DB, they can get to the data on the PC or database.

Most good DBA's will come up with similar DB structures if they get asked to
create a DB to solve a problem. A DB structure can not be so "earth moving"
that it needs protection.

If a vendor supplies a product with a DB that is protected, for a good
laugh, I will want to look at it as they probably have bad design and worse
code to hide.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"Parham" <parham.ghaffarian@gmail.com> wrote in message
news:1111934298.082322.13030@g14g2000cwa.googlegro ups.com...
> Hello,
> How to protect structures(Tables,SP,Views and Functions) of a SQL
> Server Database?(Password protect a database file)
> I have a SQL database that will distribute with my application, I want
> to protects it's structure from my appliction users. Only my
> application can access the database.
>
> Thanks
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 06:50 AM
David Portas
 
Posts: n/a
Default Re: How To PROTECT SQL Server Database Files ?

When you distribute your application, assume it will be an open book to
the end user. For both you and your users the best way to protect your
intelectual property is with a licence agreement, not with software
based security.

--
David Portas
SQL Server MVP
--

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 06:50 AM
Erland Sommarskog
 
Posts: n/a
Default Re: How To PROTECT SQL Server Database Files ?

Parham (parham.ghaffarian@gmail.com) writes:
> How to protect structures(Tables,SP,Views and Functions) of a SQL
> Server Database?(Password protect a database file)
> I have a SQL database that will distribute with my application, I want
> to protects it's structure from my appliction users. Only my
> application can access the database.


You can use WITH ENCRYPTION on stored procedures, views and functions
when you create your objects. However, decryption methods can easily
be found on the web, so it gives no real protection. The main point
with encrypting objects is to inform people that they are supposed
to keep their nose out, so they don't wander just by chance into
your code. Someone who is dead set to find out what your code is like,
will be able to crack it.

And note that there might be one more reason to break into the code, not
only to steal intellectual property. The users might experience severe
performance problems, and need to tune your code, and you might have
gone for a two-month roundtrip in Argentina. In this case, the users
may be less happy with you if you have encrypted the procedures.

Anyway, as other have pointed out, encryption or not, a real license
agreement is a must.

And, oh, table definitions you cannot encrypt.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com