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….!

Advertisement

Recent Posts

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

SQLPathy Efficacy

  • 81,736 people find it helpful!

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

Join 37 other subscribers

Calendar

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Apr    

SQLPathy@Twitter

  • “Code Signing” is a method which helps validate both authenticity and Integrity! A signed code is authentic as it v… twitter.com/i/web/status/1… 3 years ago
  • Merry Christmas!!! sqlpathy.com/2018/12/26/mer… https://t.co/tbFUfJMFHd 4 years ago
Follow @sqlpathy

Blogs I Follow

  • 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

Create a free website or blog at WordPress.com.
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

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • SQLpathy
    • Join 25 other followers
    • Already have a WordPress.com account? Log in now.
    • SQLpathy
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...