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
Gouache painting of a finished vermilion vase beside the empty plaster mold of its shape

ALTER SCHEMA TRANSFER: Move a Table to Another Schema

January 28, 2021
Pinal Dave
SQL Tips and Tricks
Schema, SQL Scripts, SQL Server, SQL View

ALTER SCHEMA TRANSFER moves a table to another schema and leaves repairs behind. A demo shows that permissions disappear and views break while the data stays. It also shows a synonym that keeps old queries working.

Read More
Gouache painting of a vase under a glass dome fastened with a vermilion clasp next to an unfinished clay pot

SCHEMABINDING View: What You Can Change in the Table

October 7, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Table Operation, SQL View

A SCHEMABINDING view locks the columns it uses and leaves the other columns of the table free. This post tests which changes SQL Server blocks, shows the messages and lists the bound columns with a query. It also shows how to change a bound column inside one transaction.

Read More
A hammock depends on two firmly connected supporting trees

What is SCHEMABINDING in SQL Server Views? – Interview Question of the Week #245

October 6, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Table Operation, SQL View

SCHEMABINDING keywords prevent tables used in the views to make any such modifications that can affect the view’s definition. 

Read More
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
Previous 1 2 3 4 5 … 8 Next
  • Books
  • Testimonials
  • Privacy Policy

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