Hi,<br><br>Make sure to place the ogr_SDE.dll into the /gdalplugins subdirectory from where your application is running. Alternatively you can set the GDAL_DRIVER_PATH environment setting to point to the directory of the plugin dll-s<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/8/9 L.M Tan <span dir="ltr">&lt;<a href="mailto:konglongbt@gmail.com">konglongbt@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">hi,<br><br><span style="border-collapse:collapse;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13px">I am interested in using <b>OGR </b>to read data from an ArcSDE (9.2-9.3) database. I have built ogr_SDE.dll,but i can not open the SDE database.<br>


<br>This is the csharp code :<br></span><div> <br>            Ogr.RegisterAll();</div><div>            Driver sdedr = Ogr.GetDriverByName(&quot;SDE&quot;);       //   <span style="background-color:rgb(255, 0, 0)">sdedr = null</span></div>


<div>            /* -------------------------------------------------------------------- */</div><div>            /*      Open data source.                                               */</div><div>            /* -------------------------------------------------------------------- */</div>


<div>            DataSource ds = Ogr.Open(&quot;SDE:192.168.1.123,5151,sde,sde,sde&quot;, 0);     //   <font style="background-color:rgb(255, 0, 0)">ds=null</font></div><span style="border-collapse:collapse;font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13px"><br>


</span><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="border-collapse:collapse">I want to know how to<span style="font-family:arial;border-collapse:separate"> register</span> ArcSDE driver.<br>

</span></font><span style="font-size:medium"><br>TIA for any advice you might give and have a great day!</span></span>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>