Blog that contains articles about new technologies related or not with programming.
I will describe and solves some problems that I encounter in my career.
ASP .NET, AJAX, Javascript, C++, C# and SQL are some of the subjects that will appear.
18 August 2015
Search a column in a table
SELECT t.name AS table_name, SCHEMA_NAME(schema_id) AS schema_name, c.name AS column_name FROM sys.tables AS t INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID WHERE c.name LIKE '%_ColumnName%' ORDER BY schema_name, table_name
No comments:
Post a Comment