Re: Strange - grant alter on role = cannot see securables for user



Doug (nospam@xxxxxxxxxxx) writes:
Wondering if anyone else has run into this? I have some development
databases that developers have privileges in. One of the privileges is
"alter role" on a new db role developed for the app hitting the database.
When you grant this, then use SSMS to have a look at the user, when you
click Securables, a (truncated) error message pops up. Remove the alter
permission on the role and the securables can again all be seen.

If you have not seen this, please do a small experiment and let me know
how yoours goes. My SQL 2005 clustered instance is at Svc Pack 2, my
SSMS client is at Svc pack 3.

I ran this:

create database newdatabase
go
use newdatabase
go
create user hampus without login
create role rolle
grant alter on role::rolle to hampus

Then I used Object Explorer to look at the user Hampus. When connecting
from SSMS 2005 to SQL 2005 I got the error. When connecting from SSMS 2008
to SQL 2008 I did not get the error, so it seems the issue has been
addressed.



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

.



Relevant Pages

  • Re: Enterprise Manager Newbie Question
    ... "Remember password" option when running SSMS? ... Tibor Karaszi, SQL Server MVP ... why don't you write a short backup script using the SQLCMD utility ... Senior Database Administrator ...
    (microsoft.public.sqlserver.tools)
  • RE: [Info-ingres] Re: Pagesize question
    ... d0delim format on the copy INTO (See SQL ref Guide). ... ALTER TABLE is initially quick but there are also other performance issues ... I've written a Ruby adapter for the Ingres ... Ruby on Rails comes with a set of automated tests that ensure a database ...
    (comp.databases.ingres)
  • Re: SQL Server 2000 EM vs. SQL Server 2005 MS
    ... Of course, SSMS will mature over time, for instance based on feedback at http://connect.microsoft.com/sqlserver. ... Tibor Karaszi, SQL Server MVP ... > database properties' selection. ... not work with some functionality in SQL Server. ...
    (microsoft.public.sqlserver.tools)
  • Re: SSMS problem PS
    ... Could you tell me how to get a user accounts back on SQL 2005? ... I see no way of doing it and I got a web site that hs been down for 2 days because it no longer has a user account for the database. ... I have both VS and SSMS on a number of machines, and I don't use VS to manage my databases. ...
    (microsoft.public.sqlserver.tools)
  • Re: SSMS Wont Open Database
    ... You didn't say what version of SSMS you are using? ... a production database I put up two years ago. ... SQL Server, Error 916). ...
    (microsoft.public.sqlserver.programming)