Couldn't find this anywhere in google.
I want a list of all database column names for a specific table/view
from across database.
I tried this...
-----------------------------------------------------
Select *
From Information_Sch ema.Columns
-----------------------------------------------------
I also tried this...
-----------------------------------------------------
select syscolumns.name , sysobjects.name , * from syscolumns, sysobjects
where
sysobjects.id = syscolumns.id
and (sysobjects.xty pe='U' or sysobjects.xtyp e='S')
-----------------------------------------------------
These queries return information about the CURRENT database.
But, if I want to do it ACROSS database or across servers.. how can I
do this?
I will express my gratitude to everyone who is kind enough to answer
this question. (I've been stuck with this problem for a while now.)
Thanks!
OhMyGaw!