Quantcast
Viewing all articles
Browse latest Browse all 21070

The EXECUTE permission was denied on the object 'proc_putObjectTVP', database 'MSSQL', schema 'dbo'

While trying to create a custom SharePoint timer job at feature activation I got the following error from the log files:

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object 'proc_putObjectTVP', database 'MSSQL', schema 'dbo'.     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.Sql...5c6d109c-dbc6-e02e-7ae4-010d7f559e0b

In order to make it work i located the stored procedure proc_putObjectTVPand granted execute permission to the site apppool userID. It worked as desired.

My question is:

  1. Is this a bug in Sharepoint 2013?
  2. Is this the proper way to do it? (On production environment I may not be allowed by the server administrator to perform such operations)

 


Viewing all articles
Browse latest Browse all 21070

Trending Articles