Hi Friends
Friday, July 13, 2012
Search column name in tables in SQL Database
select
sc
.
name
as
col_name
,
so
.
name
as
table_name
from
syscolumns sc
inner
join
sysobjects so
on
so
.
id
=
sc
.
id
where
sc
.
name
like
'column_name'
and
so
.
xtype
=
'U'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment