<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Thanks Steve - Works perfectly!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; "Steve Lime" &lt;Steve.Lime@dnr.state.mn.us&gt; 30/09/2008 6:02 a.m. &gt;&gt;&gt;<BR>FILTER "WHERE NAME LIKE '%%road%%'" won't work? MapServer should just replace the inner %road% and<BR>leave the outer %'s alone.<BR><BR>Steve<BR><BR><BR>&gt;&gt;&gt; On 9/28/2008 at 10:03 PM, in message &lt;48E0FC44.379F.0037.0@asurequality.com&gt;,<BR>"Robert Sanson" &lt;SansonR@asurequality.com&gt; wrote:<BR>&gt; I would like to have a FILTER section in my layer definition of an ArcSDE <BR>&gt; layer where I formulate a "WHERE NAME LIKE ...". The problem is, is that <BR>&gt; Mapserver defines variables using %variable%, and the "%" is also used as a <BR>&gt; wild card in SQL-Server, which is what we use for SDE.<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; The Layer defition is:<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; LAYER<BR>&gt; <BR>&gt;&nbsp;&nbsp; NAME road<BR>&gt; <BR>&gt;&nbsp;&nbsp; TYPE LINE<BR>&gt; <BR>&gt;&nbsp;&nbsp; UNITS METERS<BR>&gt; <BR>&gt;&nbsp;&nbsp; STATUS ON<BR>&gt; <BR>&gt;&nbsp;&nbsp; CONNECTIONTYPE SDE<BR>&gt; <BR>&gt;&nbsp;&nbsp; CONNECTIONTYPE PLUGIN<BR>&gt; <BR>&gt;&nbsp;&nbsp; CONNECTION "esri-arcsde,port:nnnn,sde_crs,user,passwd"<BR>&gt; <BR>&gt;&nbsp;&nbsp; PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_91.dll"<BR>&gt; <BR>&gt;&nbsp;&nbsp; DATA "sde_crs.SDEADMIN.CRS_ROAD,SHAPE"<BR>&gt; <BR>&gt;&nbsp;&nbsp; FILTER "WHERE NAME LIKE '%" + %road% + "%'"<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt;&nbsp;&nbsp; # data is queryable<BR>&gt; <BR>&gt;&nbsp;&nbsp; DUMP TRUE<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; Is there any solution to this?<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; Many thanks,<BR>&gt; <BR>&gt;&nbsp; <BR>&gt; <BR>&gt; Robert Sanson<BR>&gt; <BR>&gt; ------------------------------------------------------------------<BR>&gt; <BR>&gt; The contents of this email are confidential to AsureQuality. If you have <BR>&gt; received this communication in error please notify the sender immediately and <BR>&gt; delete the message and any attachments. The opinions expressed in this email <BR>&gt; are not necessarily those of AsureQuality. This message has been scanned for <BR>&gt; known viruses before delivery. AsureQuality supports the Unsolicited <BR>&gt; Electronic Messages Act 2007. If you do not wish to receive similar <BR>&gt; communications in future, please notify the sender of this message.<BR>&gt; <BR>&gt; ------------------------------------------------------------------<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; This message has been scanned for malware by SurfControl plc. <BR>&gt; www.surfcontrol.com<BR><BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table></BODY></HTML>