473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Getting the column description from SQL Server

Hi,

Does anybody know how to get the column description for a table in SQL
Server 2000?

Thanks.
Nov 20 '05 #1
6 8313
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
Hi,

Does anybody know how to get the column description for a table in SQL
Server 2000?

Thanks.

Nov 20 '05 #2
Hi,

I looked at the sp_columns but unfortunately it doesn't give the
description.
"Zoury" <ya*************@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
Hi,

Does anybody know how to get the column description for a table in SQL
Server 2000?

Thanks.


Nov 20 '05 #3
try sp_help tablename.

Cheers

Dave
"rguti" <te**@test.com> wrote in message
news:#0**************@tk2msftngp13.phx.gbl...
Hi,

I looked at the sp_columns but unfortunately it doesn't give the
description.
"Zoury" <ya*************@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
Hi,

Does anybody know how to get the column description for a table in SQL
Server 2000?

Thanks.



Nov 20 '05 #4
No luck, it's not there
"David Lownds" <da***@dlownds.f2s.com> wrote in message
news:2l************@uni-berlin.de...
try sp_help tablename.

Cheers

Dave
"rguti" <te**@test.com> wrote in message
news:#0**************@tk2msftngp13.phx.gbl...
Hi,

I looked at the sp_columns but unfortunately it doesn't give the
description.
"Zoury" <ya*************@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Does anybody know how to get the column description for a table in SQL > Server 2000?
>
> Thanks.
>
>



Nov 20 '05 #5
select value from ::fn_listextendedproperty ('MS_Description', 'user',
'dbo', 'table', 'MyTable', 'column', 'Column1')
'MS_Description' is the description property of the column that you are
looking for; 'MyTable' is the table name and
'Column1' is the column for which you want the description. Note the special
syntax of this function (two prefixed colons) .
You can lookup the syntax and example of this function in sql server books
online for further details.
"rguti" <te**@test.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I looked at the sp_columns but unfortunately it doesn't give the
description.
"Zoury" <ya*************@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
Hi,

Does anybody know how to get the column description for a table in SQL
Server 2000?

Thanks.



Nov 20 '05 #6
Thanks! That did it.
"Imran Koradia" <no****@microsoft.com> wrote in message
news:uw**************@TK2MSFTNGP11.phx.gbl...
select value from ::fn_listextendedproperty ('MS_Description', 'user',
'dbo', 'table', 'MyTable', 'column', 'Column1')
'MS_Description' is the description property of the column that you are
looking for; 'MyTable' is the table name and
'Column1' is the column for which you want the description. Note the special syntax of this function (two prefixed colons) .
You can lookup the syntax and example of this function in sql server books
online for further details.
"rguti" <te**@test.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I looked at the sp_columns but unfortunately it doesn't give the
description.
"Zoury" <ya*************@hotmail.com> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
Hi!

Look up the sp_columns stored procedure in the T-SQL reference :

ex :
-- in T-SQL
sp_columns 'my_table'

--
Best Regards
Yanick Lefebvre

"rguti" <te**@test.com> a écrit dans le message de
news:uc**************@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Does anybody know how to get the column description for a table in SQL > Server 2000?
>
> Thanks.
>
>



Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff Magouirk | last post by:
I am new to using sqlserver and have been given the task to get the column name, data type and the description from a given table and put this into another table. Can this be done? Thanks in...
9
by: DMAC | last post by:
If i want to split a computed column into two or more columns based on the the length (its a varchar) of the computed column, how often will sql server determine what the computed column is?...
2
by: Todd | last post by:
Hello, I'm curious if anyone knows of a way (if one exists) to tell a form (in Access 2002 VBA) to sort on an unbound column of a combo box on the form. Here's what I want to do: A combo box...
2
by: jballard | last post by:
Hello, I have a database set-up with a form and two subforms in it. I have one of the subforms (replacement parts) set-up where you can pick part numbers from a drop down box and also pick a...
2
by: Yama | last post by:
Hi, How can I make it resizable? For example: <pre> <!-- datagrid Header --> <table class="TableHeader" id="tblHeader" border="1" runat="server">
41
by: pb648174 | last post by:
In a multi-user environment, I would like to get a list of Ids generated, similar to: declare @LastId int select @LastId = Max(Id) From TableMania INSERT INTO TableMania (ColumnA, ColumnB)...
2
by: Charleees | last post by:
Hi all, I have a DataGrid with Template Columns..... There are LAbels,Linkbuttons in the Single Row.. I have to set the Constant Column width for those Template Columns in Grid... Wat...
3
by: William LaMartin | last post by:
I have a gridview (with no properties set) on an aspx page which I populate from an XML file with the code below. The data in the XML file looks like this <description>National Trust for...
3
by: dale.zjc | last post by:
I've got some bizarre behavior going on with my ASP code below. For some strange reason (and I'm a newbie to ASP so it's probably obvious to others) I can't display all the rows of data from the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.