<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Gabriel Nóvoa Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/gabn/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/gabn/feed.xml</link>
    <description>Premier Field Engineer - SharePoint Server and Office 365</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:25:24 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Configuring SQL Server alias with SharePoint Server 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/gabn/configuring-sql-server-alias-with-sharepoint-server-2013</link>
      <pubDate>Mon, 14 Apr 2014 08:43:16 GMT</pubDate>
      <dc:creator><![CDATA[Gabriel Nóvoa]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/gabn/2014/04/14/configuring-sql-server-alias-with-sharepoint-server-2013/</guid>
      <description><![CDATA[This post will show how to configure SQL Server alias in a SharePoint Server 2013 environment and...]]></description>
      <content:encoded><![CDATA[<p>This post will show how to configure SQL Server alias in a SharePoint Server 2013 environment and the benefits of this configuration.</p>
<!--more-->
<p>SQL Server alias is very usefull in the following scenarios:</p>
<ul>
<li>Upgrading your SQL Server from a older version</li>
<li>Migrating your Databases from a instance to other</li>
<li>Aplying a database switch on a Disaster Recovery</li>
</ul>
<p>This setting is a best practice when you are creating a new Farm, because it is possible to easily switch your database instance without major changes. This happens because SharePoint will connect to the alias that will be configured and not to a specific SQl Server instance. If a SQL Server instance goes down, SharePoint can be pointed to another instance, just changing the alias&rsquo; information.</p>
<p><strong><span style="color:#000000;">IMPORTANT</span></strong>: This configuration must be done on all server where SharePoint Server is installed (aka Application servers and Web Front-End servers). Don&rsquo;t do this on the SQL Server.</p>
<p>The following steps show how to create a SQL Server alias on SharePoint 2013 Servers&nbsp; using the SQL Server Client Network Utility:</p>
<p>1 - Run <em>SQL Server Client Network Utility</em> at:</p>
<p><strong>C:\windows\system32\cliconfg.exe</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_09D60E53.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_09D60E53.png"><img width="454" height="296" title="image" style="background-image:none;float:none;padding-top:0px;padding-left:0px;margin-left:auto;display:block;padding-right:0px;margin-right:auto;border-width:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_108BA887.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_108BA887.png" border="0" /></a></p>
<p>2 - Select the <strong>Alias</strong> tab, and click <strong>Add</strong>.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_142C5415.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_142C5415.png"><img width="454" height="295" title="image" style="background-image:none;float:none;padding-top:0px;padding-left:0px;margin-left:auto;display:block;padding-right:0px;margin-right:auto;border-width:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_0D0FA84E.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_0D0FA84E.png" border="0" /></a></p>
<p>3 - From the <strong>Network Libraries</strong> section, select <strong>TCP/IP</strong>.</p>
<p>4 - Type an alias in the <strong>Server Alias</strong> text box and the SQL Server instance in the <strong>Server Name</strong> text box.</p>
<p>5 - Check <strong>Dynamically Determine Port</strong> and click <strong>OK</strong>.</p>
<p><strong>NOTE</strong>: If you use another port to connect on SQL Server, uncheck this option and set the correct port manually.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_69E23D9B.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_69E23D9B.png"><img width="454" height="244" title="image" style="background-image:none;float:none;padding-top:0px;padding-left:0px;margin-left:auto;display:block;padding-right:0px;margin-right:auto;border-width:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_34D83F1C.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_34D83F1C.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_6D8579DA.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_6D8579DA.png"><img width="454" height="296" title="image" style="background-image:none;float:none;padding-top:0px;padding-left:0px;margin-left:auto;display:block;padding-right:0px;margin-right:auto;border-width:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_15B7B2ED.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_15B7B2ED.png" border="0" /></a></p>
<p>6 - Run the 32-bit version at:</p>
<p><strong>C:\windows\syswow64\cliconfg.exe</strong></p>
<p>7 - Repeat all these steps in 32-bit version of <em>SQL Server Client Network Utility</em>.</p>
<p>Now you can create your Farm, setting, on the <strong>Database Server</strong> field in Configuration Wizard, the name of the alias that you have created. If you need to change the SQL Server Instance for you SharePoint databases, you just need running the <em>SQL Server Client Network Utility</em> again and change the <strong>Server Name</strong> text box.</p>
<p>Remember to do this configuration in all SharePoint Servers that you have in your Farm.</p>
<h2><span style="color:#ff0000;">[UPDATE 04/16/14]</span></h2>
<p>Considering a large SharePoint environment, following the steps above is a very arduous task. To automate this configuration and easily deploy on multiple servers, you can use the following PowerShell commands:</p>
<p>For 64-bit version:</p>
<p><code><strong><span style="color:#0000ff;">New-ItemProperty</span> HKLM:SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo <span style="color:#0000ff;">&ndash;name</span> &lt;your_alias&gt; <span style="color:#0000ff;">-propertytype</span> String <span style="color:#0000ff;">-value</span> <span style="color:#c0504d;">&quot;DBMSSOCN,&lt;your_sql_instance&gt;,1433&quot;</span></strong></code></p>
<p>For 32-bit version:</p>
<p><code><strong><span style="color:#0000ff;">New-ItemProperty</span> HKLM:SOFTWARE\Wow6432Node\Microsoft\MSSQLServer\Client\ConnectTo <span style="color:#0000ff;">&ndash;name</span> &lt;your_alias&gt; <span style="color:#0000ff;">-propertytype</span> String <span style="color:#0000ff;">-value</span> <span style="color:#c0504d;">&quot;DBMSSOCN,&lt;your_sql_instance&gt;,1433&quot;</span></strong></code></p>
<p>Where:</p>
<p>&lt;your_alias&gt; = The name of your alias (In my case &ldquo;sharepoint&rdquo;)</p>
<p>&lt;your_sql_instance&gt; = The name of your SQL Server Instance (In my case &ldquo;SQL2012\SHAREPOINT&rdquo;)</p>
<p><strong>NOTE</strong>: Thanks for my friend Christian Keller (SharePoint Premier Field Engineer from Microsoft Germany) who suggested me to update my post including large environments.</p>]]></content:encoded>
    </item>
    <item>
      <title>Issue on SharePoint 2010 Crawling Schedule</title>
      <link>https://docs.microsoft.com/archive/blogs/gabn/issue-on-sharepoint-2010-crawling-schedule</link>
      <pubDate>Wed, 26 Mar 2014 11:37:00 GMT</pubDate>
      <dc:creator><![CDATA[Gabriel Nóvoa]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/gabn/2014/03/26/issue-on-sharepoint-2010-crawling-schedule/</guid>
      <description><![CDATA[This post will show a way to solve a problem related to SharePoint 2010 Crawl Schedule. This problem...]]></description>
      <content:encoded><![CDATA[<p>This post will show a way to solve a problem related to SharePoint 2010 Crawl Schedule. This problem is a real-life scenario that was encountered in the field and the steps of analysis and troubleshoot will be described.</p> <!--more--> <h2>Scenario</h2> <p>I found a problem when I tried to create a full schedule on the default SharePoint&nbsp; Content Source. To reach this problem I followed these steps:</p> <p><strong>1 - Open SharePoint 2010 Central Administration</strong></p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_2DE3262A.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_2DE3262A.png"><strong><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_0EF0C66D.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_0EF0C66D.png" width="554" height="229" /></strong></a></p> <p><strong>2 - Click “<em>Manage Service Applications”</em> at “<em>Application Management”</em> group</strong> </p> <p><strong>3 - In the list of Service Applications, select your Search Service and at Ribbon choose <em>“Manage”</em>.</strong></p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_72A72260.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_72A72260.png"><strong><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_02E18CD9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_02E18CD9.png" width="554" height="196" /></strong></a></p> <p><strong>4 - To create crawl schedule, click “<em>Content Sources</em>”</strong></p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_637C09BA.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_637C09BA.png"><strong><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_4A3B4286.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_4A3B4286.png" width="554" height="229" /></strong></a></p> <p><strong>5 - Click at the name of your contente source (In my case Local SharePoint sites)</strong> </p> <p><strong>6 – At this screen you can schedule your incremental and full crawls clicking “<em>Create Schedule</em>”</strong></p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_4967FDFE.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_4967FDFE.png"><strong><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_3C4B41A2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_3C4B41A2.png" width="554" height="247" /></strong></a></p> <p><strong>7 - After schedule configured, click “OK” to close this pop-up window</strong> </p> <p><strong>8 - At “Edit Content Source” screen, when you click “OK”, to commit changes, the screen refreshes and nothing happens.</strong></p> <h2>Troubleshoot</h2> <p>To analyze and diagnose this issue, the above scenario was made several times to generate multiple occurrences in Logs and facilitate analysis.<br />The first approach was analyze web requests. Through Fiddler, all the requests of Web protocols was analysed during the test described in the scenario. But this analysis was not sufficient to diagnose the problem. The next step was to analyze IIS Logs, ULS and Event Viewer.<br />At this analysis were found many access permission errors (ACCESS DENIED). However in all sources of information, the location and access denied user were not specified. Looking at GPO result, it was possible to discover that the permissions of the Tasks folder was changed.</p> <h2>Solution</h2> <p>In this case, this problem occurs because a Group Policy was applied and changed the permissions at Task folder <em>(%windir%\Tasks</em>). SharePoint uses this folder to store information about crawl schedule and the following permissions are necessary:</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_597B2C70.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_597B2C70.png"><img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/00/75/metablogapi/image_thumb_021C2929.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-00-75-metablogapi/image_5F00_thumb_5F00_021C2929.png" width="289" height="349" /></a></p> <p>So, it’s important to maintain the groups WSS_ADMIN_WPG and WSS_WPG with Full Control permissions at this folder.</p> <p>Follow these steps to change the permissions:</p> <ol> <li><strong>Open Command Prompt</strong>  </li><li><strong>Type the command <font color="#ff0000">attrib –s %windir%\tasks</font></strong>  </li><li><strong>Open the folder %windir%\Tasks in Windows Explorer</strong>  </li><li><strong>Inside the folder, right-click and select Security tab</strong>  </li><li><strong>Grant to the WSS_WPG and WSS_ADMIN_WPG the Full Control permission</strong>  </li><li><strong>Restart IIS using the command IISRESET \NOFORCE inside Command Prompt</strong>  </li><li><strong>Type the command <font color="#ff0000">attrib</font> <font color="#ff0000">+s %windir%\tasks</font></strong></li></ol> <p><font color="#000000">Now you can try creating the crawl schedules again and everything should works fine!</font></p>]]></content:encoded>
    </item>
  </channel>
</rss>