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
Earlier plant stages remain visible beneath the current version on layered vellum

Special Icon on System-Versioned Table in SQL Server 2016 – Interview Question of the Week #101

December 11, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Server, SQL Server Management Studio, SQL System Table, Temporal Table

Expanding tables in WideWorldImporters in SSMS 2016, you see an icon like a watch. It marks a System-Versioned table, also known as a temporal table.

Read More
Magnolia branch showing connected buds and a detached twig below

Building Full Folder Paths From a Parent-Child Table

November 2, 2016
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Your folder table stores only a name and a parent, so the full path has to be walked. I show the query, and how to catch the rows it quietly leaves out.

Read More
A hand holding scissors over one thread of a crocheted lace doily with a red vase resting on it.

What Breaks If I Drop This Column? sys.sql_expression_dependencies

July 19, 2016
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Dependency, SQL Server, SQL System Table

Use sql_expression_dependencies and referencing-entity queries before a column change, then check module text and external callers for gaps.

Read More
Rubber curry comb with hairs in some spaces and empty spaces retained

Counting Partitions per Table and Spotting Empty Ones

May 20, 2016
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

A quick count said 8 partitions, but the table has 4. Here is where the extra rows came from and how to spot empty partitions.

Read More
Compartmented drawers organize different seed pods and pebbles in one specimen cabinet

Interview Question of the Week #054 – Retrieve User Defined Object Details from sys.objects

January 17, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL System Table

A favorite interview script: how to retrieve user defined object details from sys.objects in SQL Server, with the query to run.

Read More
Hairpins with two metal legs forming each single pin

max_length in sys.columns: Bytes, Not Characters

November 17, 2015
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL System Table

Your generated column came out twice as wide as the original. Here is why max_length counts bytes and how to turn it back into a real declaration.

Read More
FK table in foreign keys.

SQL SERVER – What is is_not_trusted in sys.foreign_keys?

January 9, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table

What does the is_not_trusted column in sys.foreign_keys mean? Books Online is not very clear, so I explain it with a simple example using three tables.

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

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