Avatar of mssql_v2005
mssql_v2005

asked on 

SQL Timeouts and Warnings+CRM 2011

Hi All,

We were getting the below warning in one of our PROD environment.

Query execution time of 30.0 seconds exceeded the threshold of 10 seconds. Thread: 28; Database: PROD_MSCRM; Server:PRODDB01; Query: update tablename set col=......

Using below option, we have changed LongQueryThersholdInSeconds column value in ServerSetingProperties table of MSCRM_Config Database.

update MSCRM_CONFIG..ServerSettingsProperties set IntColumn = '30' where ColumnName='LongQueryThresholdInSeconds'

How do i get CRM to recognize it? The error i’m getting still says what the original setting was. Not the increased time i set it to.

Please advise me on this issue.
Microsoft SQL ServerMicrosoft DynamicsSugarCRM

Avatar of undefined
Last Comment
mssql_v2005
Avatar of Feridun Kadir
Feridun Kadir
Flag of United Kingdom of Great Britain and Northern Ireland image

I would have thought an IISRESET or server reboot should get the new setting recognized.
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Hi,

If that also does not do the thing for you, you need to consider following findings:
1. Observe the operation when this error occurs.
2. Observe the query which is getting fired when this error occurs and do some research on it. Find the columns which requires indexes on it.
3. If there are any SDK calls for this operation to fetch records from CRM, try to use FetchXml and QueryExpression with "NO LOCK" property specified with it.
Avatar of mssql_v2005
mssql_v2005

ASKER

@Rikin Shah: We have already executed point 2 & 3. Still we are getting same warning message.

@Feridin: We have configured IIS in different server. Do we need to reboot IIS server and DB01(PROD DB server) as well?
ASKER CERTIFIED SOLUTION
Avatar of Feridun Kadir
Feridun Kadir
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Lucas
Lucas
Flag of Canada image

Sounds like table locking issue .

Login to your SQL server and take a look at the activity monitor.  The overview window should show you which process is in LOCK state.  You can remove the locked process and it should work.
Avatar of mssql_v2005
mssql_v2005

ASKER

Thanks Lucas911. We will check and will update you if we found any locking issues.

Hi Feridun,
We have to explain this situation (above warning) to our customer in detail like symptom, rootcause and resolution. I am not able to find any MSDN/Microsoft link related to above warning. Can you please share MSDN link for this.
Thanks in advance.
Avatar of Feridun Kadir
Feridun Kadir
Flag of United Kingdom of Great Britain and Northern Ireland image

I'm not sure that cahnging the warning threshold is documented in MSDN but there are a lot of posts on this topic by many people.
Avatar of mssql_v2005
mssql_v2005

ASKER

--
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo