Differences between xp_instance_RegRead and xp_RegRead

后端 未结 2 1967
自闭症患者
自闭症患者 2021-02-12 09:52

Whats the difference between XP_REGREAD and XP_INSTANCE_REGREAD. How to use them, is there any docs on these?

2条回答
  •  悲哀的现实
    2021-02-12 10:26

    Gabriel, The Service account does not have to be dbo. As long as the user is a user in the master database, you can grant execute permissions on system objects in the master db.

    GRANT EXEC ON OBJECT::master.dbo.xp_instance_regread TO ServiceAccountUserName
    

提交回复
热议问题