↓ Skip to Main Content
Vedran Kesegic Blog
Vedran Kesegic Blog

Main Navigation

  • Home
  • sp_xdetails
  • Performance Logging
Vedran Kesegic Blog
Vedran Kesegic Blog

Off Canvas Menu

  • Home
  • sp_xdetails
  • Performance Logging

TSQL and SQL Client Code

Single-Row Deadlock
Data Engine, TSQL and SQL Client Code

Single-Row Deadlock

Vedran Nov 26, 2017 Tagged with deadlock, TSQL

Introduction Demonstration of the smallest possible deadlock: only one statement, one table, one row. Without transactions …

Single-Row Deadlock Read more →

Query with optional filters (catch-all query)
Performance, TSQL and SQL Client Code

Query with optional filters (catch-all query)

Vedran May 30, 2017 Tagged with Catch all query, Optimize, Performance, SQL Server, TSQL

In almost every database we have a process that filters the same data with different filters.…

Read more →

TSQL and SQL Client Code

Formatting TSQL code

Vedran Oct 25, 2015

How do I format my TSQL code? Everybody has it’s own preferences on formatting SQL or …

Formatting TSQL code Read more →

TSQL and SQL Client Code

CommandTimeout – How to handle it properly – code example

Vedran Jan 14, 2015 Tagged with Error handling, PowerShell, SqlClient

Properly closing a connection to Sql Server in DotNet is more challenging than one might think. …

CommandTimeout – How to handle it properly – code example Read more →

TSQL and SQL Client Code

CommandTimeout – How to handle it properly?

Vedran Jan 14, 2015 Tagged with Error handling, SqlClient

ADO.Net Data Provider for SQL Server (System.Data.SqlClient namespace in System.Data.dll assembly) has two common classes we …

CommandTimeout – How to handle it properly? Read more →

TSQL and SQL Client Code

Sort records without ORDER BY?

Vedran Sep 3, 2014

How often you see some smartie “optimizes” the query by removing ORDER BY, justifying that query …

Sort records without ORDER BY? Read more →

Data Engine, TSQL and SQL Client Code

READ COMMITTED sucks!

Vedran Sep 25, 2013

Are you still using READ COMMITTED transaction isolation level? Default transaction isolation level on all SQL …

READ COMMITTED sucks! Read more →

Posts pagination

Previous 1 2

Our Mission

Our Mission

Databases should be fast and simple to use. We make them so. Do not let your customers wait for a slow database response - hire a top professional! We are passionate about creating highly-tuned SQL Server systems. Do you want yours to become one? Simply call us or send email, and we will take care of the rest.

Vedran Kesegić, M.Sc.
SQL Server Database Consultant
Email: [email protected]

A Random Thought

Backup of corrupted database is worthless. If you do not run regular DBCC CHECKDB, your backups might be worthless.

Categories

  • Backup and Recovery
    • Transaction Log
  • BI
  • Conferences
  • Data Engine
  • Performance
  • Security and encryption
  • Storage
  • TSQL and SQL Client Code
  • Uncategorized

Recent posts

  • Instant SQL Masterpieces
  • Immutable backup against crypto attacks
  • Database recovery IMPORTANT rule
  • SUSPECT database
  • How to partition a really big table?
Copyright © 2026 Vedran Kesegic Blog | Powered by Responsive Theme
Copyright © 2026 Vedran Kesegic Blog | Powered by Responsive Theme
Visit Us On TwitterVisit Us On FacebookCheck Our FeedVisit Us On LinkedinVisit Us On Youtube