<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Batang";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
/* 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.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 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1615673837;
        mso-list-type:hybrid;
        mso-list-template-ids:-29468592 1886391718 135659523 135659525 135659521 135659523 135659525 135659521 135659523 135659525;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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="PT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m working on a project where the geo information is stored in SQL Server 2008 in spatial tables with a geometry column. So far I’ve been using mapguide 2.2, but this time I tried to use mapguide 2.4 and found some problems:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I try to create a new Feature Source (SQL Server Spatial Feature Source) with Maestro (any version) and in the connection properties I choose an user that doesn’t have permission to all of the databases, instead of
 getting a list of data stores to choose the one I want (work ok on mapguide 2.2) I get an exception window reporting “The server principal «myUser» is not able to access the database «OneOfTheDatabasesInTheServer” under the current security context”, so to
 choose the Data Store I have to use the “sa” user instead. This problem also happens with beta version of mapguide 2.5.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I create a layer pointing directly to one of the spatial tables, the information is represented ok in all versions of mapguide, If the layer is pointing to a view that relates one spatial table with one data table,
 all versions of mapguide shows the information on the map (but without the possibility of selecting objects), but if I try to define the join inside the SQL Server Spatial Feature Source using the “Extensions and Joins”, the information shows ok on mapguide
 2.2 but I get empty layers on mapguide 2.4 and on the beta of mapguide 2.5<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the logs, I’ve found this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: Failed to stylize layer: Elemento_PI_TesteJoin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        An exception occurred in FDO component.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        Expected object or association property<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">StackTrace:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgMappingUtil.StylizeLayers() line 881 file c:\mg-2.4-x86\mgdev\server\src\services\mapping\MappingUtil.cpp  
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error: An exception occurred in FDO component.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">        Expected object or association property  (Cause: Expected object or association property , Root Cause: Expected object or association property )<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">StackTrace:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgRenderingServiceHandler.ProcessOperation() line 83 file c:\mg-2.4-x86\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgOpQueryFeatures.Execute() line 125 file c:\mg-2.4-x86\mgdev\server\src\services\rendering\OpQueryFeatures.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgServerRenderingService.QueryFeatures() line 848 file c:\mg-2.4-x86\mgdev\server\src\services\rendering\ServerRenderingService.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgServerRenderingService.RenderForSelection() line 1520 file c:\mg-2.4-x86\mgdev\server\src\services\rendering\ServerRenderingService.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgServerFeatureService.SelectFeatures() line 462 file c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerFeatureService.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgServerSelectFeatures.SelectFeatures() line 325 file c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerSelectFeatures.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgServerSelectFeatures.SelectFdoJoin() line 2045 file c:\mg-2.4-x86\mgdev\server\src\services\feature\ServerSelectFeatures.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  - MgSelectCommand.ExecuteJoined() line 429 file c:\mg-2.4-x86\mgdev\server\src\services\feature\SelectCommand.cpp               
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I don’t know if this is a known problem or if I have to do this other way in this new versions.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:PT">José Marques<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>