Article ID: 247749 - View products that this article applies to.
This article was previously published under Q247749
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56806 (SQLBUG_70)
If a user or role has table level permissions and column level permissions on a particular table, the SQL Script generated using Enterprise Manager does not script both the permissions. Enterprise Manager only generates table level permissions.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(http://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
Steps to Reproduce BehaviorUse these steps to reproduce the behavior:
Case1Run the following code:
Generate the SQL script using SQL Enterprise Manager. This successfully shows everything including the Table Level Permissions.
Case2Next, run this code:
Generate the SQL script using SQL Enterprise Manager. This successfully shows everything including the Column Level Permissions
Case3Now, run this code:
Generate the SQL script using SQL Enterprise Manager. This will only show Table Level Permissions, No Column Level Permissions.
The order of the execution of the GRANT statements (first table level then Column level or vice versa) does not matter. The generated SQL Script does not have the Column Level Permissions, but in actuality, can do all the things like UPDATE on the specific column the user is permitted to and perform all the activities that the user is permitted to at the table level. The actual permissions are intact, they just are not shown in the script that is generated.