<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:FR;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        mso-fareast-language:FR;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Consolas",serif;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 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="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Bo ,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">It seems to be a valid workaround for us.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m interesting in such procedure.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for your help<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0" width="0" style="width:483.45pt;margin-left:-1.5pt">
<tbody>
<tr style="height:115.45pt">
<td width="134" valign="top" style="width:98.5pt;padding:0cm 0cm 0cm 0cm;height:115.45pt">
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt;line-height:115%">
<span style="color:#1F497D;mso-fareast-language:FR"><img width="103" height="143" style="width:1.075in;height:1.4916in" id="_x0000_i1032" src="cid:image001.jpg@01D7AEEF.96D57FB0"></span><b><span lang="EN-US" style="font-size:14.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#CC0066;mso-fareast-language:FR"><o:p></o:p></span></b></p>
</td>
<td width="510" style="width:380.45pt;padding:1.5pt 1.5pt 1.5pt 1.5pt;height:115.45pt">
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:21.3pt;text-indent:-21.3pt;line-height:115%">
<span lang="EN-US" style="font-size:13.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#003399;mso-fareast-language:FR">Sylvain PIERRE</span><b><span lang="EN-US" style="line-height:115%;font-family:"Verdana",sans-serif;color:#003399;mso-fareast-language:FR"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Chef de projet système d’information<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Direction des Systèmes d’Information et du Développement Numérique<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Service Projets et Ingénierie Numérique<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<b><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Collectivité européenne d’Alsace<o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Tél : 03 88 76 68 88<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR"><a href="mailto:sylvain.pierre@alsace.eu"><span style="color:blue">sylvain.pierre@alsace.eu</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="color:#1F497D"><a href="http://www.alsace.eu"><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:blue;mso-fareast-language:FR">www.alsace.eu</span></a></span><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<a href="http://www.facebook.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR;text-decoration:none"><img border="0" width="14" height="15" style="width:.15in;height:.1583in" id="_x0000_i1031" src="cid:image002.png@01D7AEEF.96D57FB0" alt="facebook"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"> </span><a href="http://www.twitter.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="_x0000_i1030" src="cid:image003.png@01D7AEEF.96D57FB0" alt="twitter"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"> </span><a href="http://www.instagram.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="_x0000_i1029" src="cid:image004.png@01D7AEEF.96D57FB0" alt="insta"></span></a><span style="color:#1F497D"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:FR">De :</span></b><span style="mso-fareast-language:FR"> QGIS-Developer <qgis-developer-bounces@lists.osgeo.org>
<b>De la part de</b> Bo Victor Thomsen<br>
<b>Envoyé :</b> mardi 21 septembre 2021 09:04<br>
<b>À :</b> qgis-developer@lists.osgeo.org<br>
<b>Objet :</b> Re: [QGIS-Developer] QGIS connections to MSSQL generate multiple (000s) processes on database server<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>From the bug report:<span style="font-size:12.0pt;mso-fareast-language:FR"><o:p></o:p></span></p>
<p>"QGIS is operating a 'full table scan' for MSSQL connections <b>where no geometry_columns table exists</b>." which triggers the situation. That's not smart and should be fixed.<o:p></o:p></p>
<p>However until that happens, an obvious work-around would be to create and populate a geometry_columns table. So if you don't have a geometry_columns table in the database, create one and populate it with the information about your spatial tables<b>.
</b>This can be done automatically with a stored procedure outside the scope of QGIS.<o:p></o:p></p>
<p>I <i>think</i> I have such procedure lurking somewhere in my dungeon of a backup system. Send me a mail if you're interested. 
<o:p></o:p></p>
<pre>Med venlig hilsen / Kind regards<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Bo Victor Thomsen<o:p></o:p></pre>
<div>
<p class="MsoNormal">Den 20-09-2021 kl. 11:44 skrev PIERRE Sylvain:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi ,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">In want to connect with QGIS to a MSSQL geodabase. But when connecting to this DB it generates multiple (000s) processes on database server.<o:p></o:p></p>
<p class="MsoNormal">DB contains 10 schemas with several huundred tables<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Realy similar to this issue <a href="https://github.com/qgis/QGIS/issues/31101">
https://github.com/qgis/QGIS/issues/31101#</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is there any workaround for this ?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0" width="0" style="width:483.45pt;margin-left:-1.5pt">
<tbody>
<tr style="height:115.45pt">
<td width="135" valign="top" style="width:98.5pt;padding:0cm 0cm 0cm 0cm;height:115.45pt">
<p class="MsoNormal" style="margin-left:21.3pt;text-indent:-21.3pt;line-height:115%">
<span style="mso-fareast-language:FR"><img border="0" width="103" height="143" style="width:1.075in;height:1.4916in" id="Image_x0020_2" src="cid:image005.jpg@01D7AEEF.96D57FB0"></span><o:p></o:p></p>
</td>
<td width="510" style="width:380.45pt;padding:1.5pt 1.5pt 1.5pt 1.5pt;height:115.45pt">
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:21.3pt;text-indent:-21.3pt;line-height:115%">
<span lang="EN-US" style="font-size:13.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:#003399;mso-fareast-language:FR">Sylvain PIERRE</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Chef de projet système d’information</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Direction des Systèmes d’Information et du Développement Numérique</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Service Projets et Ingénierie Numérique</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<b><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Collectivité européenne d’Alsace</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR">Tél : 03 88 76 68 88</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:FR"><a href="mailto:sylvain.pierre@alsace.eu"><span style="color:blue">sylvain.pierre@alsace.eu</span></a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<a href="http://www.alsace.eu"><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:blue;mso-fareast-language:FR">www.alsace.eu</span></a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:1.0pt;margin-right:0cm;margin-bottom:1.0pt;margin-left:0cm;line-height:115%">
<a href="http://www.facebook.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:windowtext;mso-fareast-language:FR;text-decoration:none"><img border="0" width="14" height="15" style="width:.1416in;height:.1583in" id="Image_x0020_4" src="cid:image006.png@01D7AEEF.96D57FB0" alt="facebook"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;mso-fareast-language:FR"> </span><a href="http://www.twitter.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:windowtext;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_7" src="cid:image007.png@01D7AEEF.96D57FB0" alt="twitter"></span></a><span lang="EN-US" style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;mso-fareast-language:FR"> </span><a href="http://www.instagram.com/toutelalsace"><span style="font-size:8.0pt;line-height:115%;font-family:"Verdana",sans-serif;color:windowtext;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_8" src="cid:image008.png@01D7AEEF.96D57FB0" alt="insta"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:FR"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>QGIS-Developer mailing list<o:p></o:p></pre>
<pre><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><o:p></o:p></pre>
<pre>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre>
<pre>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre>
</blockquote>
</div>
</body>
</html>