Showing posts with label tablenames. Show all posts
Showing posts with label tablenames. Show all posts

Thursday, March 8, 2012

Columns in database

Hi Group,
This might sound silly, but how can I find the tablenames in MSSQL2000 with which contain a certain columnname?
For example I want to get all the tablenames in a database which contain the column ProjectID.
Thanks for your helpselect * from INFORMATION_SCHEMA.COLUMNS where column_name='columnname'|||Originally posted by Satya
select * from INFORMATION_SCHEMA.COLUMNS where column_name='columnname'

Your the BEST!!
Thanks a lot.