I have a SQL Server database that has around 30 tables. I need to be able to search for a keyword (could be string, number, float, date, time) throughout the database and list all the rows where that particular keyword occurs. If it so happens that the keyword is in multiple rows spread across multiple tables, they still need to be displayed. For example, rows containing the keyword from table1 and then some space and then the rows containing the keyword from table 2 and so on.
I have found solutions on this platform such as this: https://stackoverflow.com/a/27361062/13942396 and Narayana Vyas's stored procedure.
But the issue is it displays the table name and te column name and the keyword value. It doesn't display the values of the rest of the columns in that particular row that has the keyword.
Any help would be appreciated!