SQL Server出错,预期输出没有得到,查询需要很长时间才能显示输出

时间:2017-11-20 23:03:56

标签: sql sql-server

请帮助我,我收到此错误,但我不知道这意味着什么:

  

doPromotionalInvitesForCountry ::无法处理促销邀请---------------开始堆栈跟踪--------------- System.Data.SqlClient。 SqlException(0x80131904):列名称无效' PanelTypeID'。在System.Data.SqlClient.SqlConnection.OnError(SqlException异常,布尔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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource 1完成,Int32超时,任务和任务,布尔& usedCache,布尔asyncWrite,布尔inRetry)在System.Data.SqlClient。 SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String方法)位于Toluna.MR的System.Data.SqlClient.SqlCommand.ExecuteReader()的System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior,String方法)。 DataManagers.OrmDataManager.SaveObject [T](T abstractMRObject,SqlTransaction trans)位于Toluna.MR.ProcessManagers.SMS的D:\ NPDBuildAgent \ work \ 92f57252c5bf4a7e \ trunk \ src \ Database \ DataManagers \ BaseClasses \ OrmDataManager_Save.cs:第433行。在D:\ NPDBuildAgent \ work \ 92f57252c5bf4a7e \ trunk \中的PromotionalInviteManager.reserveSample(InviteLogAutomatedDetails ilad,PromoInviteConfig countryConfig,PromoInviteConfigDetail picdGender,SqlTransaction xAction,List`1 listConfigs) src \ ProcessManagers \ SMSProcessManagers \ PromotionalInviteManager.cs:在D:\ NPDBuildAgent \ work \ 92f57252c5bf4a7e \ trunk \ src \ ProcessManagers \ SMSProcessManagers \ PromotionalInviteManager中的Toluna.MR.ProcessManagers.SMS.PromotionalInviteManager.queryAndReserveSampleForPromotionalInvites(PromoInviteConfig countryConfig,SqlTransaction xAction)中的第593行.cs:第543行:Toluna.MR.ProcessManagers.SMS.PromotionalInviteManager.doPromotionalInvitesForCountry(PromoInviteConfig countryConfig,Boolean isFirstRunForTheDay,String windowsServiceName)在D:\ NPDBuildAgent \ work \ 92f57252c5bf4a7e \ trunk \ src \ ProcessManagers \ SMSProcessManagers \ PromotionalInviteManager.cs:line 251 ClientConnectionId:77a040e3-6cdb-4e0f-b903-88d4f4647101错误号:207,状态:1,类:16 ---------------结束栈跟踪-------- -------

1 个答案:

答案 0 :(得分:2)

您执行的查询包含无效的列名:

列名称'PanelTypeID'无效。