<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.ztplmc
        {mso-style-name:ztplmc;}
span.hwtze
        {mso-style-name:hwtze;}
span.rynqvb
        {mso-style-name:rynqvb;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE">we are migrating our project with Mapserver 7 to Mapserver 8.0. Our project has been working stably under Mapserver 7 for a long time.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE">One component of the project is DB query MSSQL - Server using MAP file and PLUGIN routine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE">Although we are using the latest version of "msplugin_mssql2008.dll", we always get an error message that the query is wrong. The table
 "GEOM_VG_BULA" and permissions are OK.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE">The call is in the PHP file as:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal">$oMap = new mapObj(MAPFILE);$oMap->setSize(1990, 1160);....    $oImage = $oMap->draw();<o:p></o:p></p>
<p class="MsoNormal">-------<o:p></o:p></p>
<p class="MsoNormal">MAP<o:p></o:p></p>
<p class="MsoNormal">...<o:p></o:p></p>
<p class="MsoNormal">  LAYER<o:p></o:p></p>
<p class="MsoNormal">   NAME "..."<o:p></o:p></p>
<p class="MsoNormal">   CONNECTIONTYPE PLUGIN<o:p></o:p></p>
<p class="MsoNormal">   PLUGIN "d:\www\cgi-bin\ms5\msplugin_mssql2008.dll"<o:p></o:p></p>
<p class="MsoNormal">   CONNECTION "server=ServName;uid=_user;pwd=pass;database=DB-Name;Integrated Security=false"<o:p></o:p></p>
<p class="MsoNormal">   <b>DATA "GEOMETRY_LL84 from GEOM_VG_BULA using unique ID using SRID=4326"       <<<<< 
</b><span class="rynqvb"><span lang="EN">here table </span></span><b>GEOM_VG_BULA</b><span class="rynqvb"><span lang="EN"> , column
</span></span><b>GEOMETRY_LL84<o:p></o:p></b></p>
<p class="MsoNormal">   TYPE POLYGON<o:p></o:p></p>
<p class="MsoNormal">   STATUS OFF<o:p></o:p></p>
<p class="MsoNormal">...<o:p></o:p></p>
<p class="MsoNormal">END<o:p></o:p></p>
<p class="MsoNormal">-------<o:p></o:p></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN">The error message:<o:p></o:p></span></span></p>
<p class="MsoNormal">Fatal error: Uncaught Exception: msDrawMap(): Image handling error. Failed to draw layer named 'Bundeslaender'.;msMSSQL2008LayerOpen():
<o:p></o:p></p>
<p class="MsoNormal"> <b>Query error</b>. Error with MSSQL2008 data variable. You specified 'Error parsing MSSQL2008
<b>data variable: nothing specified in DATA statement</b>.<o:p></o:p></p>
<p class="MsoNormal"><br><br> More Help:<br><br> '.<br> Standard ways of specifying are : <br> (1) 'geometry_column from geometry_table' <br> (2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <br><br>
 Make sure you utilize the 'using unique &lt;column name&gt;' and 'using with &lt;index name&gt;' clauses in. <br><br>For more help, please see http://www.mapdotnet.com <br><br>mapmssql2008.c - version of 2007/7/1. in D:\www\cgi-bin\ms5\quickmap_geometry.php:13
<o:p></o:p></p>
<p class="MsoNormal"> Stack trace: #0 D:\www\cgi-bin\ms5\quickmap_geometry.php(13): mapObj->draw() #1 {main} thrown in D:\www\cgi-bin\ms5\quickmap_geometry.php on line
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN">Is this a problem only with version 8.0?<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN">Unfortunately, we cannot use "Connection type OGR" in our project structure.
<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN">Can anyone help us?<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="rynqvb"><span lang="EN">Valeri</span></span><o:p></o:p></p>
</div>
</body>
</html>