title: SQL Function to Search in String Values
body: <p>I would like to create function on sql server to check in string values .</p>
  
  <p>pass to two parameters first original  <code>'12.33.44.65.22'</code> , second  <code>'44.22'</code> and return </p>
  
  <p><code>true</code> if <code>parameter2</code> is found in <code>original parameter</code> 
  ex :</p>
  
  <pre><code>call fun1('22.34.56.78' , '23.24')  -- return false 
  call fun1('22.34.56.78' , '23.24') -- return false 
  call fun1('22.34.56.78.43.76' , '22.12') -- return false , because should be both exists 
  call fun1('22.34.56.78' , '22.56') -- return true 
  call fun1('21.34.56.54' , '21.56') -- return true 
  call fun1('21.34.56.54' , '34.56') -- return true 
  call fun1('22.34.56.78' , '34.55.35') -- return false
  </code></pre>
  
  <p>Thanks.</p>