Skip to content

SQLpathy

Share…Learn…Grow !!!

  • Mind Maps
  • Security
  • About

Category: Documentation

Extended Properties: An Introduction

On November 14, 2016November 14, 2016 By sqlpathyIn Documentation, Extended Properties, SQL ServerLeave a comment

What are Extended Properties?

It is a feature which helps in storing metadata of SQL Server objects in database. It allows you to add descriptive text, instructions, formatting rules to display a column value and input masks. Extended Properties are created as user-defined name/value pairs; managed and stored internally in the database which helps in reading and evaluating the object information the same way. You can have multiple extended properties for a single object.

How are they defined?

Extended property is defined as a user-defined name/value pair. Name property is of sysname type whereas Value property is of sql_variant type (contains up to 7500 bytes of data). The classification of the objects is done at three levels: level 0, level 1 and level 2

Level 0: Highest Level; objects that are contained at database scope.

Level 1: Objects in schema or user scope

Level 2: Objects at this level are contained by objects are level 1

For example, if we specify table column as “Schema.Table.Column”, Schema is Level 0 object, Table is Level 1 object and Column is Level 2 object. It’s important to note that while referring to child levels, we need to specify parent levels that contain the child objects. For instance, if we are adding metadata for column (at level 2), we need to specify table name (level 1) and schema name (level 0).

Which objects have extended property support?

Here is the list of objects, which have extended property support along with their correspoinding levels.

extended_event_object_levels

Extended properties cannot be defined for following objects:

  • Objects outside database scope
  • Objects not listed in above list (pretty obvious).
  • Unnamed objects such as partition functions.
  • System-defined objects.

This was an introductory blog for Extended Properties. In upcoming blogs, I will write about the usability aspect along with relevant examples. Stay tuned….!

Recent Posts

  • What is Code Signing?
  • Merry Christmas!!!
  • Mind Map: Database Engine

SQLPathy Efficacy

  • 82,300 people find it helpful!

Enter your email address to follow SQLPathy and receive notifications of new posts by email.

Join 25 other subscribers

Calendar

January 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Apr    

SQLPathy@Twitter

Tweets by sqlpathy

Blogs I Follow

  • NYC
  • bhaktishashtri
  • SQL with Manoj
  • sqlsunday.com
  • SQL Studies
  • Databases - Infrastructure - Security
  • Code Wala
  • Paul Hernandez playing with Data
  • SQL Authority with Pinal Dave

Categories

  • DDL inside transaction
  • Documentation
  • Extended Properties
  • Legacy Applications
  • Logon Trigger
  • Meta-Data
  • Mind Map
  • Performance Tuning
  • Replication
    • Transactional Replication
  • SQL Server
  • SQL Server 2012
    • Database Upgrade
  • SQL Server 2014
  • SQL Server 2019
  • SQL Server agent
  • SQL Server Job
  • SQL Server Security
  • T-SQL
    • lock
    • tablockx
  • Transaction
  • Truncate
  • Uncategorized

Top Posts & Pages

  • What is Code Signing?
  • Merry Christmas!!!
  • Mind Map: Database Engine

Social Profiles

Follow Us

Blog at WordPress.com.
NYC

NYC

bhaktishashtri

SQL with Manoj

SQL Server, SQL Queries, DB concepts, Azure, Spark SQL, Tips & Tricks with >500 articles !!!

sqlsunday.com

T-SQL tips and tricks, best practices and query plans from the field.

SQL Studies

 Live, Learn, Share

Databases - Infrastructure - Security

By K. Brian Kelley

Code Wala

Designing and coding

Paul Hernandez playing with Data

Business Intelligence, Data Analysis, Advanced Analytics and more ...

SQL Authority with Pinal Dave

SQL Server Performance Tuning Expert

  • Subscribe Subscribed
    • SQLpathy
    • Join 25 other subscribers
    • Already have a WordPress.com account? Log in now.
  • Privacy
    • SQLpathy
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started