Actually, I like this query better. It's a little more efficient on the Column Name serach. 😀
SELECTST.name as [Table Name], SC.NAME as [Column Name]
FROMsys.tables ST (NOLOCK)
INNER JOIN
sys.columns SC (NOLOCK) ON ST.OBJECT_ID = SC.OBJECT_ID
WHERESC.name LIKE '%NAME%'
ORDER BY ST.name
"Technology is a weird thing. It brings you great gifts with one hand, and it stabs you in the back with the other. ...:-D"