Uwe Ricken
sqlbambi.bsky.social
Uwe Ricken
@sqlbambi.bsky.social
Data Addicted SQL Server expert.
International Speaker
Dad of two beautiful daughters….
Reposted by Uwe Ricken
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.
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.
mutesky.app
January 20, 2025 at 8:43 AM
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
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
www.db-berater.de
January 6, 2025 at 5:34 AM
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
December 30, 2024 at 11:56 AM
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-...
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
www.db-berater.de
December 12, 2024 at 10:48 AM
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...
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
www.db-berater.de
December 9, 2024 at 10:31 AM
Me, when tuning was successful.

jealous of my wife. She’s in Norway for whale watching. Awesome!
#sqlfamily
November 26, 2024 at 2:23 PM
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
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
www.db-berater.de
November 25, 2024 at 11:55 AM
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...
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
www.db-berater.de
November 24, 2024 at 1:26 PM
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
November 24, 2024 at 9:18 AM
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
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
www.db-berater.de
November 23, 2024 at 11:45 AM
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
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
www.db-berater.de
November 20, 2024 at 5:08 AM
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
November 19, 2024 at 10:16 AM
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
November 19, 2024 at 7:48 AM
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
November 19, 2024 at 6:36 AM
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
November 18, 2024 at 7:14 AM
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
November 18, 2024 at 7:11 AM
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.
November 17, 2024 at 5:38 PM