#sqlhelp how fast is it for a table with Billions of rows:
ALTER TABLE table1 SWITCH TO table2
3
1
SELECT Fridays = DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), n.num) FROM (SELECT TOP 366 num = ROW_NUMBER() OVER(ORDER BY a.NAME)-1 FROM dbo.syscolumns a, dbo.syscolumns b) n WHERE DATENAME(weekday, DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), n.num)) = 'Friday'
I track 26TB restore when it gets to 100% completed it keeps PROCESSING files and that takes hours to complete.
100 percent processed.
Processed 130299320 pages for database 'VLdb', file 'PrdDt1' on file 1......
How to track the second part? #sqlhelp #sqlfamily
2
#sqlhelp I have created many alerts for long running query > 1 hr. in TSQL but I am having a hard time figuring out how to do it using #SentryOne. Any Blog posts or articles out there on how to do it? My Google-Fu is failing me on this one. Thanks in advance @SQLFamily.
1
Every time leadership asks to speed up production I think of that chocolate factory episode from The Lucy Show 🤣
Public Announcement: Every time someone says "it should take 5 minutes", a baby panda dies in China.
One thing I always try to build at any company I go to is trust, respect, and family like environment. I always try to support and help anyone even if they call me in the middle of the night. I don’t always succeed but I still always try.
BLOG: Be Kind ift.tt/2OLGp6X
1
I certainly have this problem. I can sometimes deep dive and work on something for hours and not realize it. The hour glass is a great way to measure and control my time.
[Blog] #TSQL2sday: My Life Hack is an Hourglass. Yes, an Hourglass. brentozar.com/archive/2020/0…
Great article by @jdanton. If you want to be a better DBA please read this and go learn these techniques. Especially the last one in the fine print 👍🤓
How To Be a Better DBA: 4 Strategies To Improve SQL Server Performance -- Redmondmag.com redmondmag.com/articles/2020… < My Redmond column for February
"What we need are more mentors and less people bashing and bullying....”. That’s just simply awesome.
Have to share this:
"What we need are more mentors and less people bashing and bullying because someone has asked the same question a hundred other people have. There are always new people and the same questions will keep coming up over and over again. A mentor understands that"
#sqlpass 2020 registration is now open.
You’re unable to view this post because this account owner limits who can view their posts. Learn more
At #chiSuburb getting my learning on. Tonight’s presenter @SQLDave29
1
#SQLHelp How do I safely claim back unused space for a specific table? Table has 7 million rows, 2.1TB in size, and unused space is 21 GB. There is a ntext data type column in this table?
I have already dropped NCI and CI and recreated. Did not help. Thanks.
4
How to Manage an Employee with Depression. Great read. hbr.org/2020/01/how-to-manag…
Power shell script to check if your DB's Hypertreading is enabled or not:
$cpu = Get-WmiObject Win32_Processor | Select -First 1
$isHyperThreadingEnabled = $cpu.NumberOfLogicalProcessors -gt $cpu.NumberOfCores
Write-Host "Is HyperThreading Enabled? $isHyperThreadingEnabled"
1
Just when I think I know everything about NOLOCKS I learned something new about the locking and page splits effect. Thanks @GFritchey I learned something new tonight. #StudentForLife
My answer to What is a dirty read in an SQL server? quora.com/What-is-a-dirty-re…
1
3





