无法将数据插入某个表

时间:2014-09-12 17:15:49

标签: sql sql-server exception sql-server-2012

所以我确实是一个新的DBA而且我的机器还没有正确设置,所以每当有人发送一个未知错误的请求时,我负责搜索谷歌的答案(希望下周改变!叹息)。因此,在过去2小时在互联网上搜索后,我还不知道是什么原因导致了其中一个人发送给我的错误。我们正在运行sql server 2012,我们正处于补丁级SP2 / CU2。

错误消息是

System.Data.SqlClient.SqlException: Cannot insert data into CertainLog table. 

dbo.usp_insertcertainlog - EXECUTEPROCEDURE raisedSystem.Data.SqlClient.SqlException

Instancesomething306(ROOT:certainwebsite.somewebsite.com)

在somewebsite.somewebsite.com webservice中反复出现错误。

这是一个示例堆栈跟踪

> 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.SqlCommand.RunExecuteReaderTds(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
> async, Int32 timeout, Task& task, Boolean asyncWrite) at
> System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
> method, TaskCompletionSource`1 completion, Int32 timeout, Task& task,
> Boolean asyncWrite) at
> System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1
> completion, String methodName, Boolean sendToPipe, Int32 timeout,
> Boolean asyncWrite) at
> System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at
> System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at
> Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteNonQuery(DbCommand
> command) at
> Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DbCommand
> command) at
> Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DbCommand
> command)

1 个答案:

答案 0 :(得分:0)

从错误中可以看出帐户无权插入数据。您需要修改权限。