<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.gtconsult.com/blogs/tag/SQL/feed" rel="self" type="application/rss+xml"/><title>GTconsult - Blog #SQL</title><description>GTconsult - Blog #SQL</description><link>https://www.gtconsult.com/blogs/tag/SQL</link><lastBuildDate>Wed, 01 Apr 2026 03:04:42 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[SQL 2008 R2 Install Permissions]]></title><link>https://www.gtconsult.com/blogs/post/sql-2008-r2-install-permissions</link><description><![CDATA[SQL 2008 R2 is&nbsp;a little tricky to install if you don’t have the right permissions.&nbsp; If the account you are using does not have the correct p ]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_KjFQBNSlT2Ssoz7bN4R45Q" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_GtHvRi7EScOIP7Pj0JyApA" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_kscu7pRaR0q8AdpH3CMwsQ" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_cXWioHNoTM2uQnpco233Kg" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align-center " data-editor="true"><div><p>SQL 2008 R2 is&nbsp;a little tricky to install if you don’t have the right permissions.&nbsp; If the account you are using does not have the correct permissions you will find yourself getting loads of strange errors such as below during the installation.</p><p>not all privileges or groups referenced are assigned to the caller</p><p>The process does not possess the ‘SeSecurityPrivilege’ privilege which is required for this operation</p><p>The error will prompt you to retry or cancel.&nbsp; If you cancel your SQL installation will fail and if you retry you will be prompted with the error again.</p><p>The way to resolve this issue is to grant the account you are using the correct privileges.</p><p>Local Administrator on the box you are installing SQL</p><p>Goto &gt; Local Security Policy &gt; User Rights Management<br> Back up files and directories<br> Debug Programs<br> Manage auditing and Security log<br> Restore files and directories<br> Take ownership of files or other objects</p><p>Add your installation user account to the above User Rights Management</p><p>Once this has taken affect you should be able to install SQL without any issues.</p></div></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Mon, 21 Aug 2017 18:59:24 +0000</pubDate></item><item><title><![CDATA[SharePoint Performance Tricks: Optimizing SQL]]></title><link>https://www.gtconsult.com/blogs/post/sharepoint-performance-sql</link><description><![CDATA[Our CEO and co-founder, Brad Geldenhuys, has shared some tips and tricks for optimizing SQL. We love when Brad lets loose with&nbsp;his technical chop ]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_acF00UCHSxe2rYHJaSF_eg" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_KkzNIQUqT0K-ilsyCOQ8WQ" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_wwfcYmL9ReOv_1a6iLZPPg" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_UU61wYyLR6yl6mNA5uT2LQ" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align-center " data-editor="true"><div><p><strong>Our CEO and co-founder, Brad Geldenhuys, has shared some tips and tricks for optimizing SQL. We love when Brad lets loose with&nbsp;his technical chops, and so will you!</strong></p><p>=======</p><p>I work with SharePoint for a living, we have a number of clients ranging across the board from mining to professional services, retail to automotive and everything in between.&nbsp; In my earlier years as a SharePoint consultant, the solution was the most important part of requirement for me and over time I have come to realize that while the solution is the end goal. If the performance of that solution is not acceptable the solution will fail.&nbsp; This concept applies to all clients big and small and to everyone involved in the solution from SharePoint consultant to client.</p><p>In my experience there are 4 key items which lay the foundation of SharePoint Performance.</p><ol><li>Infrastructure</li><li>Operating System</li><li>SQL</li><li>SharePoint Architecture</li></ol><p>Any of the above key fundamentals are missing SharePoint will either not perform at all or very slowly, either of which is not desirable.</p><p>Today we are going to unpack SQL tricks to improve SharePoint performance, and not only that, we are going to measure the performance increase with <a href="https://www.gtconsult.com/portfolio-item/umlindi/">Umlindi </a>to get real-time results.</p><h1 id="thebenchmark">The Benchmark</h1><p>I am using a free download of <a href="https://www.gtconsult.com/portfolio-item/umlindi/">Umlindi SharePoint Protector</a> to monitor my SharePoint environment and the current score is 40 with a page load of 281 milliseconds.</p><p><img src="/wp-content/uploads/2020/06/UmlindiHighScore.png" alt="UmlindiHighScore"></p><p>We need to get that down to as close to 0 as possible.</p><h2 id="parallelism">Parallelism</h2><p>Parallelism is important and explained very well in this video <a href="https://www.youtube.com/watch?v=QkymlR4ZdIE">https://www.youtube.com/watch?v=QkymlR4ZdIE</a> By Brent Ozar</p><p>First things first, let’s Open the Advanced Tab in SQL Studio Manager and check to see what those defaults are set to and see if we can optimize there.</p><p><img src="/wp-content/uploads/2020/06/SQLParral-1024x889.png" alt="SQLParral"></p><p>To cut a long story short we are going to up Cost Threshold for Parallelism to 50 and Max Degree of Parallelism to 4 because we have 4 cores on our DB server.</p><p>The default value for Cost Threshold is too low and the default value for Max Degree is too high so we tweak them to be just right.</p><h2 id="fillfactor">Fill Factor</h2><p>We are also going to change the Default index fill factor to 80 to reduce overall fragmentation’s of our databases.&nbsp; We set this to 80.</p><p><img src="/wp-content/uploads/2020/06/fillfactor.png" alt="fillfactor"></p><p>I know this is a very sticky area and there are many blogs and opinions out there as to what to do for this area. However from our testing and a number of expert opinions this is great settings for SharePoint.</p><p>Benjemin Matthews on Fill Factor – <a href="http://www.benjaminathawes.com/2012/01/23/sharepoint-sql-server-fill-factor-and-index-rebuilds-a-correction/">http://www.benjaminathawes.com/2012/01/23/sharepoint-sql-server-fill-factor-and-index-rebuilds-a-correction/</a></p><h2 id="addbackupcompression">Add backup compression</h2><p>In the words of Brent Ozar &nbsp;<a href="https://www.brentozar.com/archive/2013/09/five-sql-server-settings-to-change/">https://www.brentozar.com/archive/2013/09/five-sql-server-settings-to-change/</a></p><p><img src="/wp-content/uploads/2020/06/compressbackup.png" alt="compressbackup"></p><p><em>“Free compression! If you’re using SQL Server starting with SQL Server 2008R2, you can flip a check box and get yourself some backup compression. This is a no brainer, really – backups are smaller, they take less time, and the restores even take less time. What’s not to love?”</em></p><h2 id="instantfileinitialization">Instant File Initialization</h2><p>You won’t find a setting for Instant File Initialization in Studio Manager</p><p>Instead SQL detects whether or not the service account it’s running under has the <strong>Perform Volume Maintenance Tasks</strong>&nbsp;permission in the Windows Security Policy. You can find and edit this policy by running&nbsp;<strong>secpol.msc</strong>&nbsp;(Local Security Policy) in Windows. Then:</p><ol><li>Expand the Local Policies Folder</li><li>Click on User Rights Assignment</li><li>Go down to the “Perform Volume Maintenance Tasks” option and double click it</li><li>Add your SQL Server Service account, and click OK out of the dialog.</li></ol><p><img src="/wp-content/uploads/2020/06/localsecurity.png" alt="localsecurity"></p><p>More from Brent Ozar the SQL Master, but bottom line here is shaving off bits of performance where possible.&nbsp;<a href="https://www.brentozar.com/blitz/instant-file-initialization/">https://www.brentozar.com/blitz/instant-file-initialization/</a></p><p>Now after all those changes we reboot the SQL box and lets see what happens to the SharePoint Umlindi Score if it has made any difference.</p><h1 id="theresult">The&nbsp;Result</h1><p><img src="/wp-content/uploads/2020/06/umlindigood.png" alt="umlindigood"></p><p>Excellent our Umlindi scores is now down to just 20 and on 89 millisecond page load time.&nbsp; That’s a huge saving and an overall gain to our users on the SharePoint environment.</p><p>I have already made significant improvements to this environment with Infrastructure, OS and SharePoint tips and tricks, I will post those findings soon for you guys so stay tuned.</p><p>Get your free download of <a href="https://www.gtconsult.com/portfolio-item/umlindi/">Umlindi SharePoint Protector</a> and start improving monitoring and improving your SharePoint environment today.</p><p>=======</p><p>Want more info on the benefits of Umlindi? Check out this video!</p><a href="https://www.youtube.com/embed/kD_dmVznUHA" target="_blank">https://www.youtube.com/embed/kD_dmVznUHA</a></div></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Wed, 10 Feb 2016 13:14:27 +0000</pubDate></item></channel></rss>