0

Input :

EMP table has 100 columns. If we type any value for @searchparameter, it's like Google search. It has to check all the columns internally and display the relevant rows of all columns

EmpID    Ename    Designation   
-----------------------------    
1        swami      GM
2        kiran      test

Output :

@Search = 'GM'

EmpID    Ename    Designation   
-----------------------------    
1        swami      GM
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
SNR
  • 43
  • 2
  • 7
  • 1
    Possible duplicate of [SQL Server SELECT where any column contains 'x'](http://stackoverflow.com/questions/28717868/sql-server-select-where-any-column-contains-x) – CollinD Jan 25 '17 at 00:39

1 Answers1

0

Look at:

And build your procedure using

You can find some examples in SO:

Community
  • 1
  • 1
McNets
  • 10,352
  • 3
  • 32
  • 61