FIX: "Generate SQL Script" in Enterprise Manager May Not Script Out the Correct Permissions

Article translations Article translations
Article ID: 280361 - View products that this article applies to.
This article was previously published under Q280361
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #:58293 (SQLBUG_70)
BUG #:57477 (SQLBUG_70)
Expand all | Collapse all

Symptoms

The Generate SQL Script menu item in the SQL Server Enterprise Manager may not script out correct permissions if you do grant permissions in either of the following ways:

  • Use of the DENY UPDATE command on one table followed by the use of a GRANT UPDATE command on one or more columns of the same table.


    For example:
    deny update  on dbo.authors  to user1
    go
    grant update on dbo.authors(address) to user1
    go
    						
    If you use the Generate SQL Script menu item in SQL Server Enterprise Manager, you get the following scripts:
    DENY  UPDATE  ON [dbo].[authors]  TO [user1] CASCADE 
    GO
    
    DENY  UPDATE  ON [dbo].[authors] (
    	[address], 
    	[address]
    	) TO [user1] CASCADE 
    GO
    						
  • You grant table level permissions before you grant column level permissions in a single GRANT statement without using WITH GRANT OPTION.

    For example:
    grant insert, update on authors (au_lname) to user1
    go
    						
    If we use the Generate SQL Script menu item in the SQL Server Enterprise Manager, you get the following scripts:
     
    GRANT  INSERT  ON [dbo].[authors]  TO [user1]
    GO
    						
    You do not see the GRANT statement for the update permission.
The scripts output might be wrong in different ways according to the different GRANT statements.

Workaround

Manually change the permissions according to the business requirements.

Status

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:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 280361 - Last Review: November 2, 2013 - Revision: 3.0
Applies to
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB280361

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com