This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A barn with a high open hayloft door, one ladder in plain view and two more half hidden around the side.

Auditing Who Has sysadmin

January 16, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Login, SQL Server Security

Audit who has sysadmin in SQL Server, including direct members and Windows groups, then investigate nested access and forgotten logins.

Read More
Four open wooden toolboxes side by side, each holding a different kind of tool.

SQL SERVER – What is – DML, DDL, DCL and TCL – Introduction and Examples

January 15, 2008
Pinal Dave
SQL Tips and Tricks
Database

What are DML, DDL, DCL and TCL? A short introduction to the four groups of SQL commands, with examples like SELECT, CREATE, GRANT and COMMIT.

Read More
Two ivory trays hold separate groups of small blue and cream ceramic dishes.

Conditional COUNT: ELSE 0 Counts Nonmatching Rows

January 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

Conditional COUNT includes zero when CASE returns it. I compare an omitted ELSE with a zero branch before aggregating. A no-match group and an empty input expose the difference from SUM.

Read More
SQL SERVER - 2005 - Change Compatibility Level - T-SQL Procedure

SQL SERVER – 2005 – Change Compatibility Level – T-SQL Procedure

January 12, 2008
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts

The safe way to change compatibility level in SQL Server 2005: single user mode, sp_dbcmptlevel, then multi user again, and how to check it.

Read More
A gouache cabinet shows usable space reclaimed inside an unchanged drawer, with removed dividers set aside.

SQL SERVER – Reclaim Space After Dropping Variable – Length Columns Using DBCC CLEANTABLE

January 11, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server DBCC, SQL System Table

DBCC CLEANTABLE can reclaim selected space left after dropping variable-length columns. I distinguish that table operation from shrinking a database file.

Read More
Matching enamel chips clipped in pairs, with a similar pair kept apart and linked by a loose thread.

Matching Two Customer Lists When Names and Emails Are Messy

January 8, 2008
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, Duplicate Records, SQL Joins, SQL String, Temp Table

Clean the text, climb from safe rules to fuzzy ones, and keep one best answer per subscriber. A ladder of joins you can paste into SSMS today.

Read More
Gouache painting: two lengths of smooth cream rope lie on a polished wooden floor: one forms a closed oval, the other a closed figure eight that crosses itself once in the middle, where a small vermilion bead sits

geometry STIsClosed and STIsSimple: Ask Both Questions

January 6, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STIsClosed does not establish simplicity. These three complete line descriptions compare endpoint closure with self-intersection.

Read More
Previous 1 … 520 521 522 523 524 525 526 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com