Skip to content

Instantly share code, notes, and snippets.

View CaptainDylan's full-sized avatar

Dylan Peters CaptainDylan

  • Neptune
  • Lawrenceville, GA
View GitHub Profile
/* Note: don't run this all at once. There are prompts to run some queries in another session, etc. */
WHILE @@trancount > 0
ROLLBACK
GO
USE master;
GO
IF DB_ID('lockingtest') IS NOT NULL