BUG: SQL Enterprise Manager May Show Incorrect PermissionsLast reviewed: April 15, 1997Article ID: Q166203  | 
	
	
 
 
The information in this article applies to:
 
 SYMPTOMSThe SQL Enterprise Manager (SEM) may display incorrect permissions if objects are created under the same name but by different owners. The following procedure demonstrates the problem: 
 
 WORKAROUNDTo work around this problem, use Transact-SQL instead. The following sample script illustrates how query permissions can be distinguished by a user's logon: 
    USE databaseName
   GO
   SELECT object = (u.name + '.' + o.name),
          permission = spt.name
   FROM   sysprotects p,
          sysobjects o,
          sysusers u,
          master..spt_values spt
   WHERE  p.uid = user_id('user's login') AND
          p.id = o.id AND
          o.uid = u.uid AND
          spt.number = p.action AND
          spt.name <> NULL
   GO
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.  | 
	
	Keywords : kbbug6.00 kbbug6.50 kbusage SSrvEntMan 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |