Let's say I have the following table "Addresses
":
+----+-------------+---------------+------------------+
| ID | CompanyName | Street | City |
+----+-------------+---------------+------------------+
| 1 | Salvador | Hollywood 123 | Paradise City |
| 2 | Zer0 | Avenue 34 | Opportunity City |
+----+-------------+---------------+------------------+
If I make a full-text search like:
SELECT * FROM Addresses WHERE CONTAINS(*, 'Salv')
Is it possible to get back
- the name of the column, which contains the founded value (in this example it would be "CompanyName")
- the full value of the column, which contains the founded value (in this example it would be "Salvador"
I can suggest this: