Viewing 15 posts - 2,506 through 2,520 (of 22,202 total)
Query said:
...WHERE 1=0...
Comment in front of the query said:
-- WHERE 1 = 0
No explanation for it at all.
June 5, 2019 at 12:23 pm
I have a bit of bittersweet news. After more than a decade of coaching youth soccer I am finally hanging up the whistle (although I never actually use one...
June 3, 2019 at 5:55 pm
Just saw a joke.
Coach calls over little 8 yo player:
Coach: You know that I substitute everyone so you call get some time to play right?
Player: Yes
Coach: And you know we're...
June 3, 2019 at 5:52 pm
sys.dm_db_index_usage_stats would be a good way to generally understand how data is accessed. It's not perfect. Here's a good article on it.
May 31, 2019 at 12:43 pm
This is a resource I trust very much talking about this topic. His suggestion is to change the keys every two years. Read the article for more details.
May 30, 2019 at 12:40 pm
SQL Server will grab the amount of memory it has available and continue to grab more of that to the max. It does this completely automatically, stopping only at the...
May 30, 2019 at 12:37 pm
Yeah, agreed. In fact, it's a great practice to have a different account administering SQL Server instances on the box and one administering the operating system. It's the right kind...
May 30, 2019 at 12:30 pm
So, memory is different. What else? Number of processors? Max Degree of Parallelism? Cost Threshold for Parallelism? ANSI connection settings? These are just the top server settings that lead to...
May 30, 2019 at 12:29 pm
You could keep a second copy of the database around. That will give you a comparison point. You have to sacrifice storage, but disks are pretty cheap.
May 30, 2019 at 12:21 pm
Pretty much. Yes.
There are some exceptions. We're still working out how to deal with Azure SQL Database cross-database query setup. A couple of other issues along those very specific lines....
May 30, 2019 at 12:17 pm
Nope. Just look at the logical reads. That's the amount of memory being used by the query.
May 29, 2019 at 2:11 pm
It's likely that it's a version thing then, and certainly, likely to be 2014+ since that's when the cardinality estimation engine changed. Funny enough, Pinal's advice is the opposite of...
May 29, 2019 at 12:43 pm
Thanks for the kind words. Really not doing that much, but thank you.
The easiest way to answer this question is to use Extended Events. The specific event you'd be looking...
May 29, 2019 at 12:20 pm
It's to do the most efficient locking possible. Depending on what you're doing, a table lock may be more efficient. To be sure about all this, we'd need to gather...
May 29, 2019 at 12:00 pm
There are lots of tools for doing health checks. I just found this one: https://mitchwheat.com/sqlfrontline/
May 29, 2019 at 11:58 am
Viewing 15 posts - 2,506 through 2,520 (of 22,202 total)