Tomaž Kaštrun


SQLServerCentral Article

Manage Your Business Rules in T-SQL Query

Motivation At some point in the carrer, we have come across the problem of hard-coded values in SELECT or WHERE clauses.  And we all agree that these hardcoded values must be parametrised. This bad habit usually backfires when we need to troubleshoot a query. These hardcoded values are usually a business role baked in the […]

4 (1)

You rated this post out of 5. Change rating

2022-10-18 (first published: )

10,815 reads

SQLServerCentral Article

Playing popular game of Wordle using T-SQL

Popular and addictive game of Wordle is now written in Transact SQL script. With this script, you can now  play this game on Microsoft SQL Server, using your favourite editor - SSMS, ADS, VS Code, and enjoy playing the game during free time, or whilst waiting for the other SQL query to complete.

You rated this post out of 5. Change rating

2022-01-19

4,326 reads

SQLServerCentral Article

Playing popular game of Wordle using T-SQL

Popular and addictive game of Wordle is now written in Transact SQL script. With this script, you can now  play this game on Microsoft SQL Server, using your favourite editor - SSMS, ADS, VS Code, and enjoy playing the game during free time, or whilst waiting for the other SQL query to complete.

You rated this post out of 5. Change rating

2022-01-19

565 reads

SQLServerCentral Article

Creating Markdown Formatted Text for Results from T-SQL

Markdown documents are becoming increasingly more popular and relevant with the emergence of notebooks. Markdown is a markup language for creating formatted text. It is widely used in tools for collaboration, tools for creating documentation and notebooks. Formatting is easy to understand, readable, simple to adopt, and agnostic. I can use a markdown document on […]

You rated this post out of 5. Change rating

2021-11-29

9,390 reads

Blogs

Large System Databases on SQL Server

By

This one is an oldie in my blog drafts, but a goodie! So, I...

Free Advanced SQL Course for June: Don’t Miss Out!

By

Summer is here, and it's the perfect opportunity to enhance your SQL expertise with...

How to give developers access to Query Store

By

Let’s have devs look at their own query performance. Yes, please, sign me up...

Read the latest Blogs

Forums

Using AI for the First Draft

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Using AI for the First...

PowerBI premium capacity administration: dataset monitoring and tuning

By Additional Articles

Comments posted to this topic are about the item PowerBI premium capacity administration: dataset...

Basic Always On Availability Groups in SQL Server Standard

By Stewart "Arturius" Campbell

Comments posted to this topic are about the item Basic Always On Availability Groups...

Visit the forum

Question of the Day

Logon Trigger Messages

I created this trigger in SQL Server 2022:

CREATE TRIGGER checksteve
ON ALL SERVER 
FOR LOGON  
AS  
BEGIN  
IF ORIGINAL_LOGIN()= N'ARISTOTLE\Steve'
 PRINT 'Steve logged in'
END;  
GO
Where can I view "Steve logged in"?

See possible answers