<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Like Operator in MSQuery</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Al Samuelson</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-71976</link>
		<dc:creator>Al Samuelson</dc:creator>
		<pubDate>Wed, 11 Jan 2012 00:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-71976</guid>
		<description>&quot;WHERE CustomerID LIKE ‘[A-Z][AEIOU][A-Z][AEIOU][A-Z]&quot; as mentioned above is what I need BUT - -
my database field is varchar(6) and Like &#039;05[0-1]1[2-4][0-2]&#039; results in a data truncation error. 
The operator works fine in Sql Server but Excel won&#039;t take any compare with more than 6 character.
Anyone have any suggestions??????????????????</description>
		<content:encoded><![CDATA[<p>&#8220;WHERE CustomerID LIKE ‘[A-Z][AEIOU][A-Z][AEIOU][A-Z]&#8221; as mentioned above is what I need BUT &#8211; -<br />
my database field is varchar(6) and Like &#8217;05[0-1]1[2-4][0-2]&#8216; results in a data truncation error.<br />
The operator works fine in Sql Server but Excel won&#8217;t take any compare with more than 6 character.<br />
Anyone have any suggestions??????????????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-43088</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Wed, 30 Dec 2009 06:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-43088</guid>
		<description>&lt;p&gt;Whiz: maybe the double instance of % is interpreted as searching for records literally like &#039;%&#039; ? Untested. Regards, Pete&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Whiz: maybe the double instance of % is interpreted as searching for records literally like &#8216;%&#8217; ? Untested. Regards, Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whiz</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-43067</link>
		<dc:creator>Whiz</dc:creator>
		<pubDate>Tue, 29 Dec 2009 17:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-43067</guid>
		<description>&lt;p&gt;What happens if they enter no value in the parameter.&lt;/p&gt;
&lt;p&gt;So, we have &#039;%&#039; &amp; [My Parameter] &amp; &#039;%&#039; and the user just hits enter without typing a value.  To my mind, this should mean it searches for all records.  My query returns nothing, however.&lt;/p&gt;
&lt;p&gt;Any Ideas?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What happens if they enter no value in the parameter.</p>
<p>So, we have &#8216;%&#8217; &amp; [My Parameter] &amp; &#8216;%&#8217; and the user just hits enter without typing a value.  To my mind, this should mean it searches for all records.  My query returns nothing, however.</p>
<p>Any Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IT Plumber</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-40339</link>
		<dc:creator>IT Plumber</dc:creator>
		<pubDate>Fri, 24 Jul 2009 15:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-40339</guid>
		<description>&lt;p&gt;The criteria for SQL and MS Query to find a like for data that ends with 4 digits like a phone number.&lt;/p&gt;
&lt;p&gt;Like &#039;%&#039;+[input last 4 digits]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The criteria for SQL and MS Query to find a like for data that ends with 4 digits like a phone number.</p>
<p>Like &#8216;%&#8217;+[input last 4 digits]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-37614</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 30 Jan 2009 16:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-37614</guid>
		<description>&lt;p&gt;&lt;strong&gt;Douglas&lt;/strong&gt;: If you&#039;re using SQLServer, I think &#039;+&#039; concatenates.  If you&#039;re using Access, &#039;&amp;&#039; concatenates.  Try&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;WHERE (MyTable.MyColumn Like &#039;%&#039; + ? + &#039;%&#039;)&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Douglas</strong>: If you&#8217;re using SQLServer, I think &#8216;+&#8217; concatenates.  If you&#8217;re using Access, &#8216;&amp;&#8217; concatenates.  Try</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">WHERE (MyTable.MyColumn Like &#8216;%&#8217; + ? + &#8216;%&#8217;)</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas Filipe</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-37609</link>
		<dc:creator>Douglas Filipe</dc:creator>
		<pubDate>Fri, 30 Jan 2009 12:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-37609</guid>
		<description>&lt;p&gt;Hi! Thanks a lot for information in this page, help many people&#039;s in world.&lt;br&gt;
I&#039;m trying query using like but I do not succeed.&lt;br&gt;
I&#039;m using the following value Like &#039;%&#039; &amp; [My Parameter] &amp; &#039;%&#039; is correct?&lt;br&gt;
When I run query is shown the fallowing alert message: &quot;The data types varchar and varchar are incopatible in the boolean AND Operator. Statement(s) could be not prepared.&lt;br&gt;
My SQL code is: WHERE (MyTable.MyColumn Like &#039;%&#039; &amp; ? &amp; &#039;%&#039;)&lt;br&gt;
What am I doing wrong?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi! Thanks a lot for information in this page, help many people&#8217;s in world.<br />
I&#8217;m trying query using like but I do not succeed.<br />
I&#8217;m using the following value Like &#8216;%&#8217; &amp; [My Parameter] &amp; &#8216;%&#8217; is correct?<br />
When I run query is shown the fallowing alert message: &#8220;The data types varchar and varchar are incopatible in the boolean AND Operator. Statement(s) could be not prepared.<br />
My SQL code is: WHERE (MyTable.MyColumn Like &#8216;%&#8217; &amp; ? &amp; &#8216;%&#8217;)<br />
What am I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-30538</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Sat, 09 Feb 2008 17:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-30538</guid>
		<description>&lt;p&gt;My understanding of dqy files is that they store connection information, but that Excel only reads that information once - when the query is created.  The connection information, from Excel&#039;s standpoint, is stored in the workbook.  If you were to subsequently change the dqy file, the query would not change.  To get the database name, connection string, sql statement, and all the other query goodness, you have to explore the QueryObject object.  As described here &lt;a href=&quot;http://dicks-clicks.com/excel/ExternalData5.htm&quot; rel=&quot;nofollow&quot;&gt;http://dicks-clicks.com/excel/ExternalData5.htm&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you deleted and recreated the query, it would get it&#039;s information from your dqy file, but then subsequent changes to the dqy won&#039;t have any effect, so it&#039;s not a very efficient way to edit an embedded query.&lt;/p&gt;
&lt;p&gt;If you want an easier way to edit the query information, download JKP&#039;s QueryManager.  &lt;a href=&quot;http://www.jkp-ads.com/Download.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.jkp-ads.com/Download.asp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, if I&#039;m wrong about how Excel works with the dqy file, someone please correct me.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>My understanding of dqy files is that they store connection information, but that Excel only reads that information once &#8211; when the query is created.  The connection information, from Excel&#8217;s standpoint, is stored in the workbook.  If you were to subsequently change the dqy file, the query would not change.  To get the database name, connection string, sql statement, and all the other query goodness, you have to explore the QueryObject object.  As described here <a href="http://dicks-clicks.com/excel/ExternalData5.htm" rel="nofollow">http://dicks-clicks.com/excel/ExternalData5.htm</a>.</p>
<p>If you deleted and recreated the query, it would get it&#8217;s information from your dqy file, but then subsequent changes to the dqy won&#8217;t have any effect, so it&#8217;s not a very efficient way to edit an embedded query.</p>
<p>If you want an easier way to edit the query information, download JKP&#8217;s QueryManager.  <a href="http://www.jkp-ads.com/Download.asp" rel="nofollow">http://www.jkp-ads.com/Download.asp</a></p>
<p>Also, if I&#8217;m wrong about how Excel works with the dqy file, someone please correct me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Lablue</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-30519</link>
		<dc:creator>David Lablue</dc:creator>
		<pubDate>Fri, 08 Feb 2008 21:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-30519</guid>
		<description>&lt;p&gt;I am having the same issue.  I have an XL file with an embedded query.  There is no *.dqy file as just the XL file was given to me and the query is embedded in a sheet.  I can save to create the .dqy file but the worksheet doesn&#039;t reference it.  Do I have to deleted and recreate the query?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am having the same issue.  I have an XL file with an embedded query.  There is no *.dqy file as just the XL file was given to me and the query is embedded in a sheet.  I can save to create the .dqy file but the worksheet doesn&#8217;t reference it.  Do I have to deleted and recreate the query?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kowalczyk</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-22266</link>
		<dc:creator>Andy Kowalczyk</dc:creator>
		<pubDate>Tue, 30 Jan 2007 23:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-22266</guid>
		<description>&lt;p&gt;Open the corresponding .dqy file with a text editor.&lt;/p&gt;
&lt;p&gt;It may be in a directory like:&lt;br&gt;
C:Documents and Settingsuser.nameApplication DataMicrosoftQueries&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Open the corresponding .dqy file with a text editor.</p>
<p>It may be in a directory like:<br />
C:Documents and Settingsuser.nameApplication DataMicrosoftQueries</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Clarke</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/03/14/the-like-operator-in-msquery/#comment-12423</link>
		<dc:creator>Gareth Clarke</dc:creator>
		<pubDate>Wed, 18 May 2005 17:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1053#comment-12423</guid>
		<description>&lt;p&gt;On a bit of a tangent regardng Excel-MSQuery-SQL - some insight from the experts would be appreciated...&lt;/p&gt;
&lt;p&gt;I&#039;ve got a spreadsheet, that I didn&#039;t create, with an embedded MSQuery that accesses an Oracle database.&lt;/p&gt;
&lt;p&gt;I can edit and run the Query, but what I really want to know is the name of the DB, user id and password.&lt;/p&gt;
&lt;p&gt;Any ideas on how to retrieve this info from the spreadsheet?&lt;/p&gt;
&lt;p&gt;Thanks, Gareth&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>On a bit of a tangent regardng Excel-MSQuery-SQL &#8211; some insight from the experts would be appreciated&#8230;</p>
<p>I&#8217;ve got a spreadsheet, that I didn&#8217;t create, with an embedded MSQuery that accesses an Oracle database.</p>
<p>I can edit and run the Query, but what I really want to know is the name of the DB, user id and password.</p>
<p>Any ideas on how to retrieve this info from the spreadsheet?</p>
<p>Thanks, Gareth</p>
]]></content:encoded>
	</item>
</channel>
</rss>

