Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"public" role access in SQL Server

Can anybody let me know that what permission does public have in sql server.

Thanks

like image 710
user47957 Avatar asked Jan 04 '09 03:01

user47957


1 Answers

By default the public role can't do anything*. Some DBAs will grant the public role additional rights (to see or change data or run stored procs) if they want everyone to have those rights.

* -- Well, almost anything. They can look at some system views and run queries that don't touch any data (like "select 'a'").

To see the specific rights, right click on the role (In SQL 2005 it's Databases > {Your Database} > Security > Roles > Database Role) and select Properties.

Edit: You might also want to check out the server-level public role. Which is at Security > Server Roles > public

like image 71
Mitchell Gilman Avatar answered Oct 24 '22 06:10

Mitchell Gilman