Groups | Blog | Home
all groups > sql server programming > april 2005 >

sql server programming : find fields


js
4/19/2005 10:29:58 PM
hi, how to find the fields have "&abc" as the caption in the database?
thanks...


Hari Prasad
4/19/2005 11:29:06 PM
Hi,

Select TABLE_NAME,COLUMN_NAME from FORMATION_SCHEMA.COLUMNS where
COLUMN_NAME like '%ABC%'

You can also query system table SYSCOLUMNS

Thanks
Hari
SQL Server MVP


[quoted text, click to view]


[quoted text, click to view]

Aaron [SQL Server MVP]
4/19/2005 11:34:33 PM
Do you mean the extended property, description?
http://www.aspfaq.com/2244

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.

[quoted text, click to view]

js
4/19/2005 11:51:19 PM
Thanks Aaron,
I want fo find what fields have the "abc" in what tables as the field
captions.
Can I use a query to get them?

[quoted text, click to view]

Aaron [SQL Server MVP]
4/20/2005 12:45:45 AM
[quoted text, click to view]

I don't know what you mean by "field captions"... there are no fields and
there are no specific things called captions. There are columns which have
a name and *can* have a description. Can you please be more specific about
what you are looking for.

js
4/20/2005 9:14:32 AM
That's it. Thanks...

[quoted text, click to view]

AddThis Social Bookmark Button