↓ 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

Data Engine, TSQL and SQL Client Code

Instant SQL Masterpieces

Vedran Oct 26, 2026 Tagged with IDENTITY;INCREMENT

Some common operations if done in a classic way will take ages on big tables. That …

Instant SQL Masterpieces Read more →

TSQL and SQL Client Code

How to pass arrays to SQL? TVP – The Ultimate Guide

Vedran Dec 8, 2020 Tagged with arrays, batches, csharp, sql, SQL Server, table-valued parameters, TSQL, tvp

You always wanted to know how to pass arrays to SQL Server? Watch this Ultimate Guide …

How to pass arrays to SQL? TVP – The Ultimate Guide Read more →

Performance, TSQL and SQL Client Code

How NOT to use CROSS APPLY

Vedran Aug 10, 2020

OUTER APPLY(SELECT TOP 1) pattern is widespread, even baked into some frameworks like Entity Framework. But …

How NOT to use CROSS APPLY Read more →

Have SUM() fun!
TSQL and SQL Client Code

Have SUM() fun!

Vedran May 26, 2020 Tagged with analytic, over, sql, visualization, windowing

Did you know that SUM() aggregate can be used together with OVER() clause? A short intro …

Have SUM() fun! Read more →

SQLPLUS.net – an interview with Alan Hyneman
TSQL and SQL Client Code

SQLPLUS.net – an interview with Alan Hyneman

Vedran Dec 31, 2019 Tagged with sqlplus net

Introduction If you are in search for a good ORM, keep reading. Alan Hyneman, the author …

SQLPLUS.net – an interview with Alan Hyneman Read more →

TSQL and SQL Client Code

Insert if NOT exists – duplicate key problem

Vedran Nov 17, 2019

When multiple sessions insert into the same table, and something unique is there (uq index, uq …

Insert if NOT exists – duplicate key problem Read more →

sp_xdetails – index and table info
TSQL and SQL Client Code

sp_xdetails – index and table info

Vedran May 10, 2019 Tagged with addin, addon, sp_xdetails, sql, SQL Server, sqlxdetails, TSQL, xdetails

While ago I wrote SSMS Addin called SQL XDetails. It was not updated long time because …

sp_xdetails – index and table info Read more →

Plan Cache Tsunami
Performance, TSQL and SQL Client Code

Plan Cache Tsunami

Vedran Mar 17, 2019 Tagged with concatenation, parameters, plan cache, tsunami

Your SQL Server may be slow for a peculiar reason: a run-away query that pushes-out all…

Read more →

SQL Profiler for Developers and Testers
Performance, TSQL and SQL Client Code

SQL Profiler for Developers and Testers

Vedran Aug 10, 2018

Introduction You developed a new TSQL code and want to check is there a slow SQL …

SQL Profiler for Developers and Testers Read more →

ROWVERSION/TIMESTAMP skipping rows problem
Data Engine, TSQL and SQL Client Code

ROWVERSION/TIMESTAMP skipping rows problem

Vedran Jun 29, 2018 Tagged with problem, rowversion, skipping rows, sql, timestamp

Do you use ROWVERSION/TIMESTAMP to pull changed data? If you do, you might experience a problem …

ROWVERSION/TIMESTAMP skipping rows problem Read more →

Posts pagination

1 2 Next

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

The worst place in the world to store your backups is on the same portion of the I/O subsystem as the databases themselves.

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