Accessing Extended Properties in a Web-Based Application

Downloads
23326.zip

I'm building a Web-based SQL Server administration application to show views, tables, and columns. I use the syscolumns and sysobjects system tables to retrieve the data. Can I use a view to access the Column Description extended property for a column that a user has added?

You can't access extended properties from the information_schema views because extended properties aren't part of the ANSI standard for databases and because the information_schema views show you ANSI-standard objects. However, in SQL Server 2000, you can use the code sample that Listing 2 shows to retrieve them. Note that SQL Server 2000 stores the information about extended properties in the sysproperties system table, but future releases might not store the properties in the same system table.

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottOur Experts will show you:
• Common SQL Server
Problems
• Best Practices for T-SQL
• SQL Server Integration
Services
• Database Development

Come See Michael Otey & Tim Ford in Person!

Early Registration Now Open

From the Blogs
May 21, 2013
blog

A Common Misconception about MAXDOP

Out of the box, SQL Server is (and has been) able to take advantage of multiple processors/cores without any effort on behalf of administrators....More
May 9, 2013
blog

My ISO 8601-Compliant Signature 2

My family recently just "officially" announced that we're in the process of adopting a child from South Africa. We're quite excited, of course, but there's a ton of paperwork to do—along with the need for gobs of signatures....More
May 8, 2013
blog

Use SSIS for ETL from Hadoop

In this blog post, Mark Kromer walks you through using SSIS as a way to use ETL techniques using Microsoft's Hadoop on Windows (HDInsight) as a source using Hive connectors...More
SQL Server Pro Forums

Get answers to questions, share tips, and engage with the SQL Server community in our Forums.