473,396 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

protecting functions from view it

Hello,
I wrote some complicated functions (and stored procedures) in database
at my work. System administrator (and every db user) can view codes
(in Enterprise Manager for eg.). My employer needs periodic modifying
of code and so I'm required to do it. But I can loose my job :)
because users are able to modify code (althout they ware too lazy to
create it by themselves).

Is this possible to protect functions from view it?

[please, don't mind my english]
Dec 22 '06 #1
5 1114
Pulpet (xy**@op.pl) writes:
I wrote some complicated functions (and stored procedures) in database
at my work. System administrator (and every db user) can view codes
(in Enterprise Manager for eg.). My employer needs periodic modifying
of code and so I'm required to do it. But I can loose my job :)
because users are able to modify code (althout they ware too lazy to
create it by themselves).

Is this possible to protect functions from view it?
I don't really know why you would prevent people from viewing your code,
least of all if they are in the same company.

But you should of course have all your code under version control, and
use the database as the storage for your code.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Dec 22 '06 #2
Dnia Fri, 22 Dec 2006 11:24:54 +0000 (UTC) grupowicz Erland Sommarskog
<es****@sommarskog.sewrote:
>I don't really know why you would prevent people from viewing your code,
least of all if they are in the same company.
It's a too long story. I have some reasons to do this.
>But you should of course have all your code under version control, and
use the database as the storage for your code.
Thanks for answer.

PS.I don't know about version control (I'm not a developer).
At other newsgroup user wloochacz send me answer:
FUNCTION < function_option ::= { ENCRYPTION | SCHEMABINDING }
and I used clause: with encryption
which is enough for me :)

Thanks
Dec 22 '06 #3

"Erland Sommarskog" <es****@sommarskog.sewrote in message
news:Xn**********************@127.0.0.1...
Pulpet (xy**@op.pl) writes:
>I wrote some complicated functions (and stored procedures) in database
at my work. System administrator (and every db user) can view codes
(in Enterprise Manager for eg.). My employer needs periodic modifying
of code and so I'm required to do it. But I can loose my job :)
because users are able to modify code (althout they ware too lazy to
create it by themselves).

Is this possible to protect functions from view it?

I don't really know why you would prevent people from viewing your code,
least of all if they are in the same company.

But you should of course have all your code under version control, and
use the database as the storage for your code.
Also, it sounds like the viewing isn't the problem, it's the users able to
modify the code.

Simple answer, make sure they don't have rights to make such changes.

Generally as a first pass, I try to lock users down to db_datareader and if
necessary db_datawriter.

That may solve your problem.

>

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

Dec 22 '06 #4
Pulpet (xy**@op.pl) writes:
PS.I don't know about version control (I'm not a developer).
At other newsgroup user wloochacz send me answer:
FUNCTION < function_option ::= { ENCRYPTION | SCHEMABINDING }
and I used clause: with encryption
which is enough for me :)
Then I hope you really have your code stored somewhere else, because else
you will not be able to retrieve it.

Well, there is code to reverse the so-called encryption; it's really only
obfustication.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Dec 22 '06 #5
> My employer needs periodic modifying of code and so I'm required to do it. But I can lose my job :) because users are able to modify code. <<

Can you make the procedures table-driven? Then let the users change
the tables and not the procedure code itself. You will need a
front-end and procedure to le them make these changes.

Dec 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Yang Li Ke | last post by:
Hi guys! Anyone know a way so that users purchasing my scripts would not be able to share them with other people ? Yang
22
by: Harold Crump | last post by:
Greetings, I have a PHP/MySQL application that I am deploying at a client's. I am fairly certain that they will steal my source code and re-sell to other companies. I would like to somehow...
6
by: nell | last post by:
Hi all, I've developed a testing application in python, and should supply it in a way that no one (lets say they are regular users) will understand it and edit it. The application source is all...
12
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
3
by: Nick J | last post by:
Hi, How do I go about protecting my access database so that.. 1) Nobody can edit any forms (reason being so nobody can remove the txt box that states who developed it, change it to their name...
6
by: Roman Werpachowski | last post by:
In a recent thread http://tinyurl.com/8n7fe I asked about preventing the user from deleting the object pointed to by a pointer/reference. Now I would like to ask about a different aspect of this...
22
by: flit | last post by:
Hello All, I have a hard question, every time I look for this answer its get out from the technical domain and goes on in the moral/social domain. First, I live in third world with bad gov., bad...
6
by: Andy B | last post by:
Is there a way that is already built into .net 3.5 that will let me protect an object from being modified when the object is public?
0
by: Evolution445 | last post by:
Hi, I have a small anti-cheat program for a game, and I want to protect it against people trying to bypass or modify the program. What I thought of myself was - no idea if this is possible -...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.