I have multiple tables (say TableA, TableB, TableC) which have columns to store values in 6 languages. There are thousands of rows in each of these tables in SQL Server 2014.
What is the best way to search for a word or phrase or search string in these three tables (the search string can be found in any column of these tables) ?
Do I create separate views for each language for each of these tables (6 x 3 = 18 views) and then create full-text index on the views ?
I also need to get the table name and column name in which the search string is found in the tables as I need to pass the table name and column name to other stored procedure for further processing.
Create TableA (
AID int,
LanguageID int,
ACol1 nvarchar(100),
ACol2 nvarchar(100));
Create TableB (
BID int,
LanguageID int,
BCol1 nvarchar(100),
BCol2 nvarchar(100),
BCol3 nvarchar(100));
Create TableC (
CID int,
LanguageID int,
CCol1 nvarchar(100),
CCol2 nvarchar(100),
CCol3 nvarchar(100),
CCol4 nvarchar(100));