T-SQL

SQLServerCentral Article

A Plunge Into TOP

  • Article

Introduction TOP is one of the many syntactical operators available in T-SQL and at a first view, it could seem very simple and not particularly interesting. According to the official documentation, it “limits the rows returned in a query result set to a specified number of rows or percentage of rows”. The following is the […]

(6)

You rated this post out of 5. Change rating

2019-06-04

5,176 reads

Technical Article

SQL Server Cursor Example

  • DatabaseWeekly

In my T-SQL code I always use set based operations. I have been told these types of operations are what SQL Server is designed to process and it should be quicker than serial processing. I know cursors exist but I am not sure how to use them. Can you provide some cursor examples? Can you give any guidance on when to use cursors?

You rated this post out of 5. Change rating

2019-05-31

Technical Article

DEADLOCK_PRIORITY

  • DatabaseWeekly

When it detects a deadlock, SQL Server will, by default, pick the process the has the lowest cost to rollback. This can present a potential issue if the process is a business critical process. The DEADLOCK_PRIORITY allows us to have a bit of control over whether or not a process is chosen as the victim.

You rated this post out of 5. Change rating

2019-05-31

Blogs

Overcoming Imposter Syndrome: A Plan

By

My most recent bout with imposter syndrome was with ISACA’s Digital Trust Ecosystem Framework...

Advice I Like: Celebrate Success

By

“On the way to a grand goal, celebrate the smallest victories as if each...

Programmatically Retrieving MLV Lineage and Refresh Times

By

Materialized lake views (MLVs) in Microsoft Fabric are an effective way to implement medallion...

Read the latest Blogs

Forums

BCA KCP Bintaro Telpon/WA:085188120691

By Chrizelle

BCA KCP Bintaro Telpon/WA:085188120691 Jl. RC. Veteran. 9, dan No.9A, Daerah Khusus Ibukota Jakarta...

BCA KCU WISMA MILLENIA Telpon/WA:085188120691

By Chrizelle

BCA KCU WISMA MILLENIA Telpon/WA:085188120691 Jalan Letjen M.T. Haryono No.Kav. 16 11, RT.11/RW.5, Tebet...

BCA KCP Pondok Indah Telpon/WA:085188120691

By Chrizelle

BCA KCP Pondok Indah Telpon/WA:085188120691 Jl. Metro Pondok Indah No.60 & 61 UA, Pd....

Visit the forum

Question of the Day

Increase Deadlock Detection

How can I alter the deadlock detection interval to 2 seconds instead of 5 seconds on my SQL Server 2025 instance?

See possible answers