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 narrowboat rising in a canal lock, one of three locks stepping up a green hillside.

Patching an Availability Group in the Right Order

October 4, 2008
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Cumulative Update, SQL High Availability, SQL Patch, SQL Server

Patching an Availability Group safely means updating secondaries first, checking synchronization, failing over, and updating the old primary.

Read More
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
SQL SERVER - Renaming SP is Not Good Idea - Renaming Stored Procedure Does Not Update sys.procedures

SQL SERVER – Renaming SP is Not Good Idea – Renaming Stored Procedure Does Not Update sys.procedures

September 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table

Renaming Stored Procedure objects with sp_rename looks fine, but the stored definition keeps the old name, as sp_helptext shows. A quick demo on AdventureWorks.

Read More
SQL SERVER - Puzzle - Computed Columns Datatype Explanation

SQL SERVER – Puzzle – Computed Columns Datatype Explanation

September 27, 2008
Pinal Dave
SQL Puzzle
MVP, SQL Scripts

Jacob Sebastian explains that SQL Server casts to the data type with the highest precedence. That leads to my puzzle on computed columns datatype.

Read More
Previous 1 … 514 515 516 517 518 519 520 … 589 Next
  • Books
  • Testimonials
  • Privacy Policy

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