June 6, 2005 at 5:07 am
Is it possible by an administrator to disable the owner from dropping the view which created by himself?
Please guide me...
June 6, 2005 at 5:24 am
I don't think so. Why do you want to DISALLOW someone from DROP of an object they CREATE?
Good Hunting!
AJ Ahrens
webmaster@kritter.net
June 6, 2005 at 10:40 pm
For some security reasons, i need to avoid the user who is the owner of the object once he created, that should not be dropped by any user in sql server. That only should have been done by the administrator.
June 8, 2005 at 12:41 pm
If that is your criteria THEN
DISALLOW ANYONE the ability to CREATE anything and leave that to the Administrator ONLY. That is the only way to do this that I know of..
Good Hunting!
AJ Ahrens
webmaster@kritter.net
June 8, 2005 at 1:48 pm
You could create another view yourself, and specify WITH SCHEMABINDING. That way the other view (owned by the person who shall not be allowed to drop it) cannot be dropped unless the new view is dropped, and since you are the owner of that view you are stopping that.
June 8, 2005 at 2:10 pm
WOW... always another way .
June 9, 2005 at 7:21 am
And I pretty nice way as well, I think.
June 9, 2005 at 7:32 am
Hehe... show him who's GOD .
June 25, 2005 at 1:54 am
Hi,
As i read this very late.sorry for that but u can ristict ur database administrator for not droping a use .u create a extended stored procedure from that user.
then ur database administraor cannot delete ur user.
but there are many other ways to remove a user from the database.
sufian
June 25, 2005 at 2:08 am
Hi,
I got ur questation. U wanted that if ur user had created any achema then that ur should not delete that schema . yes u can do that u have to see that what roles that ur had been assigned, if u had given him the permission on one database and that ur is not allowed to get into master database . then u can write a script which will create a procedure in msterdatabase having refrensed of all the table names used by that user.
then the user cannot delete that schema.
if any confusion then feel free to ask for script.
from
sufian
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply