Finding what tables a certain FK is used

I have a table and a column Matter.Matter_Number. This is NOT an ID.  

This Matter_Number is saved to mulitple tables.  When I change Matter.Matter_Number I need to update the various tables where Matter_Number is saved.  

Below is a sample.

Matter.Matter_Number = 5423.01
Client.Matter_Number = 5423.01
TBS.Matter_Number = 5423.01
HBM.Matter_Number = 5423.01

Now I want to change Matter_Number to 6423.01 but I can't remember all the tables that have Matter_Number.

How can I do a search to find what tables have Matter_Number?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian CroweDatabase AdministratorCommented:
If you are sure of the consistency of the column name then you can use:

SELECT OBJECT_NAME(object_id) AS TableName, as ColumnName
FROM sys.columns AS C
WHERE name = 'Matter_Number'

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This is NOT an ID... and that's a mistake in data model...
Shouldn't you rather think about the data model update?
huerita37Author Commented:
I'd love to redesign the db if I could but I can't.
Olaf DoschkeSoftware DeveloperCommented:
Are the involved tables a moving target, eg are new tables with this column created dynamically?
If this is at least somewhat static you can take the result of Brians query to create triggers taking care of the needed cascading of updates.

Bye, Olaf.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.