Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 DataBase Security

Author  Topic 

issammansour
Yak Posting Veteran

51 Posts

Posted - 2007-09-25 : 15:57:42
Hi,
How to set a database security like set a password, is there any security for S.P. to disable view to the sp for any view or modifications.

Best Regards

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-25 : 16:00:14
You can use sp_password (2000) or ALTER LOGIN (2005) to change passwords.

quote:

is there any security for S.P. to disable view to the sp for any view or modifications



I don't understand your question.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

issammansour
Yak Posting Veteran

51 Posts

Posted - 2007-09-25 : 16:05:39
to have a password for the database view, what i mean when i click on the database to view to ask about my user name and password
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-25 : 16:07:34
That is not possible in SQL Server. You get prompted for credentials when you connect to the server, not when you access an object.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

issammansour
Yak Posting Veteran

51 Posts

Posted - 2007-09-25 : 16:11:01
is there any tool form other party can do this
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-25 : 16:12:56
Why don't you just lock down security so that this isn't required?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

issammansour
Yak Posting Veteran

51 Posts

Posted - 2007-09-25 : 16:22:02
how to do this
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-09-25 : 16:23:06
Well what access do the users have? What access is needed from the application? Are you the DBA for the system? Are there other sysadmins that you are trying to prevent looking at the database?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-25 : 22:16:31
You can encrypt sp and view with encryption option.
Go to Top of Page

Zoroaster
Aged Yak Warrior

702 Posts

Posted - 2007-09-25 : 23:02:04
quote:
Originally posted by rmiao

You can encrypt sp and view with encryption option.



This just encrypts the text, he would still need to lock down the security permissions like Tara said.



Future guru in the making.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-25 : 23:40:51
Original question has two issues, I addressed the other one.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-09-26 : 05:55:39
Can I just clarify what Tara said, in case it helps.

You setup a user, lets call them UserA, so that when they login to the database they have permissions to use certain things.

You COULD set up the permissions so that the ONLY thing UserA has permission to use is that one view.

Note that this is overly simplistic, and you need to set up more fully thought through security roles etc., but it might just help with the basic concepts.

Kristen
Go to Top of Page
   

- Advertisement -