OK, so this isn’t rocket science, but then again some of the best things are the simplest. You can do a lot with the information_schema views in SQL Server.
Here is a short stored procedure that you can use to find:
a table by its full name
a table by partial name
a column by its full name
a column by its partial name
It comes in handy for me when I am looking for a field in related tables, or a spec I am reading refers to a field by name but not by the table it is in. Like I said, it is simple, but I have used this type of a proc for a long time.
John Papa
Hi, I'm John Papa. I author this blog, create courses for Pluralsight, and work in Developer Relations. I am a professional storyteller, I contribute to OSS, and I'm a Web technologist