<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin M SarmientoSQL Server Authentication &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/sql-server/sql-server-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>“Thou Shalt Configure MAXDOP For SharePoint 2013″ Is No Longer Needed</title>
		<link>https://www.edwinmsarmiento.com/thou-shalt-configure-maxdop-for-sharepoint-2013%e2%80%b3-is-no-longer-needed/</link>
		<comments>https://www.edwinmsarmiento.com/thou-shalt-configure-maxdop-for-sharepoint-2013%e2%80%b3-is-no-longer-needed/#comments</comments>
		<pubDate>Mon, 15 Jul 2013 21:00:47 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[SQL Server Authentication]]></category>
		<category><![CDATA[MAXDOP]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[SharePoint best practices]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/?p=790</guid>

				<description><![CDATA[Last year I started to get involved in the SharePoint community, particularly the SharePoint Saturday events. As a SQL Server DBA, I thought that SharePoint administrators need to have a fair understanding of the underlying database because it is the backbone of a highly-performing SharePoint farm. That gave me the idea of doing a presentation [&#8230;]]]></description>
					<content:encoded><![CDATA[<p>Last year I started to get involved in the SharePoint community, particularly the <a href="http://spsevents.org/Pages/home.aspx" target="_blank">SharePoint Saturday events</a>. As a SQL Server DBA, I thought that SharePoint administrators need to have a fair understanding of the underlying database because it is the backbone of a highly-performing SharePoint farm. That gave me the idea of doing a presentation on database configuration for maximum SharePoint performance. I first did the presentation at a SharePoint Saturday event in Ottawa and was very well received (I blogged about it <a href="http://bassplayerdoc.wordpress.com/2012/11/20/database-configurations-to-improve-sharepoint-performance/" target="_blank">here</a>). Because of that, I got invited to deliver the same presentation for another SharePoint Saturday event. This time, it&#8217;s in Montreal. I made the slides available on <a href="http://www.slideshare.net/bassplayerdoc/database-configuration-for-maximum-sharepoint-2010-performance" target="_blank">SlideShare</a> for reference.<br />
<a href="http://www.slideshare.net/bassplayerdoc/database-configuration-for-maximum-sharepoint-2010-performance" target="_blank"><img fetchpriority="high" decoding="async" class="aligncenter" alt="" src="http://bassplayerdoc.files.wordpress.com/2013/07/dbconfig_sp.jpg" width="470" height="352" /></a></p>
<p>One of the things I mentioned in the presentation is the need for a dedicated SQL Server instance just for the SharePoint farm. There are two main reasons why that is the case. First, SharePoint requires a specific collation for the content databases. <a href="http://support.microsoft.com/kb/2008668" target="_blank">Microsoft KB 2008668 </a> mentions the collation required for the content databases and the recommended one for the instance (while the KB article mentions SharePoint 2007, it still applies to <a href="http://technet.microsoft.com/en-us/library/cc262869.aspx#beforeyoubegin" target="_blank">SharePoint 2010</a> and <a href="http://technet.microsoft.com/en-us/library/cc262781.aspx" target="_blank">2013</a>.) If your databases require a collation other than those, the collation difference will cause a lot of issues. Hence, the recommendation for a dedicated SQL Server instance.</p>
<p>Another reason for having a dedicated SQL Server instance for the SharePoint farm is the instance-wide <strong>maximum degree of paralellism</strong> configuration. This is clearly documented in this <a href="http://technet.microsoft.com/en-us/library/hh292622.aspx" target="_blank">Microsoft TechNet article</a>. Now, if you&#8217;re a SQL Server DBA, you might be laughing at this because it is not a best practice that we apply to our SQL Server instances. We usually analyze the workload and decide whether to keep the default setting of zero or tweak it to a number that would address the workload. However, SharePoint requires a maximum degree of parallelism of <strong>1</strong>. Yes, that wasn&#8217;t a typo. This is one of the settings that I check whenever performing a best practices configuration check for a SQL Server instance running SharePoint databases. In the past, SharePoint will just install and create content databases even when the instance-wide maximum degree of parallelism value is not equal to 1. With SharePoint 2013, this is no longer the case. In fact, in the earlier builds of SharePoint 2013, the installation media will inform you that the maximum degree of parallelism is not set to 1 and will halt the installation with the error message below.</p>
<p><em><span style="color:red;">New-SPConfigurationDatabase : This SQL Server instance does not have the required &#8220;max degree of parallelism&#8221; setting of 1. Database provisioning operations will continue to fail if &#8220;max degree of parallelism&#8221; is not set 1 or the current account does not have permissions to change the setting. See documentation for details on manually changing the setting</span></em></p>
<p>As I was preparing a new SharePoint 2013 farm for my test environment, I decided to play around with it. I intentionally switched my SQL Server instance&#8217;s maximum degree of parallelism from 1 to 0 just so I could hit the error. For the installation, I used the SharePoint 2013 build <strong>15.0.4420.1017</strong> released back in 24-Oct-2012. For starters, I used the SharePoint configuration wizard to create the farm and made sure that my maximum degree of parallelism configuration is set to 0. To my surprise, the installation went well. I decided to check the maximum degree of parallelism configuration after the installation and was shocked to see that it was changed to a value of 1. Not satisfied with what I found out, I recreated the SharePoint 2013 farm and decided to run SQL Profiler to capture the SQL statements being sent to the SQL Server instance while the SharePoint farm is initially created. This is what I found.</p>
<pre class="brush: sql; title: ; notranslate">
--DELETE_SQL_AZURE_START
IF (SELECT value FROM sys.configurations WHERE name = 'max degree of parallelism') &amp;lt;&amp;gt; 1
BEGIN
 exec sp_configure 'show advanced options', 1;
 RECONFIGURE WITH OVERRIDE;
 exec sp_configure 'max degree of parallelism', 1;
 RECONFIGURE WITH OVERRIDE;
END
--DELETE_SQL_AZURE_END
IF EXISTS (SELECT TOP 1 1 FROM sys.types WHERE name='tSystemID')
 DROP TYPE &#x5B;dbo].&#x5B;tSystemID]
</pre>
<p>Part of the SharePoint 2013 farm build process is to check whether or not the max degree of parallelism configuration value is equal to 1. This is a good thing. This means that if this configuration setting was ignored during the installation of your SQL Server instance, SharePoint 2013 will reconfigure it for you. But I didn&#8217;t stop there. I decided to switch it back from 1 to 0 before creating a new site collection. The site collection will create a corresponding content database, if one doesn&#8217;t already exist. I fired up SQL Profiler again to capture the SQL statements getting executed against the SQL Server instance. The same statements are being executed prior to creating the content database for the site collection. So, even if somebody accidentally changed the configuration setting from 1 to something else, SharePoint will automatically change it to 1 whenever a new content database is created.</p>
<p>While this is a good change in SharePoint 2013, I strongly recommend regularly checking your SQL Server instances for configuration changes that do not follow best practices, particularly those that are well documented. Even better is configuring your monitoring tool to notify you when this configuration setting is changed. A proactive approach to managing SQL Server instances will make sure that you minimize issues that you might come across with, whether they be performance-, reliability-, or security-related.</p>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/thou-shalt-configure-maxdop-for-sharepoint-2013%e2%80%b3-is-no-longer-needed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">790</post-id>	</item>
		<item>
		<title>&#8220;Cannot Generate SSPI Context&#8221; errors</title>
		<link>https://www.edwinmsarmiento.com/cannot-generate-sspi-context-errors/</link>
		<comments>https://www.edwinmsarmiento.com/cannot-generate-sspi-context-errors/#respond</comments>
		<pubDate>Thu, 14 Jan 2010 21:57:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[SQL Server Authentication]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2010/01/14/cannot-generate-sspi-context-errors</guid>

				<description><![CDATA[I get to deal with this type of error on a regular basis and, most of the time, end up recommending updating the SQL Server server principal name (SPN) using the setspn utility or simply rebooting the server. I was reading thru the SQL Server CSS blog today and found out another reason for this [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">I get to deal with this type of error on a regular basis and, most of the time, end up recommending updating the SQL Server server principal name (SPN) using the </span><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=5fd831fd-ab77-46a3-9cfe-ff01d29e5c46&amp;displaylang=en"><span style="font-family:arial;">setspn</span></a><span style="font-family:arial;"> utility or simply rebooting the server. I was reading thru the </span><a href="http://blogs.msdn.com/psssql/archive/2009/12/30/cannot-generate-sspi-context-and-service-account-passwords.aspx"><span style="font-family:arial;">SQL Server CSS blog</span></a><span style="font-family:arial;"> today and found out another reason for this error message &#8211; changed SQL Server service account passwords. While I do not recommend changing the service account passwords during production hours, there may be cases where the account&#8217;s password need to be changed as well as the corresponding credentials on the services while waiting for approval for downtime to restart the service. Lesson learned from this blog post is that (1) never change service account passwords during production hours and (2) always restart the SQL Server service immediately after changing the service account password for Kerberos to function properly. No wonder a reboot usually fixes this issue as it also restartes the SQL Server service. I will have to reproduce this to validate</span></p>
<div class="blogger-post-footer"><img decoding="async" src="" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/cannot-generate-sspi-context-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">207</post-id>	</item>
	</channel>
</rss>