Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Protecting/Encrypting DataBase Objects

Posted on 1998-07-28
1
201 Views
Last Modified: 2012-05-04
My employer has asked me If I can encrypt the MS-SQL Views, Triggers and Stored Procedures in a clients database.  He mentioned that he has heard that MS-SQL can Encrypt database objects to stop other people coping them.  My Question is:   Is this possible?  if it is, how do I go about doing it? If it's not... how else can I secure a deployed DB?
0
Comment
Question by:KirkGray
1 Comment
 
LVL 7

Accepted Solution

by:
spiridonov earned 100 total points
ID: 1089287
You just need to add WITH ENCRYPTION statement to your create statements, here is an extract fro help.

CREATE TRIGGER [owner.]trigger_name
ON [owner.]table_name
FOR {INSERT, UPDATE, DELETE}
[WITH ENCRYPTION]
AS sql_statements

CREATE VIEW [owner.]view_name
[(column_name [, column_name]...)]
[WITH ENCRYPTION]
AS select_statement [WITH CHECK OPTION]

CREATE PROCedure [owner.]procedure_name[;number]
      [(parameter1 [, parameter2]...[parameter255])]
[{FOR REPLICATION} | {WITH RECOMPILE}
      [{[WITH] | [,]} ENCRYPTION]]
AS sql_statements


NOTE: You will not be able to edit objects, that you created  with this option, so you have to store the code somewhere else.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question