2014-09-12 63 views
0

因此,我實際上是一個新的DBA,並且我的機器還沒有正確安裝,因此每次有人發送未知錯誤請求時,我都會負責搜索Google的答案(希望下週改變!嘆了口氣)。所以在互聯網上搜索過去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) 

在certainwebsite.somewebsite.com web服務反覆出現的錯誤。

下面是一個簡單的堆棧跟蹤

> 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) 
+0

你能提供正在運行的插入語句嗎? – 2014-09-12 17:19:51

+0

我們需要看到「dbo.usp_insertcertainlog」...編輯您的帖子並使用代碼更新它?還......你在哪個SQL服務器版本? 2008年? 2012? – Twelfth 2014-09-12 17:35:28

+0

我提供了sql server的版本。它是patch sp2/cu2上的sql server 2012 – croxfade 2014-09-12 18:00:54

回答

0

從錯誤似乎帳戶沒有訪問插入數據。您將需要修改權限。