Milen,<br><br>According to the timestamps this compilation seems to be outdated and there have been lost of changes in the mssql2008 driver afterwards.<br>I suggest to do a test with the daily build packages from <a href="http://vbkto.dyndns.org/sdk/">http://vbkto.dyndns.org/sdk/</a> by replacing .exe and  .dll files to the newer versions.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2010/11/10 Milena <span dir="ltr">&lt;<a href="mailto:mgebreab@maxgeo.com">mgebreab@maxgeo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi All,<br>
<br>
I really appricate any help on this.<br>
<br>
I am trying to create a WMS using mapserver and data from SQL 2008 R2. This<br>
is what my map file looks like.<br>
SIZE 600 800<br>
  PROJECTION<br>
   &quot;init=epsg:4326&quot; #latlon on WGS84<br>
  END<br>
  EXTENT 113 -34 129 -14<br>
  # lon/lat extents of Spatial<br>
  WEB<br>
    IMAGEPATH &quot;/tmp/ms_tmp/&quot;<br>
    IMAGEURL &quot;/ms_tmp/&quot;<br>
    METADATA<br>
      &quot;map&quot; &quot;C:/OSGeo4W/apps/Spatial/config.map&quot;<br>
      &quot;ows_schemas_location&quot; &quot;<a href="http://schemas.opengeospatial.net" target="_blank">http://schemas.opengeospatial.net</a>&quot;<br>
      &quot;ows_title&quot; &quot;Sample WMS&quot;<br>
      &quot;ows_abstract&quot; &quot;Sample WMS of Spatial&quot;<br>
      &quot;ows_keywordlist&quot; &quot;Spatial,WMS,Maxwell&quot;<br>
      &quot;ows_onlineresource&quot;<br>
&quot;<a href="http://localhost:8080//Spatial?map=C:/OSGeo4W/apps/Spatial/config.map&amp;" target="_blank">http://localhost:8080//Spatial?map=C:/OSGeo4W/apps/Spatial/config.map&amp;</a>&quot;<br>
      &quot;wms_srs&quot; &quot;EPSG:4326&quot; #latlon<br>
      &quot;wms_feature_info_mime_type&quot; &quot;text/plain&quot;<br>
      &quot;wms_feature_info_mime_type&quot; &quot;text/html&quot;<br>
      &quot;wms_server_version&quot; &quot;1.1.1&quot;<br>
      &quot;wms_formatlist&quot; &quot;image/png,image/gif,image/jpeg&quot;<br>
      &quot;wms_format&quot; &quot;image/gif&quot;<br>
    END #metadata<br>
  END #web<br>
  LAYER<br>
  NAME &quot;tenements&quot;<br>
  CONNECTIONTYPE PLUGIN<br>
  PLUGIN &quot;C:/OSGeo4W/specialplugins/msplugin_mssql2008.dll&quot;<br>
  CONNECTION &quot;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security<br>
Info=False;Initial<br>
<br>
Catalog=SpatialDB;Data Source=AU-FRE-L0217//SQL_2008R2&quot;<br>
  DATA &quot;SP_GEOMETRY from dbo.tenements&quot;<br>
  TYPE POLYGON<br>
  STATUS ON<br>
  METADATA<br>
      &quot;ows_title&quot; &quot;tenements&quot;<br>
    END #metadata<br>
    PROJECTION<br>
      &quot;init=epsg:4326&quot;<br>
    END<br>
  END #Layer<br>
End #Map<br>
<br>
I am using msplugin_mssql2008.dll plugin. But I keep getting 500 internal<br>
error:<br>
I checked the even view and the error there says:<br>
Faulting application name: mapserv.exe, version: 0.0.0.0, time stamp:<br>
0x4ab3c473<br>
Faulting module name: libmap.dll, version: 0.0.0.0, time stamp: 0x4ab3c46e<br>
Exception code: 0xc0000005<br>
Fault offset: 0x000a7815<br>
Faulting process id: 0x178c<br>
Faulting application start time: 0x01cb80a63078252e<br>
Faulting application path: C:\OSGeo4W\bin\mapserv.exe<br>
Faulting module path: C:\OSGeo4W\bin\libmap.dll<br>
Report Id: 6f925ed2-ec99-11df-a20d-b8ac6f7484b2<br>
<br>
Appache error log error message is:<br>
[Wed Nov 10 13:56:35 2010] [error] [client 127.0.0.1] Premature end of<br>
script headers: mapserv.exe<br>
[Wed Nov 10 13:59:04 2010] [error] [client 127.0.0.1] Premature end of<br>
script headers: mapserv.exe<br>
[Wed Nov 10 15:09:21 2010] [error] [client 127.0.0.1] Premature end of<br>
script headers: mapserv.exe<br>
<br>
Please help!!<br>
<br>
Thank you<br>
<br>
Milen<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-SQL-Server-2008-R2-connection-tp5723789p5723789.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Mapserver-SQL-Server-2008-R2-connection-tp5723789p5723789.html</a><br>

Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>