Connect with Windows authentication, run an interactive batch, and execute a script with a meaningful process exit code.
Read article
Connect with Windows authentication, run an interactive batch, and execute a script with a meaningful process exit code.
Read articleChoose one eligible row with TOP and NEWID, then understand why this convenient technique can become expensive on large sets.
Read article
Use STRING_SPLIT with ordinals, handle whitespace and empty tokens, and avoid treating a simple delimiter split as a CSV parser.
Read articlePlan a login migration, preserve SQL login SIDs where appropriate, and verify mappings and access on the destination.
Read article
Preview an exact update predicate, inspect before/after values with OUTPUT and rehearse the change inside a transaction that rolls back.
Read articleWork through matching rows, preserved rows and Cartesian combinations while avoiding false one-to-one assumptions.
Read article
List user tables, inspect their column definitions, count columns and locate a named column with schema-aware catalog queries.
Read articleCreate an independent Database Engine instance with current Setup, deliberately select its features and authentication, and verify its identity.
Read article
Use a local forward-only cursor when row-by-row work is necessary, check every fetch and close/deallocate it on success or failure.
Read articleUse simple and searched CASE expressions, handle null and boundary values, and keep result types consistent.
Read article
Replace a retired Indexing Service recipe with a read-only Windows Search query, including a scoped remote-catalog form where supported.
Read articleDetect a missing login SID, remap the existing database user with ALTER USER, and preserve its database permissions.
Read article
Configure the intended listener and narrowly scoped firewall access, then distinguish networking, instance discovery and login failures.
Read articleUse UPPER and LOWER for presentation, understand collation-driven comparisons, and avoid unnecessary destructive normalization.
Read article
Build a schema-bound aggregate view, create its required unique clustered index, and understand the associated write cost.
Read articleUse DELETE target_alias FROM to remove matched rows, preview the selection and verify a transaction rollback with disposable data.
Read article
Use DATEPART for numeric components, CAST for date/time values and half-open ranges to filter complete days accurately.
Read articleUse a subquery for membership and a correlated EXISTS for presence, with an explicit treatment of NOT IN and nulls.
Read article
Escape percent, underscore, bracket and the chosen escape character, while keeping SQL parameterization separate from pattern escaping.
Read articleEnforce required values, uniqueness and a row-level rule with SQL Server syntax, checking existing data before changing the schema.
Read article
Showing 1–20 of 24 articles