Uwe Ricken's Avatar

Uwe Ricken

@sqlbambi.bsky.social

Data Addicted SQL Server expert. International Speaker Dad of two beautiful daughters….

103 Followers  |  79 Following  |  24 Posts  |  Joined: 17.11.2024  |  2.1575

Latest posts by sqlbambi.bsky.social on Bluesky

Preview
MuteSky — Mute in Bulk on Bluesky MuteSky helps you efficiently manage your Bluesky experience by providing powerful bulk muting capabilities. Filter your feed, manage content, and customize your experience with ease.

For those of you looking to avoid the news today, check out @mutesky.app, which mutes political and distressing keywords. Temporarily set it to Complete filtering which adds about 1500 mute keywords. Performance will be impacted a bit but worth it. After the hubbub, set it back to Minimal.

20.01.2025 08:43 — 👍 25    🔁 12    💬 4    📌 4
Preview
Is SWITCH PARTITION a bad idea? How can SWITCH PARTITION be a bad idea? Do you work with partitioning and know the many advantages that this technology offers? Do you use this technology in DW

You work with partitioning and know the advantages of this technology? You use this technology in DWH to improve workloads or in OLTP to optimize scaling? It should be avoided or optimized for a specific type of workload.
www.db-berater.de/2025/01/is-s...
#sqlserver #partitioning #optimization

06.01.2025 05:34 — 👍 1    🔁 0    💬 0    📌 0

Yep. A new Plan will be generated, IF the Optimizer detects changes in the statistics.

eg: create a table + Index.
Run a select to create a plan.
Rebuild the Index.
Plan is in the Cache.
Run the würd again and Check for recompile (xevent)….

31.12.2024 20:22 — 👍 1    🔁 0    💬 0    📌 0

If statistics changed… the plan got obsolet but there is no FREEPROCCACHE for each Index rebuild :)

31.12.2024 19:26 — 👍 0    🔁 0    💬 1    📌 0

Trust me, DBCC FREEPROCCACHE is definitely NOT executed every time an INDEX REBUILD is performed. This doesn't get any more true than some well-known SQL Server "expert" says. The plan cache is not even touched!

#sqlfamily #sqlserver #fail

30.12.2024 11:56 — 👍 0    🔁 0    💬 1    📌 0
Preview
The role of a DBA is NOT Tuning but Operations You often read on social networks that a DBA's job is to optimize databases, among other things. I think that's a misinterpretation of the - important - role of

You often read on social networks that a DBA’s job is to optimize databases, among other things. I think that’s a misinterpretation of the – important – role of a DBA.

#sqlfamily #sqlserver

www.db-berater.de/2024/12/the-...

12.12.2024 10:48 — 👍 3    🔁 0    💬 4    📌 0
Preview
Foreign Key Constraints - JOIN Elimination JOIN Elimination in Microsoft SQL Server is an optimization technique with foreign key constraints where the query engine removes redundant JOIN operations duri

Do you know that Foreign Key Constraints can help to improve your queries?

JOIN Elimination is a technique which might be useful in high transactional OLTP systems.
#sqlfamily #sqlserver

www.db-berater.de/2024/12/fore...

09.12.2024 10:31 — 👍 3    🔁 0    💬 0    📌 0
Post image

Me, when tuning was successful.

jealous of my wife. She’s in Norway for whale watching. Awesome!
#sqlfamily

26.11.2024 14:23 — 👍 7    🔁 0    💬 1    📌 0
Preview
Use Foreign Key Constraints in your Databases - Part I When revising one of my popular sessions on scenarios in which indexes no longer help, one of the topics covered was foreign key constraints for data integrity

Database don't need Foreign Key constraint; the application is taking care of it. Standard arguments are:
- to slow
- limit my handling of data
I took the time to run a few tests with and without Foreign Key Constraints. Surprising results...
www.db-berater.de/2024/11/use-...
#sqlfamily #sqlserver

25.11.2024 11:54 — 👍 6    🔁 2    💬 0    📌 0
Preview
Consider the correct data type in queries Although an index should provide a fast query, Microsoft SQL Server either does not want to use that index at all or does not want to use it optimally. The caus

Are you using the correct data types for parameters in your queries? If not, you should know what consequences this can have.
#sqlserver #sqlfamily

www.db-berater.de/2024/11/cons...

24.11.2024 13:26 — 👍 8    🔁 1    💬 0    📌 0

