
To search a string in all columns of a single tables and in a single database. 'AdventureWorks2012', NULL, NULL ,'Senior'

To search a string in all columns of all tables in a single database. Given below are few examples of above stored procedure. In the step 3, you can execute the above stored procedure with different parameters. Where DATA_TYPE IN (''text'',''ntext'',''varchar'' Select TABLE_SCHEMA, TABLE_NAME ,COLUMN_NAME from Create the store procedure to search a string across the tables. Given below is the solution that will search a string value in all columns in the table and in all tables in a database.Ĭreate given below table in tempdb database to consolidate all search result.Ĭreate the given below stored procedure to search the string in all columns in the table and in all tables in a database. Yesterday, I received an inquiry from ‘Abhilash’ one of my blog readers, how to search a string value in all columns in the table and in all tables in a database.


I really appreciate active participation of my blog readers.
