2014-02-11 65 views
1

我有一个MS CRM 2011的内部部署实例。许多高级查找都触及“SQL Server超时过期”。他们也不是疯子。除了与事件查看器相同的事情外,CRM Trace并没有给我提供太多的信息(显示在这篇文章的底部)。我已经使用指示herehere来尝试SQL跟踪,但是在SQL中发生的事情太多了,无法对其进行解密。任何想法我应该寻找什么?Microsoft CRM 2011:SQL查询中的SQL超时已过期

我已经在这个调整表现为年,所以我已经尝试了很多常见的招数(OLEDBTimeout/ExtendedTimeout,增加索引等)

错误:

Exception information: Exception type: CrmException Exception message: SQL timeout expired. at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal() at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute() at Microsoft.Crm.ApplicationQuery.RetrieveMultipleCommand.RetrieveData() at Microsoft.Crm.ApplicationQuery.ExecuteQuery() at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.GetData(QueryBuilder queryBuilder) at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData() at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData() at Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData() at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)

... abridged ...

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information: Request URL: url/org/AdvancedFind/fetchData.aspx?EntityCode=10210&QueryId={029DE247-EE5F-4FF9-B2E2-2730CFB17B0F}&ViewType=1039&pagemode=iframe&sitemappath=sales|Customers234|contact Request path: /org/AdvancedFind/fetchData.aspx User host address: 1.2.3.4 User: domain\username Is authenticated: True Authentication Type: Negotiate Thread account name: domain\SQL_ADMIN

+0

当超时发生时,您要查询哪个实体?在某些数据库中,当“test”输入时,快速搜索超时仅仅是由于结果的体积。 –

+0

最近,它是电话呼叫,但也与自定义实体。 结果并不是一个巨大的集合;少于100条记录。 – user1231257

回答

0

使用SQL Server的分析器工具来找出导致超时的查询。数据库本身很可能是问题的根源。

你有没有在DB(reindexing,分区等)的保养?