Microsoft KB Archive/93341

= BUG: sp_helprotect May Give Redundant Information =

Article ID: 93341

Article Last Modified on 2/14/2005

-

APPLIES TO


 * Microsoft SQL Server 4.21a Standard Edition

-



This article was previously published under Q93341



BUG# 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 &quot;delete&quot; permission on the table, have &quot;delete&quot; permission on the table as well as &quot;delete&quot; permission on the columns beyond column 100.

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

  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 &quot;delete&quot; and &quot;insert&quot;, the only valid rows from sp_helprotect are those where the &quot;column&quot; information is &quot;all&quot;.



STATUS
Microsoft has confirmed this to be a problem in 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.

Keywords: kbprogramming KB93341

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.