Crazy engine II
"Sorry for off-topic but looks like you have to fix your signature. The links are not showing as links."Thanks Naomi! :-)Tibor Karaszi, SQL Server MVP (WebBlog)
View ArticleCrazy engine II
Hi maca128, Great to hear you've solved the problem and thanks for the valuable sharing. I've experienced not the same issue but the same scenario comparing a varchar type to a nvarchar.CREATE TABLE...
View ArticleCrazy engine II
Good you figured the problem! You still need to upgrade your server.For every expert, there is an equal and opposite expert. - Becker's LawMy blogMy TechNet articles
View ArticleCrazy engine II
Hi guys, thanks for all your support... Finally the issue was that I had 3 joins, and the joins were joining varchar(10) to nvarchar (255)...That messed up the engine... and it made the engine...
View ArticleCrazy engine II
Check this interesting articlehttp://sqlblog.com/blogs/paul_white/archive/2011/02/23/Advanced-TSQL-Tuning-Why-Internals-Knowledge-Matters.aspx may be it will provide some help.Now, did you try to...
View ArticleCrazy engine II
Thanks for all the replies...Again, the issue is that I check sys.dm_exec_query_memory_grants, and for the same query sometimes memory granted is 10MB (runs really slow), and when it is 4GB, it just...
View ArticleCrazy engine II
Your first problem is that you're not using the latest service pack (which is SP3 for that version). You need to start from upgrading the server and then re-test.http://sqlserverbuilds.blogspot.com/For...
View ArticleCrazy engine II
Hi Tom, thanks for your reply.Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft CorporationEnterprise Edition (64-bit) on Windows NT 6.1 <X64>...
View ArticleCrazy engine II
Please post the results of SELECT @@VERSION.What you are describing is due to the cardinality and how the query optimizer estimates the rows and creates the query plan. Your problem is likely your...
View ArticleCrazy engine II
Thanks Tibork!! The problem is when I use >=>='20151012'I can't use optimize for '>=' not to mention that I am not using variables either.Thanks again
View ArticleCrazy engine II
You can use the OPTIMIZE FOR hint, and specify a value which work well for you (the value in the WHERE clause).Tibor Karaszi, SQL Server MVP | <a...
View ArticleCrazy engine II
Hi I think I narrowed it down the issue... to 'memory grant'See below2 minutes vs 2 hours... How can I get that amount of memory every time I run it?(this is driving me crazy, randomly this goes to...
View ArticleCrazy engine II
I am running this from the SSMS, and slightly changing the 'where' clause, but, there is no pattern...Now, I was able to make both run in DOP=0... but again, one takes 3 seconds and sometimes 2...
View ArticleCrazy engine II
Tibor,Sorry for off-topic but looks like you have to fix your signature. The links are not showing as links.For every expert, there is an equal and opposite expert. - Becker's LawMy blogMy TechNet...
View ArticleCrazy engine II
Is it *the exact same* query that sometimes use parallelism and sometimes not? Or did you change *anything* in the query? That could be the values that you search for, parameters, the tool from where...
View ArticleCrazy engine II
How exactly you're testing? Just running the same query with different parameters yourself from SSMS or from the application? Also, what else is running at the Server during these tests?Also, did you...
View ArticleCrazy engine II
This doesn't make any sense now... Now it's completely random... it will paralelize some, others not... Even using OPTION (RECOMPILE), doesn't help...Parallelized ones run in seconds, with parallelism...
View ArticleCrazy engine II
This almost certainly has to do with cardinality and statistics.Please...
View ArticleCrazy engine II
See if this http://serverfault.com/questions/91285/how-do-i-remove-a-specific-bad-plan-from-the-sql-server-query-cache may help to remove that bad plan. Also try running the query with a plan hint to...
View ArticleCrazy engine II
maca128, The only difference is that the SQLOS choose to use parallelism in the first query and not to use in the second one. Look at the bigger arrows to find the tables with a lot of rows that are...
View Article
More Pages to Explore .....