T-SQL

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 […]

5 (6)

2019-06-04

3,858 reads

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?

2019-05-31

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.

2019-05-31

Blogs

The Azure-SSIS IR Startup Time

By

If you want to run SSIS packages in Azure Data Factory, you need the...

What is a container anyway?

By

Recently there was a thread on Twitter which established that a lot of IT...

Comparing Execution Plans

By

When you run a query twice, and get dramatically different run times, your first...

Read the latest Blogs

Forums

Statistics Profile Results

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Statistics Profile Results

passing delimited text from stored procedure to show in flat file

By mcfarlandparkway

i have a sample data where i have header row / detailed / total...

Strange update trigger behavior

By andre-119936

Hi. I create a update trigger on a table to audit data changes... the...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers