Viewing 15 posts - 1 through 15 (of 9,643 total)
You can use this query to get the sessions using tempdb:
Select
tsu.session_id,
(tsu.internal_objects_alloc_page_count + tsu.user_objects_alloc_page_count) * 8 AS TempDBSpaceKB
from
sys.dm_db_task_space_usage tsu
WHERE
(tsu.internal_objects_alloc_page_count + tsu.user_objects_alloc_page_count) >...
November 19, 2025 at 3:43 pm
This isn't code, but you could also put a max size on tempdb so you don't need to have as much use to run out of space if you are...
November 17, 2025 at 4:42 pm
I use sp_BlitzIndex which is part of Brent Ozar's Frist Responder Toolkit or you can use Glenn Berry's Missing Indexes by Index Advantage script. Both rely on the information in...
October 24, 2024 at 4:53 pm
According to Paul White (and what I heard early on when they first started meta-caching of Temp Tables), dropping the tables does NOT prevent caching of Temp Table meta-data.
https://sqlperformance.com/2017/05/sql-performance/sql-server-temporary-object-caching...
February 9, 2023 at 4:00 pm
Not dropping temp tables at the end of stored procedures is one of the pre-requisites to take advantage of the tempdb improvements made to limit metadata contention...
February 8, 2023 at 11:05 pm
That’s why I like you Jeff, you’re such a smart guy 😍🥳
Heh... if I were really smart, I'd just...
February 8, 2023 at 10:27 pm
Not dropping temp tables at the end of stored procedures is one of the pre-requisites to take advantage of the tempdb improvements made to limit metadata contention in tempdb,...
February 8, 2023 at 4:30 pm
Not dropping temp tables at the end of stored procedures is one of the pre-requisites to take advantage of the tempdb improvements made to limit metadata contention in tempdb,
February 8, 2023 at 4:26 pm
I think this is a good use case for XE. If you are on SQL 2016+ Query Store may be already doing what you want though, so you could look...
March 1, 2022 at 5:58 pm
The only way to resolve this issue is to take a log backup. The log cannot be shrunk until a backup takes place. Once you do a log backup...
October 7, 2021 at 8:19 pm
If you are migrating to an EC2 VM and you have VPN between your on-prem network and AWS you can do log-shipping and skip the S3 bucket.
How you do it...
September 30, 2021 at 2:15 pm
Can you post the table definition?
Your original post list the columns you want included in your clustered primary key and that looks like a very wide clustering key and best...
September 30, 2021 at 2:15 pm
Haven't been active in quite a bit here, but hope everyone is well and stayed healthy through 2020.
Glad to see the tone of THE THREAD hasn't changed.
January 6, 2021 at 5:19 pm
There are several uses:
March 31, 2020 at 7:37 pm
Viewing 15 posts - 1 through 15 (of 9,643 total)