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 wooden door with three brass bells hanging on cords, each with a small red tassel.

Types of Triggers Quiz: Which Trigger Can Fire on a View?

January 3, 2012
Pinal Dave
SQL Puzzle
SQL Error Messages, SQL Table Operation, SQL Trigger, SQL View

This Types of Triggers Quiz asks which trigger you can put on a view that joins two tables. The answer is INSTEAD OF INSERT. A tested script shows the error an AFTER trigger gives and how the working trigger splits one insert into two tables.

Read More
A jar of ground coffee with a red scoop, the hand grinder unused behind it

Indexed Views: When the Faster Reads Are Worth It

September 26, 2011
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server, SQL View

Evaluate indexed views by building a sales summary, comparing read savings with write maintenance, and using NOEXPAND where required.

Read More
A brass tuning fork on a piano lid, with a violin, a cello and a guitar leaning on chairs nearby in a rehearsal room.

Tabular Models for the SQL Developer

June 25, 2011
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Analysis Services, SQL Server, SQL View

Tabular models for the SQL developer add relationships, measures, security, and reusable semantics above SQL tables; learn when a view is enough.

Read More
A wooden abacus on a market stall counter, a hand sliding one red bead across for the day's final sale.

Summary Tables: Keeping Pre-Aggregated Totals Current

June 24, 2011
Pinal Dave
SQL Tips and Tricks
Data Warehousing, SQL Server, SQL Server Agent, SQL Trigger, SQL View

Keep summary tables current with changed-day rebuilds, handle late arrivals and deletes, and reconcile stored totals against detail.

Read More
Hands tipping a large milk churn over a small teacup, milk flooding the table, a tiny cream jug unused

SELECT * in Production Code: The Hidden Costs

April 18, 2011
Pinal Dave
SQL Performance
SQL Coding Standards, SQL Index, SQL Server, SQL View

See the real costs of SELECT * in production code: lost covering indexes, lookups, stale view metadata, broken inserts and wider results.

Read More
SQL SERVER - Get File Statistics Using fn_virtualfilestats

SQL SERVER – Get File Statistics Using fn_virtualfilestats

January 8, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Statistics, SQL View

Which MDF or NDF file is the busiest? This query uses fn_virtualfilestats to show reads, writes, IO stalls and size for every database file.

Read More
SQL Server query window displaying cost calculations.

SQL SERVER – Index Created on View not Used Often – Observation of the View – Part 2

December 23, 2010
Pinal Dave
SQL Performance
SQL Scripts, SQL View

A reader asked what happens when we create an index on the base table as well as on the view. Part 2 of my observation of the view looks at both cases.

Read More
Previous 1 2 3 4 5 6 7 8 Next
  • Books
  • Testimonials
  • Privacy Policy

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