I got a table of words to be searched in the database and the table
Parameter
id     Name              Word
----------------------------------
1      word search       c&a
2      word search       Beton
3      word search       Freiman
4      Anything          Null
beside that i have the Procedure SearchAllTable, which is the searching Procedure and for searching the words in the database.
DECLARE @id int
DECLARE @name varchar(100)
DECLARE @word varchar(100)
DECLARE cur CURSOR FOR SELECT Id, word FROM #Parameter WHERE Name = 'word search'
OPEN cur
FETCH NEXT FROM cur INTO @id,@word
WHILE @@FETCH_STATUS = 0 BEGIN
EXEC SearchAllTables @word
FETCH NEXT FROM cur INTO @id, @word
END
CLOSE cur    
DEALLOCATE cur
the problem that I got the result in multipule tables and I want them all to be listed in one table without any suppuration.
 
     
     
    