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"><<a href="mailto:mgebreab@maxgeo.com">mgebreab@maxgeo.com</a>></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>
"init=epsg:4326" #latlon on WGS84<br>
END<br>
EXTENT 113 -34 129 -14<br>
# lon/lat extents of Spatial<br>
WEB<br>
IMAGEPATH "/tmp/ms_tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
METADATA<br>
"map" "C:/OSGeo4W/apps/Spatial/config.map"<br>
"ows_schemas_location" "<a href="http://schemas.opengeospatial.net" target="_blank">http://schemas.opengeospatial.net</a>"<br>
"ows_title" "Sample WMS"<br>
"ows_abstract" "Sample WMS of Spatial"<br>
"ows_keywordlist" "Spatial,WMS,Maxwell"<br>
"ows_onlineresource"<br>
"<a href="http://localhost:8080//Spatial?map=C:/OSGeo4W/apps/Spatial/config.map&" target="_blank">http://localhost:8080//Spatial?map=C:/OSGeo4W/apps/Spatial/config.map&</a>"<br>
"wms_srs" "EPSG:4326" #latlon<br>
"wms_feature_info_mime_type" "text/plain"<br>
"wms_feature_info_mime_type" "text/html"<br>
"wms_server_version" "1.1.1"<br>
"wms_formatlist" "image/png,image/gif,image/jpeg"<br>
"wms_format" "image/gif"<br>
END #metadata<br>
END #web<br>
LAYER<br>
NAME "tenements"<br>
CONNECTIONTYPE PLUGIN<br>
PLUGIN "C:/OSGeo4W/specialplugins/msplugin_mssql2008.dll"<br>
CONNECTION "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security<br>
Info=False;Initial<br>
<br>
Catalog=SpatialDB;Data Source=AU-FRE-L0217//SQL_2008R2"<br>
DATA "SP_GEOMETRY from dbo.tenements"<br>
TYPE POLYGON<br>
STATUS ON<br>
METADATA<br>
"ows_title" "tenements"<br>
END #metadata<br>
PROJECTION<br>
"init=epsg:4326"<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>