BUG: SQL Enterprise Manager May Show Incorrect PermissionsID: Q166203
|
The 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:
CREATE VIEW view_authors_names
AS
SELECT au_fname, au_lname
FROM authors
CREATE VIEW view_authors_names
AS
SELECT au_fname, au_lname
FROM authors
To 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
Microsoft 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 : kbusage SSrvEntMan kbbug6.50 kbbug6.00
Version : 6.0 6.5
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 9, 1999