Skip to content
Topics

snippet

186 results. Clear

Split Array

Article

SplitArray is a powerful table SQL function which splits delimited values into a row-set.

13 years ago

IO DMVs

Article

A collection of queries covering the IO DMVs: per-file IO stats, pending IOs, IO by drive letter and index space usage.

15 years ago

Split Words

Article

A table valued function that splits text into words on spaces and punctuation, remembering each word's position.

15 years ago

A collection of queries covering the current-activity DMVs: sessions, connections, requests, waiting tasks and blocked processes.

15 years ago

QuickTrace

Article

A one-shot server trace that runs for a fixed duration, captures the standard tuning events, reads the results back and deletes the file.

16 years ago

A collection of queries covering the indexing DMVs: operational stats, usage stats, fragmentation and missing index recommendations.

16 years ago

CPU DMVs

Article

A collection of queries covering the CPU-related DMVs: schedulers, signal vs resource waits and the processes currently using CPU.

16 years ago

Guid Search

Article

A stored procedure that finds every table and column containing a given GUID across the whole database.

17 years ago

A brute-force and dictionary SQL login password cracker that reports blank, username-as-password and cracked accounts.

17 years ago

A query that reports missing index candidates with improvement measures and generated CREATE INDEX statements.

17 years ago

Query To CSV

Article

A stored procedure that wraps any single-column query into one delimited, optionally padded, comma-separated string.

18 years ago

A query that lists all active processes on the server with their current SQL statement, waits and resource usage.

18 years ago

DBCheck

Article

A stored procedure that checks or repairs a database, handling single-user mode, options and UPDATEUSAGE for you.

18 years ago

Top Waits

Article

A query that reports the top waits making up 95% of total wait time, split into resource and signal time.

19 years ago

Ragged Sort

Article

A scalar function that zero-pads mixed numeric and text values so they sort in natural order.

19 years ago

A scalar function that formats a datetime into any of about twenty named formats, including a UNIX timestamp.

19 years ago

A collection of queries covering the execution DMVs: query stats, cached plans and plan attributes for finding and analyzing queries.

19 years ago

A stored procedure that generates the complete drop script for a user across every database: objects, schemas, users and login.

19 years ago

A view over sysjobhistory that converts the packed run date/time/duration integers into readable start and end times.

19 years ago

Overall DMVs

Article

A collection of queries covering the overall health DMVs: wait statistics, performance counters, system info and memory state.

19 years ago

Memory DMVs

Article

A collection of queries covering the memory DMVs: buffer usage by database and by object, plus Buffer Manager performance counters.

20 years ago

Schema Map

Article

A script that maps every table and column in the database with types, keys, foreign keys and extended property comments.

20 years ago

Remap Users

Article

A cursor script that regenerates and executes ALTER USER WITH LOGIN statements for every mapped user in a database.

21 years ago
An unhandled error has occurred. Reload 🗙