BUG: sp_helprotect May Give Redundant Information

Last reviewed: May 5, 1997
Article ID: Q93341

The information in this article applies to:
  • Microsoft SQL Server version 4.2 for OS/2
  • Microsoft SQL Server, versions 4.21 and 4.21a
BUG# OS/2: 1551 (4.2)
       NT:  879 (4.2)

SYMPTOMS

The results of executing the system stored procedure, sp_helprotect, on a table with more than 100 columns will indicate that the users who have been granted "delete" permission on the table, have "delete" permission on the table as well as "delete" permission on the columns beyond column 100.

For instance, sp_helprotect "mytable" will give the following results, where "mytable" is a 101 column table, with the 101st column named as c1. Note that "delete" permission on the table has been granted to the group "public".

   Type   Action   User   Column
   -----------------------------

   Grant  Delete   public  all
   Grant  Delete   public  c1

In the above results, the second row is redundant. Note that if there are 102 columns in the table, there would be an extra row in the results. The same redundant behavior is seen for the insert permissions granted to users.

WORKAROUND

Ignore the superfluous rows. For actions like "delete" and "insert", the only valid rows from sp_helprotect are those where the "column" information is "all".

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2 and Microsoft SQL Server versions 4.21 and 4.21a. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words:
Keywords : kbbug4.20 kbbug4.20a kbbug4.21 kbprg SSrvServer SSrvWinNT
Version : 4.2 | 4.21 4.21a
Platform : OS/2 WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.