March 1, 2012 at 11:57 am
I have a developer that gets the following error when trying to create a table that is not in the dbo schema:
Msg 15135, Level 16, State 1, Procedure sp_addextendedproperty, Line 37 Object is invalid. Extended properties are not permitted on 'HisSchema.Accounts_Payable.Line_Item_Number' or the object does not exist.
What permissions do I need to grant him?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 1, 2012 at 12:20 pm
The following error occurs when trying to create extended properties on a schema other than dbo.
Msg 15135, Level 16, State 1, Procedure sp_addextendedproperty, Line 37 Object is invalid. Extended properties are not permitted on 'HisSchema.Accounts_Payable.Payable_Type_Code', or the object does not exist.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
March 1, 2012 at 12:34 pm
Hi,
It seems that only the db_owner or the db_ddladmin may be able to achieve what you need to achieve per my understanding of your question. See below URL and it's explanations and I hope that helps.
URL: http://msdn.microsoft.com/en-us/library/Aa259572
Regards,
Zymos.
March 1, 2012 at 12:39 pm
Did you check the following issues?
What is the default schema this user has?
What permission does the user have on this schema?
March 1, 2012 at 12:39 pm
He had a systax error:
The Developers syntax was incorrect.:w00t:
This worked.
EXEC sys.sp_addextendedproperty
@name = N'Welsh',
@value = N'Minimum inventory quantity.',
@level0type = N'SCHEMA', @level0name = HisSchema,
@level1type = N'TABLE', @level1name = Accounts_Payable,
@level2type = N'COLUMN', @level2name = Payable_Type_Code;
GO
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy