Abdel Ougnou (@aougnou) profile picture

I have been playing around with SQL Server since version 6.5. I can make your SQL Server faster and a lot better than it is today.

Washington, DC
Joined February 2011
Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)Photo by Abdel Ougnou (@aougnou)
I can't find any documentation on TF1811 ? #SQLServer #SQLHelp
1
2
#sqlhelp how fast is it for a table with Billions of rows: ALTER TABLE table1 SWITCH TO table2
3
1
#sqlhelp How to write a query to get every other Friday? #tsql
5
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
Script only tracks 1st part: SELECT session_id as SPID, command, a.text AS Query, start_time, percent_completeFROM sys.dm_exec_requests r CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) a WHERE r.command in ('BACKUP DATABASE','RESTORE DATABASE')
#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.
This is a good reminder for all of us. No matter how much you know, you still don't know it all, and you never will.
The only people I’ve worked with in tech that *really* couldn’t cut it couldn’t ask for help or say “I don’t know”.
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.
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
1
1
4
"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
#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
Unfortunately True. But hey we love what we do and we'll keep giving great advice anyway 😉
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
Kicking the can down the road is easy. Doing the right thing is hard work.
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