The SELECT permission was denied on the object 'sysobjects', database 'mssqlsystemresource', schema 'sys'

后端 未结 7 1640
闹比i
闹比i 2020-12-05 22:18

SETUP: SQL Server 2005 & DotNetNuke 05.01.02.

This started with me trying to install a DNN Module that had \"select * from dbo.sysobjects\" in it\'s SQL scripts

7条回答
  •  失恋的感觉
    2020-12-05 23:01

    Execute this code on a good server which will provide you the complete rights for PUBLIC role. Copy the output and paste to the server with the issue. Execute. Try logging in again. It fixed our problem.

    SELECT  SDP.state_desc ,
            SDP.permission_name ,
            SSU.[name] AS "Schema" ,
            SSO.[name] ,
            SSO.[type]
    FROM    sys.sysobjects SSO
            INNER JOIN sys.database_permissions SDP ON SSO.id = SDP.major_id
            INNER JOIN sys.sysusers SSU ON SSO.uid = SSU.uid
    ORDER BY SSU.[name] ,
            SSO.[name]
    

提交回复
热议问题