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
SQL Server execution plan.

SQL SERVER – 2008 – Find If Index is Being Used in Database

October 3, 2008
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts

How do you find if an index is being used in your database? My quick script checks sys.dm_db_index_usage_stats, so you can drop unused indexes safely.

Read More
A set of architect's drawings pinned flat on a drawing board with a scale rule laid across them, the drawn lines clear and no lettering anywhere.

What Is a Database Schema in SQL Server?

October 3, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, Developer, SQL Server

A database schema is a namespace inside a database. What dbo really is, why two tables can carry the same name, how a schema makes permissions something you set once, and why naming it in your code saves you from odd bugs.

Read More
A ring of brass keys on a hook in a corridor of wooden doors, one door ajar with light spilling out

Exploring the System Catalog With Queries

October 2, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Index, SQL Server, SQL System Table

Exploring the system catalog with queries reveals SQL Server objects, columns, indexes, and dependencies without relying on stale diagrams.

Read More
Gouache painting: a second towel lies loose beside it

DATETIMEOFFSETFROMPARTS: Build an Explicit Offset

October 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

DATETIMEOFFSETFROMPARTS constructs a local clock with an explicit offset. Keep both component signs consistent and validate the complete input.

Read More
A rich painting pairs handmade blue, ochre and sage tiles arranged in horizontal rows and vertical columns.

PIVOT and UNPIVOT: Aggregation, NULLs and Cross-Tab Queries

October 1, 2008
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Group By, SQL Server

PIVOT and UNPIVOT reshape SQL Server data. See a tested example, disappearing NULLs, aggregation and fixed cross-tab columns.

Read More
A figure closes red storm shutters on seaside cottage windows facing an approaching storm.

Responding to a SQL Server Security Bulletin

September 30, 2008
Pinal Dave
SQL Tips and Tricks
Cumulative Update, DBA, SQL Patch, SQL Server, SQL Server Security

A SQL Server Security Bulletin should trigger exposure checks, ordered patching, verified recovery, and a clear management update.

Read More
Water poured from a jug overflows a small espresso cup into its saucer.

Computed Column Data Types: Why the Result Type Surprises You

September 29, 2008
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Column, SQL Datatype, SQL Error Messages

Your table accepts every insert, then the report dies with an overflow error. Here is why the type is inherited and the cast that fixes it.

Read More
Previous 1 … 735 736 737 738 739 740 741 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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