shail<br><br>1.&nbsp; remember to have the correct libmap.dll (from the shared/sde directory) in the cgi-bin directory<br>2.&nbsp; ensure that you have the ArcSDE C API Dll&#39;s loaded on the mapserver machine<br>3.&nbsp; run your mapfile with DEBUG=ON
<br>4.&nbsp; check you have the necessary permissions set for your connecting user to the ArcSDE layers<br>5.&nbsp; connection strings we use successfully are:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTION &quot;servername,port:portnum,database,username,password&quot; 
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CONNECTIONTYPE SDE <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA &quot;schema.sdelayername,SHAPE,SDE.DEFAULT&quot; <br><br>I&#39;d suggest gettign a mapfile with a shape file as a base (so you know you are in the correct area) and a single SDE layer to display over the top.
<br><br>Also check the MapServer log file as this can tell you the errors (whether permissions, server etc)<br><br>What is the message with (-1) ?<br><br>HTH<br>Mike<br><br><br><div><span class="gmail_quote">On 22/01/07, 
<b class="gmail_sendername"><a href="mailto:shail_79@hotmail.com">shail_79@hotmail.com</a></b> &lt;<a href="mailto:shail_79@hotmail.com">shail_79@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mike,<br><br>I tried myself with SDE , SQL server and Mapserver to connect through Mapfile with ms4w package. I always gets an error (-1) for the SDE connection. I think&nbsp;&nbsp; mapserver is able to connect through SDE, but it seems, the Data description within mapfile seems to be wrong.
<br><br>Do u have any document on how to establish the connection for SDE or How to define Data for SDE.<br><br>I tried everything, whatever is instructed within ms4w readme file for SDE.<br><br>But still i am getting an error.
<br><br>Your help would be highly appreciated.<br><br>Thanks<br><br>shail<br><br><a href="http://people.emich.edu/sgavathe">http://people.emich.edu/sgavathe</a><br><br>Mike Saunt wrote:<br>&gt;<br>&gt; Hi<br>&gt;<br>&gt; We&#39;ve successfully connected through to SDE (with the help of Howard) and
<br>&gt; it<br>&gt; proves to be pretty simple.&nbsp;&nbsp;I am very happy with taking MS4W, extracting<br>&gt; our required installation files and then applying the relevant<br>&gt; libmap.dll(from the sub directory) when on site and then changing the
<br>&gt; connection<br>&gt; strings.&nbsp;&nbsp;I&#39;m very happy with this method as we don&#39;t need to recompile<br>&gt; (although we do for other reasons!)<br>&gt;<br>&gt; Regards<br>&gt; Mike<br>&gt;<br>&gt;<br>&gt; On 25/10/06, Pleyer, Walter &lt;
<a href="mailto:Walter.Pleyer@lfrz.at">Walter.Pleyer@lfrz.at</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; Hi Howard!<br>&gt;&gt;<br>&gt;&gt; &gt; you get these errors.&nbsp;&nbsp;Are you trying to just render a layer?<br>&gt;&gt; Yes, just simply rendering it is all we try to do.
<br>&gt;&gt; The backend DB is a Oracle <a href="http://9.2.0.4">9.2.0.4</a> .<br>&gt;&gt;<br>&gt;&gt; &gt; to build MapServer and all of its dependencies from scratch<br>&gt;&gt; &gt; on your platform of choice (Windows in your case).&nbsp;&nbsp;The time
<br>&gt;&gt; &gt; and misery required to do that is at least an order of<br>&gt;&gt; &gt; magnitude larger than peeling apart the .\bin and .\cgi-bin<br>&gt;&gt; &gt; directories plus the SDE libmap.dll from the MS4W package.
<br>&gt;&gt; I&#39;m aware of that.<br>&gt;&gt; That&#39;s why I hoped that someone might have done that already.<br>&gt;&gt; But this is certainly the lesser problem and more a matter of<br>&gt;&gt; convinience.<br>&gt;&gt;
<br>&gt;&gt; Walter<br>&gt;&gt;<br>&gt;<br>&gt;<br>Quoted from:<br><a href="http://www.nabble.com/Mapserver%2BWindows%2BArcSDE-tf2502108.html#a6987646">http://www.nabble.com/Mapserver%2BWindows%2BArcSDE-tf2502108.html#a6987646
</a><br><br></blockquote></div><br>