{"id":7047,"date":"2023-09-13T00:00:00","date_gmt":"2023-09-13T04:00:00","guid":{"rendered":"https:\/\/www.sisense.com\/sql-cheat-sheet-retrieving-column-description-sql-server\/"},"modified":"2024-11-29T07:08:57","modified_gmt":"2024-11-29T12:08:57","slug":"sql-cheat-sheet-retrieving-column-description-sql-server","status":"publish","type":"post","link":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/","title":{"rendered":"SQL cheat sheet: Retrieving column description in SQL server"},"content":{"rendered":"<ul class=\"anchorlinks wp-block-list\">\n<li><a href=\"#about-sys-tables\">About sys.tables<\/a><\/li>\n<li><a href=\"#about-sys-columns\">About sys.columns<\/a><\/li>\n<li><a href=\"#about-sys-types\">About sys.types<\/a><\/li>\n<\/ul>\n<p>In SQL Server, details regarding a specific table column (e.g., column name, column id, column data type, column constraints) can be retrieved by joining system tables such as sys.tables, sys.columns, and sys.types.<\/p>\n<h3>Query 1: Fetching tables and object_id<\/h3>\n<h2 id=\"about-sys-tables\">About sys.tables<\/h2>\n<p>sys.tables is a system table and is used for maintaining information on tables in a database. For every table added to the database, a record is created in the sys.tables table. There is only one record for each table and it contains information such as table name, object id of table, created date, modified date, etc. Object ID is unique and we will use it to join this table with other system tables (sys.columns) in order to fetch column details.<\/p>\n<p>The following query can be used to fetch the object_id field of all the tables in a database:<\/p>\n<p><code>Select name AS TableName, object_id AS ObjectID<br \/>\nFrom sys.tables<br \/>\nFrom sys.tables<br \/>\n\u2013\u2013 where name = ''<br \/>\n\u2013\u2013 Uncomment above line and add <\/code><\/p>\n<p>to fetch details for particular tableThe result will be look something like this:<\/p>\n<div class=\"col-xs-12 col-sm-3\">\n<h3 style=\"font-size: 16px; font-weight: bold; margin-bottom: 0; line-height: 30px;\">TableName<\/h3>\n<p>InstrumentAudit<br \/>\nInstrumentMerge<br \/>\nInstrumentMerge_MinDates<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-3 col-sm-offset-1\">\n<h3>ObjectID<\/h3>\n<p>375724441<br \/>\n379864420<br \/>\n395864477<\/p>\n<\/div>\n<h3>Query 2: Fetching Columns<\/h3>\n<p>The next step is to fetch columns for these tables. This can be done by joining sys.tables with sys.columns based on object_id for the database tables.<\/p>\n<h2>About sys.columns<\/h2>\n<p>sys.columns is a system table and is used for maintaining information on columns in a database. For every column added in a database, a record is created in the sys.columns table. There is only one record for each column and it contains the following information:<\/p>\n<ul>\n<li><b>Name<\/b>: The name of the column. This is unique within the table object.<\/li>\n<li><b>Object_id<\/b>: object_id is unique identifier for the table in which the column exists. We will use this column to join sys.columns with sys.tables in order to fetch columns in different tables.<\/li>\n<li><b>Column_id<\/b>: ID of the column. This is unique within the table object.\/li&gt;<\/li>\n<li><b>user_type_id<\/b>: System code for column data type<\/li>\n<li><b>max_length<\/b>: Maximum length (in bytes) of the column.<\/li>\n<li><b>is_nullable<\/b>: 1 if column is nullable.<\/li>\n<\/ul>\n<p>There are additional columns in this table, but for our purposes, the above-stated columns will suffice.The following query can be used to fetch column details (for their corresponding tables) and their data type id by joining sys.columns and sys.tables according to the object_id column:<code>SELECT TAB.name AS TableName, TAB.object_id AS ObjectID, COL.name AS ColumnName, COL.user_type_id AS DataTypeID<br \/>\nFrom sys.columns COL<br \/>\nINNER JOIN sys.tables TAB<br \/>\nOn COL.object_id = TAB.object_id<br \/>\n-- where TAB.name = ''<br \/>\n-- Uncomment above line and add <\/code>to fetch details for particular table&#8211; where COL.name = &#8221;&#8211; Uncomment above line and add to fetch details for particular column namesThe result should look like this:<\/p>\n<div class=\"col-xs-12 col-sm-4\">\n<h3>TableName<\/h3>\n<p>InstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentMerge<br \/>\nInstrumentMerge<br \/>\nInstrumentMerge_MinDates<br \/>\nInstrumentMerge_MinDates<br \/>\nInstrumentMerge_MinDates<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>ObjectID<\/h3>\n<p>375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n379864420<br \/>\n379864420<br \/>\n395864477<br \/>\n395864477<br \/>\n395864477<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>ColumnName<\/h3>\n<p>AuditDate<br \/>\nAuditID<br \/>\nValidFrom<br \/>\nValidTo<br \/>\nID<br \/>\nName<br \/>\nType<br \/>\nDescription<br \/>\nCreateDate<br \/>\nInstrumentOrigin<br \/>\nAuditType<br \/>\nReutersID<br \/>\nPairBBID<br \/>\nBBID<br \/>\nMinBBDate<br \/>\nReutersID<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>DataTypeID<\/h3>\n<p>61<br \/>\n56<br \/>\n61<br \/>\n61<br \/>\n56<br \/>\n167<br \/>\n56<br \/>\n167<br \/>\n61<br \/>\n56<br \/>\n175<br \/>\n56<br \/>\n56<br \/>\n56<br \/>\n61<br \/>\n56<br \/>\n\u2026<\/p>\n<\/div>\n<h3>Query 3: Add Data Type Name<\/h3>\n<p>The next step is to replace Data Type ID with Data Type Name. This can be done by joining the above query with sys.types table.<\/p>\n<h2>About sys.types<\/h2>\n<p>sys.types is a system table and is used for maintaining information on column data types in a database. This table contains one row for each data type and includes the following information:<\/p>\n<ul>\n<li><b>Name<\/b>: The name of the column. This is unique within the table object.<\/li>\n<li><b>user_type_id<\/b>: System code for column data type. This is unique for this table and is used for joining with sys.columns table.<\/li>\n<li><b>max_length<\/b>: Maximum length (in bytes) of the column.<\/li>\n<\/ul>\n<p>As before, there are more columns in this table, but for our purposes the above stated columns will suffice.The following query can be used to replace Data Type ID with Data Type Name by joining sys.types with sys.columns on user_type_id:<code>SELECT TAB.name AS TableName, TAB.object_id AS ObjectID, COL.name AS ColumnName, TYP.name AS DataTypeName, TYP.max_length AS MaxLength<br \/>\nFrom sys.columns COL<br \/>\nINNER JOIN sys.tables TAB<br \/>\nOn COL.object_id = TAB.object_id<br \/>\nINNER JOIN sys.types TYP<br \/>\nON TYP.user_type_id = COL.user_type_id<\/code><code><br \/>\n<\/code><code>-- where TAB.name = ''<br \/>\n-- Uncomment above line and add <\/code>to fetch details for particular table&#8211; where COL.name = &#8221;&#8211; Uncomment above line and add to fetch details for particular column names&#8211; where TYP.name = &#8221;&#8211; Uncomment above line and add to fetch details for particular Data TypeThe result will be the following table, containing the column descriptions we were looking for:<\/p>\n<div class=\"col-xs-12 col-sm-4\">\n<h3>TableName<\/h3>\n<p>InstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentAudit<br \/>\nInstrumentMerge<br \/>\nInstrumentMerge<br \/>\nInstrumentMerge_MinDates<br \/>\nInstrumentMerge_MinDates<br \/>\nInstrumentMerge_MinDates<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>ObjectID<\/h3>\n<p>375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n375724441<br \/>\n379864420<br \/>\n379864420<br \/>\n395864477<br \/>\n395864477<br \/>\n395864477<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>ColumnName<\/h3>\n<p>AuditDate<br \/>\nAuditID<br \/>\nValidFrom<br \/>\nValidTo<br \/>\nID<br \/>\nName<br \/>\nType<br \/>\nDescription<br \/>\nCreateDate<br \/>\nInstrumentOrigin<br \/>\nAuditType<br \/>\nReutersID<br \/>\nPairBBID<br \/>\nBBID<br \/>\nMinBBDate<br \/>\nReutersID<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>DataTypeName<\/h3>\n<p>datetime<br \/>\nInt<br \/>\ndatetime<br \/>\ndatetime<br \/>\nInt<br \/>\nvarchar<br \/>\nInt<br \/>\nvarchar<br \/>\ndatetime<br \/>\nint<br \/>\nchar<br \/>\nint<br \/>\nint<br \/>\nint<br \/>\ndatetime<br \/>\nint<br \/>\n\u2026<\/p>\n<\/div>\n<div class=\"col-xs-12 col-sm-2\">\n<h3>MaxLength<\/h3>\n<p>8<br \/>\n4<br \/>\n8<br \/>\n8<br \/>\n4<br \/>\n8000<br \/>\n4<br \/>\n8000<br \/>\n8<br \/>\n4<br \/>\n8000<br \/>\n4<br \/>\n4<br \/>\n4<br \/>\n8<br \/>\n4<br \/>\n\u2026<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>About sys.tables About sys.columns About sys.types In SQL Server, details regarding a specific table column (e.g., column name, column id, column data type, column constraints) can be retrieved by joining system tables such as sys.tables, sys.columns, and sys.types. Query 1:&#8230;<\/p>\n","protected":false},"author":4,"featured_media":7234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[44],"tags":[462,589,483],"application":[46],"buyer-role":[56,47],"buyer-stage":[87,109,62],"department":[],"industry":[],"topic":[73],"class_list":["post-7047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-talk","tag-how-tos","tag-mysql","tag-sql","application-bi-analytics-teams","buyer-role-bi-analyst","buyer-role-it-rd","buyer-stage-awareness","buyer-stage-evaluation-decision","buyer-stage-research-consideration","topic-sql-superstar"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.5 (Yoast SEO v23.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Server Cheat Sheet: Retrieve Column Descriptions | Sisense<\/title>\n<meta name=\"description\" content=\"Looking to access column description data in Microsoft SQL Server? Check out three simple SQL queries you can use to find and retrieve the data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL cheat sheet: Retrieving column description in SQL server\" \/>\n<meta property=\"og:description\" content=\"About sys.tables About sys.columns About sys.types In SQL Server, details regarding a specific table column (e.g., column name, column id, column data\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Sisense\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-13T04:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-29T12:08:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/SQL_CheatSheet_1200x628.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"639\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sisense Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/header-logo.png\" \/>\n<meta name=\"twitter:creator\" content=\"@sisense\" \/>\n<meta name=\"twitter:site\" content=\"@sisense\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sisense Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\"},\"author\":{\"name\":\"Sisense Team\",\"@id\":\"https:\/\/www.sisense.com\/#\/schema\/person\/e70aa3a7bbc471e4b7b8c5a7d2b36115\"},\"headline\":\"SQL cheat sheet: Retrieving column description in SQL server\",\"datePublished\":\"2023-09-13T04:00:00+00:00\",\"dateModified\":\"2024-11-29T12:08:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\"},\"wordCount\":733,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.sisense.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg\",\"keywords\":[\"how to's\",\"MySQL\",\"SQL\"],\"articleSection\":[\"Tech Talk\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\",\"url\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\",\"name\":\"SQL Server Cheat Sheet: Retrieve Column Descriptions | Sisense\",\"isPartOf\":{\"@id\":\"https:\/\/www.sisense.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg\",\"datePublished\":\"2023-09-13T04:00:00+00:00\",\"dateModified\":\"2024-11-29T12:08:57+00:00\",\"description\":\"Looking to access column description data in Microsoft SQL Server? Check out three simple SQL queries you can use to find and retrieve the data.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage\",\"url\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg\",\"contentUrl\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg\",\"width\":1200,\"height\":800,\"caption\":\"SQL CheatSheet 1200x800\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sisense.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL cheat sheet: Retrieving column description in SQL server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sisense.com\/#website\",\"url\":\"https:\/\/www.sisense.com\/\",\"name\":\"Sisense\",\"description\":\"Build your business with anywhere-analytics\",\"publisher\":{\"@id\":\"https:\/\/www.sisense.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sisense.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sisense.com\/#organization\",\"name\":\"Sisense\",\"url\":\"https:\/\/www.sisense.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sisense.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/sisense-yoast-og.jpg\",\"contentUrl\":\"https:\/\/cdn.sisense.com\/wp-content\/uploads\/sisense-yoast-og.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Sisense\"},\"image\":{\"@id\":\"https:\/\/www.sisense.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/sisense\",\"https:\/\/www.linkedin.com\/company\/sisense\",\"https:\/\/github.com\/sisense\/\"],\"description\":\"Sisense accelerates product innovation through AI\/ML capabilities. Our global analytics platform lets customers drive better, faster decisions for their business and end users.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sisense.com\/#\/schema\/person\/e70aa3a7bbc471e4b7b8c5a7d2b36115\",\"name\":\"Sisense Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sisense.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/213e415f47bc3c7f0155a0755b1cea8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/213e415f47bc3c7f0155a0755b1cea8c?s=96&d=mm&r=g\",\"caption\":\"Sisense Team\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"SQL Server Cheat Sheet: Retrieve Column Descriptions | Sisense","description":"Looking to access column description data in Microsoft SQL Server? Check out three simple SQL queries you can use to find and retrieve the data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"SQL cheat sheet: Retrieving column description in SQL server","og_description":"About sys.tables About sys.columns About sys.types In SQL Server, details regarding a specific table column (e.g., column name, column id, column data","og_url":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/","og_site_name":"Sisense","article_published_time":"2023-09-13T04:00:00+00:00","article_modified_time":"2024-11-29T12:08:57+00:00","og_image":[{"width":1200,"height":639,"url":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/SQL_CheatSheet_1200x628.jpg","type":"image\/jpeg"}],"author":"Sisense Team","twitter_card":"summary_large_image","twitter_image":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/header-logo.png","twitter_creator":"@sisense","twitter_site":"@sisense","twitter_misc":{"Written by":"Sisense Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#article","isPartOf":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/"},"author":{"name":"Sisense Team","@id":"https:\/\/www.sisense.com\/#\/schema\/person\/e70aa3a7bbc471e4b7b8c5a7d2b36115"},"headline":"SQL cheat sheet: Retrieving column description in SQL server","datePublished":"2023-09-13T04:00:00+00:00","dateModified":"2024-11-29T12:08:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/"},"wordCount":733,"commentCount":0,"publisher":{"@id":"https:\/\/www.sisense.com\/#organization"},"image":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg","keywords":["how to's","MySQL","SQL"],"articleSection":["Tech Talk"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/","url":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/","name":"SQL Server Cheat Sheet: Retrieve Column Descriptions | Sisense","isPartOf":{"@id":"https:\/\/www.sisense.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg","datePublished":"2023-09-13T04:00:00+00:00","dateModified":"2024-11-29T12:08:57+00:00","description":"Looking to access column description data in Microsoft SQL Server? Check out three simple SQL queries you can use to find and retrieve the data.","breadcrumb":{"@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#primaryimage","url":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg","contentUrl":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/2018\/05\/10161852\/SQL_CheatSheet_1200x800.jpg","width":1200,"height":800,"caption":"SQL CheatSheet 1200x800"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sisense.com\/blog\/sql-cheat-sheet-retrieving-column-description-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sisense.com\/"},{"@type":"ListItem","position":2,"name":"SQL cheat sheet: Retrieving column description in SQL server"}]},{"@type":"WebSite","@id":"https:\/\/www.sisense.com\/#website","url":"https:\/\/www.sisense.com\/","name":"Sisense","description":"Build your business with anywhere-analytics","publisher":{"@id":"https:\/\/www.sisense.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sisense.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.sisense.com\/#organization","name":"Sisense","url":"https:\/\/www.sisense.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sisense.com\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/sisense-yoast-og.jpg","contentUrl":"https:\/\/cdn.sisense.com\/wp-content\/uploads\/sisense-yoast-og.jpg","width":1200,"height":600,"caption":"Sisense"},"image":{"@id":"https:\/\/www.sisense.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/sisense","https:\/\/www.linkedin.com\/company\/sisense","https:\/\/github.com\/sisense\/"],"description":"Sisense accelerates product innovation through AI\/ML capabilities. Our global analytics platform lets customers drive better, faster decisions for their business and end users."},{"@type":"Person","@id":"https:\/\/www.sisense.com\/#\/schema\/person\/e70aa3a7bbc471e4b7b8c5a7d2b36115","name":"Sisense Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sisense.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/213e415f47bc3c7f0155a0755b1cea8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/213e415f47bc3c7f0155a0755b1cea8c?s=96&d=mm&r=g","caption":"Sisense Team"}}]}},"_links":{"self":[{"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/posts\/7047"}],"collection":[{"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/comments?post=7047"}],"version-history":[{"count":2,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/posts\/7047\/revisions"}],"predecessor-version":[{"id":23671,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/posts\/7047\/revisions\/23671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/media\/7234"}],"wp:attachment":[{"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/media?parent=7047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/categories?post=7047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/tags?post=7047"},{"taxonomy":"application","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/application?post=7047"},{"taxonomy":"buyer-role","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/buyer-role?post=7047"},{"taxonomy":"buyer-stage","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/buyer-stage?post=7047"},{"taxonomy":"department","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/department?post=7047"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/industry?post=7047"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.sisense.com\/wp-json\/wp\/v2\/topic?post=7047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}