Environment: Windows, SQL Server 2008
For example, my database has Table1, Table2, Table3… TableN, each table has Column1, Column2, Column3…ColumnN. Simply, they’re all string column.
I want to find rows, no matter from which table, which have a column’s value is ‘Key’ no matter which column.
How to write a script to do that?
Thanks!
Take a look at the FindMyData_String stored proc here: Search all columns in all the tables in a database for a specific value to get you started