What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 16858 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > How To Get Description Value for all Col ...

How To Get Description Value for all Column in Table using SQL Command?

Interview question and answer by: Lakhangarg | Posted on: 10/27/2009 | Category: SQL Server Interview questions | Views: 1031 |


Answer:

To Get Description of Columns we need to use system function sys.fn_listextendedproperty.

Command To Get Description Data for all Columns:

SELECT * FROM fn_listextendedproperty(NULL, 'SCHEMA',
'dbo', 'TABLE', 'YourTable Name Here', 'COLUMN', NULL)


Thanks & Regards
Lakhan Pal Garg

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Lakhangarg

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 1:05:23 PM