Hi @aschenbrenner.bsky.social not sure what exactly you mean. But the blockers are in sys.dm_os_waiting_tasks and/or sys.dm_exec_requests.

Mabye that's what you are looking for?

24.11.2024 09:22 — 👍 0    🔁 0    💬 0    📌 0

is it possible to filter on [attach_activity_id_seq] = 0 when i create an xevent?

Example: CREATE EVENT SESSION
...
WHERE attach_activity_id_seq = 1
#sqlhelp #sqlserver #sqlfamily

24.11.2024 09:18 — 👍 1    🔁 0    💬 0    📌 0
Preview
Updating an expired SQL Server TDE certificate In this tip we cover how to update an expired SQL Server TDE certificate.

No, just replace it.

www.mssqltips.com/sqlservertip...

24.11.2024 04:04 — 👍 0    🔁 0    💬 0    📌 0

Next time I do. Good advice.
Thank you…

24.11.2024 03:42 — 👍 0    🔁 0    💬 1    📌 0
Preview
ISNULL() and SARGable queries Database developers like to use the ISNULL() function to check two conditions and compare them with a search value. This is often done with the intention of fin

Hey SQL experts, don’t use ISNULL() to search in your tables. You can do it better, don’t you?

www.db-berater.de/2024/11/isnu...

#sqlserver #sqlfamily

23.11.2024 11:45 — 👍 4    🔁 1    💬 2    📌 0

Happy to see you both there…

23.11.2024 08:59 — 👍 2    🔁 0    💬 0    📌 0
Preview
Neue Straßenverkehrsordnung in Italien: Handy am Steuer, 1000 Euro Wer in Italien am Lenkrad mit dem Mobiltelefon hantiert, muss künftig mit drastischen Strafen rechnen. Auch Fahrern, die ihr Auto unter Alkohol- oder Drogeneinfluss steuern, drohen deutlich härtere Ko...

Why not in Germany, too?

www.spiegel.de/auto/italien...

21.11.2024 12:26 — 👍 0    🔁 0    💬 0    📌 0

Frauen nicht?

21.11.2024 05:14 — 👍 0    🔁 0    💬 0    📌 0
Preview
Optimize search for a random key value from a table Unit tests/demos in workshops and conference sessions sometimes require a random key value from an existing table. In this article I present a solution that acc

Unit Tests / Demos - do you need a random key value from a large table very quick? Optimize the process significantly...

www.db-berater.de/2024/11/opti...
#sqlserver #sqlfamily

20.11.2024 05:08 — 👍 0    🔁 0    💬 0    📌 0

Although my workshop is at the #sqlkonferenz in February, I'm already preparing the labs. I'm wondering if it won't be more of a comedy event. So many bad examples that I've collected over the years suggest a lot of fun.
#sqlserver #performance #tuning #sql #sqlfamily

19.11.2024 10:16 — 👍 6    🔁 0    💬 1    📌 0

Don’t let the asterisk (*) make you think it has the same use as in "SELECT *" statement. NO! COUNT(*) will not go through the whole table before returning the number of rows, making itself slower than COUNT(1)!

#sqlserver #Performance #SQL #sqlfamily

19.11.2024 07:48 — 👍 2    🔁 0    💬 0    📌 0

Note! If your SQL Server is suffering from "Tempdb Latch Contention" is is NEVER a problem of SQL Server! It's your application!

Want to learn more about it? In February 2025 I will be doing a workshop at #sqlkonferenz in Hanau (Germany).

sqlkonferenz.de/precon-works...
#sqlserver

19.11.2024 06:36 — 👍 3    🔁 0    💬 0    📌 0
Post image

I like database gurus who immediately recognize that databases have nothing to do with normalization. Why else would you allow up to 2 GB for a phone number, for example?
#sqlserver #rdbms #development #EF

18.11.2024 07:14 — 👍 1    🔁 0    💬 0    📌 0

I wonder why so many people ask silly SQL Server quiz questions on LinkedIn. What is the point of this nonsense? Can you win something? (asking for a friend).
#sqlserver #dataplatform

18.11.2024 07:11 — 👍 2    🔁 0    💬 0    📌 0

Dear community, moved from Twitter (@dbberater) to BlueSky.
I hope that things are more civilized and respectful here.
I look forward to interesting tweets and a friendly exchange with followers and those I follow.

17.11.2024 17:38 — 👍 8    🔁 0    💬 4    📌 0

@sqlbambi is following 20 prominent accounts