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 butter curler reaches a butter block through one open section of a covered dish

Application Roles: Permissions That Follow the App, Not the User

January 16, 2012
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Application roles sound like a lock only your app can open. This demo shows what the switch really does and why the password is the whole key.

Read More
A plain map spread on a wooden table with a red ribbon marking a new detour route, a brass compass beside it.

Stored Procedure Recompile Quiz: What Forces a New Plan?

January 15, 2012
Pinal Dave
SQL Puzzle
Execution Plan, Parameter Sniffing, Recompile, SQL Stored Procedure

This Stored Procedure Recompile Quiz asks which action makes SQL Server build a new plan for a procedure. The answer is a new index on a table it reads. A tested script uses plan counters to show what reuses the plan and what rebuilds it.

Read More
A sandcastle on a beach half washed away by the sea, and beside it a red bucket of shells that stayed dry.

Table Variables vs Temporary Tables Quiz: Which Survives a Rollback?

January 14, 2012
Pinal Dave
SQL Puzzle
SQL TempDB, SQL Transactions, SQL Variable, Temp Table

This Table Variables vs Temporary Tables Quiz inserts one row into each, then rolls back. The table variable keeps its row and the temporary table loses it. A tested script proves it, and two more scripts show a rollback-proof log and the statistics gap.

Read More
An open suitcase on a bed, one side empty with its straps showing and the other side packed with folded linens under a red strap.

DACPAC vs BACPAC Quiz: Which File Carries Your Data?

January 13, 2012
Pinal Dave
SQL Puzzle
Cloud Computing, Schema, SQL Backup and Restore, SQL Migration

This DACPAC vs BACPAC Quiz asks which file moves a database with its rows to Azure SQL Database. The answer is the BACPAC. A tested script shows what each file describes, and the SqlPackage commands show how to use them.

Read More
A tall wooden bookcase standing against a wall, with a red sanding block on the floor in front of it.

Nonclustered Index Rebuild Quiz: Does a Clustered Rebuild Touch Them?

January 12, 2012
Pinal Dave
SQL Puzzle
Clustered Index, SQL Heap, SQL Index, SQL Statistics

This Nonclustered Index Rebuild Quiz asks what happens to the other indexes when you rebuild the clustered index. The answer is nothing, and a tested script shows it. It also covers the cases where SQL Server does rebuild them.

Read More
A metal sieve over a mixing bowl, flour passing through while a few lumps and a small pebble stay in the mesh.

Data Quality Rules in T-SQL

January 11, 2012
Pinal Dave
SQL Tips and Tricks
Data Observability, ETL, SQL Constraint and Keys, SQL Server

Data quality rules in T-SQL turn nulls, duplicates, invalid dates, and broken references into visible failures before rows reach reports.

Read More
A pantry shelf where an old ceramic jar sits on a red tray beside the new jar that took its place.

OUTPUT Clause Quiz: What Do inserted and deleted Hold?

January 11, 2012
Pinal Dave
SQL Puzzle
Output Clause, SQL Delete, SQL Table Operation, SQL Transactions

This OUTPUT Clause Quiz raises a price from 10 to 12 and asks which two values come back. The answer is 10 and 12, because deleted holds the old row and inserted the new one. A tested script proves it and shows OUTPUT with INSERT, DELETE and an audit table.

Read More
Previous 1 … 552 553 554 555 556 557 558 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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