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
Tongs select individual fruit while a shovel would scoop everything

How to STOP the Usage of SELECT * For Views? – Interview Question of the Week #193

September 30, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Error Messages, SQL Scripts, SQL Server, SQL View

How do you stop people from using SELECT * in views? A slow query in a Health Check came from SELECT * over a wide view, so here is one way to prevent it.

Read More
Two pies cooling on a board, one with a solid crust and one with a lattice showing the filling

Inline Table-Valued Functions: Parameterized Views That Stay Fast

September 22, 2018
Pinal Dave
SQL Performance
Execution Plan, SQL Function, SQL Performance, SQL Server, SQL View

Compare inline table-valued functions with scalar functions, preserve customer results, and inspect plans before claiming performance gains.

Read More
Distinct source relief blocks sit beside a differently arranged finished relief and its stencil.

SQL SERVER – View Column Dependencies and Output Columns

July 28, 2017
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL View

To Identify Columns used in a view, I distinguish references from returned output columns. Those lists answer different questions.

Read More
A slipcover that stops short on a lengthened sofa, the new red seat left bare

Stale Views: Why SELECT * Breaks After ALTER TABLE

September 5, 2014
Pinal Dave
SQL Tips and Tricks
Schema, SQL Coding Standards, SQL Server, SQL View

Reproduce stale views after SELECT star and ALTER TABLE, find candidate definitions, refresh with sp_refreshview, and prevent the pattern.

Read More
SQL SERVER - CTE can be Updated

SQL SERVER – CTE can be Updated

May 19, 2014
Pinal Dave
SQL Tips and Tricks
CTE, SQL Scripts, SQL View

Users often confuse a CTE with a temp table, but a CTE works like a view, and a CTE can be updated just like one. Matthew Spieth’s tip, with my notes.

Read More
A shed shelf of clay pots, several turned upside down among growing plants.

Soft Delete With an IsDeleted Column: Indexes, Views and Keys

September 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Server, SQL View

Design soft delete with an IsDeleted flag, filtered unique keys and indexes, a live-row view, and a measured archive process.

Read More
A plumber's hands fitting a brass valve into a central copper pipe, with branch pipes running off to different rooms.

Renaming a Column Safely Everywhere It Is Used

October 1, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Column, SQL Server, SQL Stored Procedure, SQL View

Renaming a column safely requires finding SQL and application references, applying sp_rename, refreshing modules, and testing every consumer.

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

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