EXECUTE permission to object ' sp_sdidebug ' (Database ' master ', owner ' dbo ') was rejected __ database

Source: Internet
Author: User

Denied EXECUTE permission on object ' sp_sdidebug ' (Database ' master ', owner ' dbo '), I believe many friends have encountered this problem. In particular, when transferring a database, the stored procedure cannot be executed because the permissions of the database owner have changed. This error occurs, usually because it is written like this when the stored procedure is created, Create/alter PROCEDURE [dbo]. [StoredProcedureName], the owner of the stored procedure created by this is dbo, the shorthand for Databaseowner, which performs the stored procedure normally when integrated security=sspi/true as the connection string locally. But when the database is moved to the virtual host, the service provider will not give the SA user password to the customer, but give them a common user name, usually very low permissions, can only execute a specific database stored procedures. Stored procedures cannot be executed when the owner of these stored procedures is dbo rather than the user name provided to the customer by the service provider. This time you must modify the stored procedure to the following style: Create/alter PROCEDURE [StoredProcedureName]

If the stored procedure is a special name, add square brackets, such as user, which is not normally required. This time the stored procedure is executed in the program, and the owner of the stored procedure is the user specified in the connection string instead of dbo, so that it can be executed correctly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.