I want to search a text in a table without knowing its attributes.
Example : I have a table Customer,and i want to search a record which contains ‘mohit’ in any field without knowing its column name.
I want to search a text in a table without knowing its attributes. Example
Share
You are looking for Full Text Indexing
Example using the
ContainsNOTE – You can convert the above Free text query into dynamic Query using the column names calculated from the sys.Columns Query
Also check below
FIX: Full-Text Search Queries with CONTAINS Clause Search Across Columns
Also you can check all Column Name From below query