﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Atif Sheikh  / Way to Check Multiple LIKE without dynamic SQL / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 09:33:18 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>Thanks it's good to see how others put together T-SQL and its built-in functions to come up with clever solutions.  Keeps the mind nimble.</description><pubDate>Thu, 16 Sep 2010 12:46:08 GMT</pubDate><dc:creator>franp-424154</dc:creator></item><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>But, if it contains both strings, you'll get it in the output twice.  You may need a DISTINCT.Also, you're not really using the CROSS APPLY functionality.  This could just as easily be a JOIN (using ON instead of WHERE), since your function isn't using anything from @vTable, so it doesn't need to be re-executed for each row.</description><pubDate>Thu, 16 Sep 2010 12:15:52 GMT</pubDate><dc:creator>gil.milbauer</dc:creator></item><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>[quote][b]Atif-ullah Sheikh (9/16/2010)[/b][hr]@adudleyyou can find fnSplit on the net. just google it and you will find the code for it.@bhattaThis is just an approach of performing a task without dynamic SQL. Otherwise, I think using dynamic sql in such situations will be more helpful.:-)[/quote]Absolutly :)fn_split :)http://bi-tch.blogspot.com/2007/10/sql-clr-net-function-split.html</description><pubDate>Thu, 16 Sep 2010 04:35:42 GMT</pubDate><dc:creator>bhatta</dc:creator></item><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>@adudleyyou can find fnSplit on the net. just google it and you will find the code for it.@bhattaThis is just an approach of performing a task without dynamic SQL. Otherwise, I think using dynamic sql in such situations will be more helpful.:-)</description><pubDate>Thu, 16 Sep 2010 04:17:02 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>if you use function !!! write new fn_split_find  and don't use cross  apply .it's will be work more faste :-D)select * from @mytbl where fn_split_find(likestring,@param) &amp;gt;0</description><pubDate>Thu, 16 Sep 2010 02:40:26 GMT</pubDate><dc:creator>bhatta</dc:creator></item><item><title>RE: Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>Thanks for this, I didn't know about fn_split or the CROSS APPLY.</description><pubDate>Thu, 16 Sep 2010 02:13:55 GMT</pubDate><dc:creator>adudley</dc:creator></item><item><title>Way to Check Multiple LIKE without dynamic SQL</title><link>http://www.sqlservercentral.com/Forums/Topic986854-2702-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/SQL+Server+2005/71199/"&gt;Way to Check Multiple LIKE without dynamic SQL&lt;/A&gt;[/B]</description><pubDate>Wed, 15 Sep 2010 20:17:44 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item></channel></rss>