<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Microsoft SQL Server</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mdegre/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mdegre/feed.xml</link>
    <description>SQL Server Core Engineer Tips</description>
    <lastBuildDate>Mon, 02 Nov 2015 07:20:05 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SQL transaction log unexpecting grow on my published database</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/sql-transaction-log-unexpecting-grow-on-my-published-database</link>
      <pubDate>Wed, 20 Nov 2013 17:08:00 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/11/20/sql-transaction-log-unexpecting-grow-on-my-published-database/</guid>
      <description><![CDATA[Problem description: The transaction log grow up without end.&nbsp;Cause: After investigation we can...]]></description>
      <content:encoded><![CDATA[<p><strong>Problem description:</strong> The transaction log grow up without end.<p>&nbsp;</p><p><strong>Cause:</strong> After investigation we can confirm that the distributor database is with sync with backup option. And that cause the issue</p><p>&nbsp;</p><p><strong>Resolution:</strong> At this end to solve the issue, I remove this option that we don't need. I also check this property to all our publised database to be sure on the impact. And get a back in recovery model simple</p><p>select <span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;">@@SERVERNAME</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;">DATABASEPROPERTYEX</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'DistributionDB'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'IsSyncWithBackup'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">)</span></span></span></p><p>EXECUTE <span style="color: #800000; font-family: Consolas; font-size: x-small;"><span style="color: #800000; font-family: Consolas; font-size: x-small;"><span style="color: #800000; font-family: Consolas; font-size: x-small;">sp_replicationdboption</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">@dbname</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'DistributionDB'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">@optname</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'sync with backup'</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">@value</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'false'</span></span></span></p><p>select <span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;">@@SERVERNAME</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;">DATABASEPROPERTYEX</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'DistributionDB'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'IsSyncWithBackup'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">)</span></span></span></p><p>&nbsp;<br>But if you need it, you could also&nbsp; plan a backup log every hour and every day for your distributation base in recovery model FULL.</p><p>&nbsp;</p><p>&nbsp;</p><p><br><strong>Work done :</strong> here I'm sharing my troubleshooting step that I did to understand this issue.</p><p>&nbsp;</p><p><strong><span style="color: #3366ff;">Step 1:</span></strong> I run the dbcc loginfo, and I found out that the number of VLF is increasing to 8135. Yesterday it was around 5000. That we can see that the status is 2, so almost all VLF are used and we are not able to truncate them.</p><p>&nbsp;</p><p><strong><span style="color: #3366ff;">Step 2:</span></strong> I had a look to see what the log is waiting to be reuse, we can see that we are pending replication.</p><p>select <span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">name</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">log_reuse_wait_desc</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">from</span></span></span><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;">sys</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">.</span></span></span><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;">databases</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">where</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">name</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myDBName'</span></span></span></p><table>
<tbody>
<tr>
<td>&nbsp;name&nbsp;</td>
<td>&nbsp;log_reuse_wait_desc</td>
</tr>
<tr>
<td>'myDBName'</td>
<td>REPLICATION</td>
</tr>
</tbody>
</table><p>&nbsp;</p><p><strong><span style="color: #3366ff;">Step 3:</span></strong> I had a look&nbsp;to the Log reader and it was running and replicating the transactions on the distributor database. We saw that inside the verbos log level 2 that we enable.</p><p>-Publisher [myPublisherServer] -PublisherDB [myPublisherDB] -Distributor [MyDistributorServer] -DistributorSecurityMode 1&nbsp; -Continuous -OutputVerboseLevel 2 -Output C:\ReplLog\ReplOutput.txt</p><p><br><span style="color: #3366ff;"><strong>Step 4:</strong></span> I enabled the Tracer to see the latency, and we don&rsquo;t have any latencies on this replication.</p><p>&nbsp;</p><p><span style="color: #3366ff;"><strong>Step 5:&nbsp;</strong></span> &ldquo;Oldest non-distributed LSN&rdquo; does not change since a couple of days. I found that after &nbsp;runing several time a&nbsp;DBCC OPENTRAN :</p><p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Transaction information for database 'myDBName'.</em></p><p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Replicated Transaction Information:</em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Oldest distributed LSN&nbsp;&nbsp;&nbsp;&nbsp; : (1218321:2940:24)</em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000;"><strong>Oldest non-distributed LSN : (1218321:2959:1) --&gt; this part didn't change during serverals days</strong></span></em></p><p><strong></strong>&nbsp;</p><p><span style="color: #3366ff;"><strong>Step 6:</strong></span>&nbsp;Now the step was to see if the option synchWithBackup is enable the Distributor and the Publisher</p><p>On the distributor:&nbsp; select @@servername, DATABASEPROPERTYEX('DistributionDbName','IsSyncWithBackup')</p><p>&#61672;&nbsp;This option was at&nbsp;TRUE</p><p>On the publisher : select @@SERVERNAME, DATABASEPROPERTYEX('publisherDBName','IsSyncWithBackup')</p><p>&#61672;&nbsp;This option was at&nbsp; FALSE</p><p>For information this option means : The database is either a published database or a distribution database, and can be restored without disrupting transactional replication.</p><p>&nbsp;</p><p><span style="color: #3366ff;"><strong>Step 7:</strong></span> To confirm the issue is due to this option,&nbsp;I put in the same recovery model the distributor database that the use db. Then&nbsp;I run a backup full an log</p><p>BACKUP <span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">DATABASE</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">[distributionDB]</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">TO</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">DISK</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">N'C:\mydump.BAK'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">;</span></span></span></p><p>BACKUP <span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;"><span style="color: #ff00ff; font-family: Consolas; font-size: x-small;">LOG</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">[distributionDB]</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">TO</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">DISK</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">N'C:\mydump.TRN'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">;</span></span></span></p><p>&nbsp;</p><p>After this backup log all VLF on the published database become to 0 and the transaction log can be truncate now.</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>Regards,</p><p>Michel Degremont | Xbox Live Music -&nbsp;Data Engineer&nbsp;- SQL Server &amp; PDW&nbsp;|</p><p>&nbsp;</p><p>&nbsp;</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Command sp_cycle_agent_errorlog is failing</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/command-sp_cycle_agent_errorlog-is-failing</link>
      <pubDate>Tue, 03 Sep 2013 07:23:00 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/09/03/command-sp_cycle_agent_errorlog-is-failing/</guid>
      <description><![CDATA[&nbsp;&nbsp;Problem description: on ours SQL Server 2008, when we execute "EXECUTE...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<p>&nbsp;</p><p><strong>Problem description:</strong> on ours SQL Server 2008, when we execute "EXECUTE msdb.[dbo].[sp_cycle_agent_errorlog] ", we got the error message below:</p><p>&nbsp;&nbsp;&nbsp; <strong><span style="color: #ff0000; background-color: #ffffff;">Msg 22022, Level 16, State 1, Line 0</span></strong><br><strong><span style="color: #ff0000; background-color: #ffffff;">&nbsp;&nbsp;&nbsp; SQLServerAgent Error: 32.</span></strong></p><p><strong>Work done:</strong></p><p>&nbsp;</p><p><span style="text-decoration: underline;">Step1:&nbsp;</span>We can see that the log is recycled. The file SQLAGENT.OUT contains for each execution the message below:</p><p>&nbsp;&nbsp; [412] Errorlog has been reinitialized.&nbsp; See previous log for older entries.</p><p><span style="text-decoration: underline;">Step2:</span> Inside the <a title="procmon" href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx">procmon</a>, we can see a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SHARING VIOLATION</p><table>
<tbody>
<tr>
<td style="width: 25px;">&nbsp;</td>
<td>
<p><span style="color: #808080;"><em>Event Class:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File System</em></span><br><span style="color: #808080;"><em>Operation:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CreateFile</em></span><br><span style="color: #808080;"><strong><em>Result:&nbsp; SHARING VIOLATION</em></strong></span><br><span style="color: #808080;"><em>Path:&nbsp;&nbsp;&nbsp;&nbsp; H:MSSQL10.MSSQLSERVERMSSQLLogSQLAGENT.OUT</em></span><br><span style="color: #808080;"><em>Desired Access:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Read Attributes, Delete, Synchronize</em></span><br><span style="color: #808080;"><em>Disposition:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open</em></span><br><span style="color: #808080;"><em>Options:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Synchronous IO Non-Alert, Open Reparse Point</em></span><br><span style="color: #808080;"><em>ShareMode:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Read, Write, Delete</em></span></p>
</td>
</tr>
</tbody>
</table><p><span style="text-decoration: underline;">Step3:</span> With process explorer, I didn&rsquo;t see that another process owns the same file SQLAGENT.OUT</p><p>&nbsp;</p><p><strong>Cause:</strong> After investigation, we can see that SQLAgent.exe is locked by himself. If you run <a title="Handle  " href="http://technet.microsoft.com/en-us/sysinternals/bb896655">Handle</a> you will see that 2 handle are opened. And it should be only one. It look like a handle leak.</p><p>&nbsp;</p><table>
<tbody>
<tr>
<td style="width: 25px;">&nbsp;</td>
<td>
<p>C:&gt;<span style="background-color: #c0c0c0;"><strong>handle.exe -a sqlagent.out</strong></span></p>
<p>&nbsp;</p>
<p>SQLAGENT.EXE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pid: 13196&nbsp; type: File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000;">FA4:</span> H:MSSQL10.MSSQLSERVER<br>MSSQLLogSQLAGENT.OUT<br>SQLAGENT.EXE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pid: 13196&nbsp; type: File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000;">10AC:</span> H:MSSQL10.MSSQLSERVER<br>MSSQLLogSQLAGENT.OUT</p>
<p>&nbsp;</p>
<p>C:&gt;<span style="color: #888888;"><strong>tasklist |findstr 13196</strong></span><br>SQLAGENT.EXE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13196 Services&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 52 096 K</p>
</td>
</tr>
</tbody>
</table><p>&nbsp;</p><p>&nbsp;</p><p><strong>Current workaround:</strong> Restart SQL Agent service on server.</p><p>&nbsp;</p><p>&nbsp;NB : currently I am investigating&nbsp;my colleague from Microsoft Support&nbsp;(3rd December 2013)</p><p>&nbsp;</p><p>Regards,</p><p>Michel Degremont | Xbox Live Music -&nbsp;Data Engineer&nbsp;- SQL Server &amp; PDW&nbsp;|</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Unable to install SCOM 2012 Reporting Services</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/unable-to-install-scom-2012-reporting-services</link>
      <pubDate>Mon, 27 May 2013 08:47:00 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/05/27/unable-to-install-scom-2012-reporting-services/</guid>
      <description><![CDATA[Problem description: you are trying to install SCOM 2012, and the SQL Server reporting service 2012...]]></description>
      <content:encoded><![CDATA[<p><strong>Problem description:</strong> you are trying to install SCOM 2012, and the SQL Server reporting service 2012 part failed.<p>&nbsp;</p><p><strong>Error message:</strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt; Inside SCOM Setup installation, you got the error message below</p><p><span style="color: #ff0000;"><em>eThe specified SQL Server instance is not valid.&nbsp; The possible causes of this problem include the following:</em></span><br><span style="color: #ff0000;"><em>* SSRS has not been configured correctly</em></span><br><span style="color: #ff0000;"><em>* Secure Socket Layer (SSL) is configured for the SQL Server Report Server.</em></span><br><span style="color: #ff0000;"><em>* A proxy server is configured for the SQL Server Report Server.e</em></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt; And if you open your report server <a href="http://myserver/reportserver">http://myserver/reportserver</a>, you got the error message below</p><p><em><span style="color: #ff0000;">"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"</span></em></p><p>&nbsp;</p><p><strong>Troubleshooting step:</strong></p><p><span style="text-decoration: underline;">Step 1:</span> Go on the SSRS log file to get more detail. By default is here: C:Program FilesMicrosoft SQL ServerMSRSXX.MSSQLSERVERReporting ServicesLogFiles</p><p><span style="text-decoration: underline;">Step 2:</span> Open the last ReportServerService...txt, and have a look to the last error at the end of the file.</p><p>In my case, I have got this error:</p><p><span style="color: #ff0000;"><em>ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: Unable to load assembly Microsoft.EnterpriseManagement.Reporting.Security, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: Le serveur de rapports a rencontr&eacute; une erreur de configuration.&nbsp; ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EnterpriseManagement.Reporting.Security' or one of its dependencies. The system cannot find the file specified.</em></span></p><p><strong>Cause:</strong> This issue is due to SCOM that it changes the configuration files of the SQL Reporting Service.</p><p><strong>Resolution:</strong></p><p><span style="text-decoration: underline;">Choice 1:</span> Uninstall and reinstall SSRS</p><p><span style="text-decoration: underline;">Choice 2 :</span> When SCOM 2012 change the SQL Reporting Service 2012 configuration files, it takes the backup of the Reporting Service&rsquo;s configuration files as: RSReportServer.config.0 and RSReportServer.config.1.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - So, go to C:Program FilesMicrosoft SQL ServerMSRSXX.MSSQLSERVERReporting ServicesReportServer.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Then remove the file RSReportServer.config. And rename RSReportServer.config.0 to&nbsp; RSReportServer.config</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>More detail here:</strong> How to Install the Operations Manager Reporting Server<br><a href="http://technet.microsoft.com/en-us/library/hh298611.aspx">http://technet.microsoft.com/en-us/library/hh298611.aspx</a></p><p>&nbsp;</p><p>Regards,</p><p>Michel Degremont | Xbox Live Music - DBA Team - SQL Server &amp; PDW&nbsp;|</p><p>&nbsp;</p><p>&nbsp;</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>How to create a dependency between two or more Availability Groups</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/how-to-create-a-dependency-between-two-or-more-availability-groups</link>
      <pubDate>Mon, 08 Apr 2013 08:48:20 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/04/08/how-to-create-a-dependency-between-two-or-more-availability-groups/</guid>
      <description><![CDATA[Hi all,
&nbsp;
Problem description: I got a specific scenario where I have to failover two or more...]]></description>
      <content:encoded><![CDATA[<p>Hi all,</p>
<p>&nbsp;</p>
<p><strong>Problem description:</strong> I got a specific scenario where I have to failover two or more AlwaysOn Availability Groups in the same time.&nbsp; To explain by another way, I have to create a dependency between 2 Availability Groups. If one of them failover, the second one has to move also on the same node.</p>
<p>In my case, I have to do that because, I&rsquo;m not allow to put in the same group all databases. And a third application has to perform a query (write/read) between&nbsp;N databases from two different 2 Availability Groups.</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;</p>
<p><strong>Action plan:</strong> As it&rsquo;s not a normal or expecting behavior, I will share with you, how I did to perform this task.</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Step 0:</span> Copy past the script PowerShell below on all nodes involved (SQL_Node_1 and SQL_Node_2 and SQL_Node_3) inside C:\HADRON\failoverAutomaticHadronGroup.ps1</p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;">import-module</span></span></span><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;">failoverclusters</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><br /></span></span></span><span style="font-size: x-small;">$Cluster_Name <span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"myWindowsClusterName"</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">;</span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">$my_AG1_Name&nbsp;<span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">=</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"AG1"</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">;<br /></span></span></span><span style="font-size: x-small;">$my_AG2_Name <span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">=</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"AG2"</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">;</span></span></span></p>
<p><span style="font-size: x-small;"># We are looking for the current node of my_AG1_Name<br /></span><span style="font-size: x-small;">$AG_1<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">=</span></span></span><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;">get-clustergroup</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-name</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$my_AG1_Name</span></span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-Cluster</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$ClusterName</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">|</span></span></span><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;">select-object</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;">OwnerNode</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">,</span></span></span><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;">State</span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;"># then We are looking for the current node of my_AG2_Name<br /></span><span style="font-size: x-small;">$AG_2<span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">=</span></span></span><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;">get-clustergroup</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-name</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"IngestPub"</span></span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-Cluster</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$my_AG2_Name</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">|</span></span></span><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;">select-object</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;">OwnerNode</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">,</span></span></span><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;"><span style="color: #8a2be2; font-family: Lucida Console;">State</span></span></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">if<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">(</span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_1</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-ne</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$currentTriggerNode</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-and</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_2</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-eq</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$currentTriggerNode</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> )<br /></span></span></span><span style="font-size: x-small;">{&nbsp;&nbsp;</span><span style="font-size: x-small;">&nbsp;<br /></span><span style="font-size: x-small;"> <span style="color: #006400; font-family: Lucida Console;"><span style="color: #006400; font-family: Lucida Console;"><span style="color: #006400; font-family: Lucida Console;"><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span># so we move the group AG_1 to the same node of AG2<br /></span></span></span><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="font-size: x-small;"><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;</span>Move-ClusterGroup</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$my_AG1_Name</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"</span></span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">&ndash;Node</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_2</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-Cluster</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$ClusterName</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> ;<br /></span></span></span><span style="font-size: x-small;">}<br /></span><span style="font-size: x-small;">elseif&nbsp;</span><span style="font-size: x-small;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">(</span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_2</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-ne</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$currentTriggerNode</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">&nbsp; </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-and</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_1</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">-eq</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$currentTriggerNode</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> )<br /></span></span></span><span style="font-size: x-small;">{<br /></span><span style="color: #006400; font-family: Lucida Console; font-size: x-small;"><span style="color: #006400; font-family: Lucida Console;"><span style="color: #006400; font-family: Lucida Console;"><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span># so we move the group AG_2 to the same node of IngestPub<br /></span></span></span><span style="font-size: x-small;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="color: #0000ff; font-family: Lucida Console;"><span style="font-size: x-small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Move-ClusterGroup</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$my_AG2_Name</span></span></span><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;"><span style="color: #8b0000; font-family: Lucida Console;">"</span></span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">&ndash;Node</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$AG_1</span></span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">OwnerNode</span></span><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;"><span style="color: #a9a9a9; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;"><span style="color: #000080; font-family: Lucida Console;">-Cluster</span></span></span><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;"><span style="color: #ff4500; font-family: Lucida Console;">$ClusterName<br /></span></span></span></span><span style="font-size: x-small;">}</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Step 1:</span> Open eventvwr.msc</p>
<p><span style="text-decoration: underline;">Step 2:</span> Go on the chanel:&nbsp; Application and Services Logs\Microsoft\Windows\FailoverClustering\Operationnal</p>
<p><span style="text-decoration: underline;">Step 3:</span> Select eventID 1201 (The Cluster service successfully brought the clustered service or application 'XXXXXX' online.)</p>
<p><span style="text-decoration: underline;">Step 4:</span> Right-click -&gt; Attach Task to this Event</p>
<p><span style="text-decoration: underline;">Step5:</span> Check start a program</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/8171.Capture.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/8171.Capture.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/8171.Capture.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/8171.Capture.PNG" alt="" border="0" /></a>&nbsp;</p>
<p><span style="text-decoration: underline;">Step 6:</span> Select the powershell script of the step 0</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/5557.Capture2.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/5557.Capture2.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/5557.Capture2.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/5557.Capture2.PNG" alt="" border="0" /></a></p>
<ul>
<li>&nbsp;Program/script : powershell.exe</li>
<li>&nbsp;Add arguments : -Noninteractive &ndash;Noprofile &ndash;Command "&amp;{C:\HADRON\failoverAutomaticHadronGroup.ps1}"<br /></li>
</ul>
<p>&nbsp;</p>
<p><strong>NB:</strong> To modify the task, open Task Scheduler, please go to the&nbsp; Windows&nbsp; Scheduled Task Microsoft-Windows-FailoverClustering_Operational_Microsoft-Windows-FailoverClustering_1201.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Regards,</p>
<p>Michel Degremont | Xbox Live Music - DBA Team - SQL Server &amp; PDW&nbsp;|</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>AlwaysOn warning: The current WSFC cluster quorum vote configuration is not recommended for this availablity group</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/alwayson-warning-the-current-wsfc-cluster-quorum-vote-configuration-is-not-recommended-for-this-availablity-group</link>
      <pubDate>Fri, 29 Mar 2013 02:15:00 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/03/29/alwayson-warning-the-current-wsfc-cluster-quorum-vote-configuration-is-not-recommended-for-this-availablity-group/</guid>
      <description><![CDATA[&nbsp;
Problem description: You have got odd number of nodes. To prevent possible ties in the...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><strong>Problem description:</strong> You have got odd number of nodes. To prevent possible ties in the quorum vote you added a witness disk to the cluster and adjusted the quorum mode in the cluster manager.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/5518.Cluster.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/5518.Cluster.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/5518.Cluster.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/5518.Cluster.PNG" alt="" border="0" /></a><br /><br />However, when you perform a failover from SSMS on our SQL Server 2012 Availability group, we got a validation WSFC quorum vote configuration warning with action required</p>
<p>Error message: <span style="color: #ff0000;"><em>The current WSFC cluster quorum vote configuration is not recommended for this availability group.</em></span></p>
<p>&nbsp;</p>
<p><span style="color: #ff0000;"><em><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/6177.HADRON2.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/6177.HADRON2.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/6177.HADRON2.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/6177.HADRON2.PNG" alt="" border="0" /></a></em></span></p>
<p><strong></strong>&nbsp;</p>
<p><strong></strong>&nbsp;</p>
<p><strong>Cause:</strong> This issue occurs because of a known issue in Windows Server Failover Clustering.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Resolution:</strong> To resolve this issue, you have to apply the hotfix below &nbsp;on all computers node of your cluster:</p>
<p>&nbsp;&nbsp;</p>
<p>A hotfix is available to let you configure a cluster node that does not have quorum votes in Windows Server 2008 and in Windows Server 2008 R2<br /><a href="http://support.microsoft.com/kb/2494036">http://support.microsoft.com/kb/2494036</a></p>
<p><strong>&nbsp;</strong></p>
<p><strong>Current status: </strong>After applied the fix, you should see that the warning is vanished.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/2870.HADRON.PNG" original-url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/2870.HADRON.PNG"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/76/89/2870.HADRON.PNG" original-url="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-89/2870.HADRON.PNG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Regards,</p>
<p>Michel Degremont | Xbox Live Music - DBA Team - SQL Server &amp; PDW&nbsp;|</p>
<p><br /> <br /> <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; <br /> <br /> <br /> <br /><br /></p>
<p><strong>&nbsp;</strong></p>
<p><strong>&nbsp;</strong></p>]]></content:encoded>
    </item>
    <item>
      <title>How configure correctly AlwaysOn readable secondary replica for applicationIntent</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/how-configure-correctly-alwayson-readable-secondary-replica-for-applicationintent</link>
      <pubDate>Wed, 20 Mar 2013 04:48:08 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/04/12/how-configure-correctly-alwayson-readable-secondary-replica-for-applicationintent/</guid>
      <description><![CDATA[&nbsp;Hi all,&nbsp;I would like to share with you an issue that I got recently because &nbsp;I...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<p>Hi all,</p><p>&nbsp;</p><p>I would like to share with you an issue that I got recently because &nbsp;I didn't set&nbsp; up correctly AlwaysOn to enable readable database on the&nbsp;secondary replica.</p><p>&nbsp;</p><p><strong>Problem description:</strong> When I am trying to connect to my application with .Net or PowerShell, I got the following issue only when I add ApplicationIntent=Readonly on my connection string:</p><p><span style="color: #ff0000;"><em>Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : TCP Provider: No connection could be made because the target machine actively refused it..</em></span><br><span style="color: #ff0000;"><em>Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.</em></span><br><span style="color: #ff0000;"><em>Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server</em></span><br><span style="color: #ff0000;"><em>. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see</em></span><br><span style="color: #ff0000;"><em>SQL Server Books Online..</em></span></p><p><strong>Reproduction:</strong> I am able to reproduce with SQL CMD: <span style="background-color: #888888;">sqlcmd -S myListener -E&nbsp; -K ReadOnly -Q "SELECT @@SERVERNAME"</span> However, when I remove -K ReadOnly, it works fine.</p><p>Other interesting stuff, I can see a login/logout on my primary server inside the profiler trace, but nothing on the secondary</p><p>&nbsp;</p><p><strong>Solution:</strong> In my case, the issue was that the read_only_routing port mismatch with the port of my instance. I enclose below what you have to look.</p><p>&nbsp;</p><p><strong>How configure correctly AlwaysOn readable secondary replica:</strong></p><p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add Application Intent in the connection string by adding: <span style="background-color: #888888;">;ApplicationIntent=ReadOnly</span><br><br>2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALLOW_CONNECTIONS property of the secondary replica is READ_ONLY.</p><p>3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The READ_ONLY_ROUTING_URL for each replica is set. The TCP port is a port number that <strong>is used</strong> <strong>by the Database Engine</strong> of the SQL Server instance</p><p><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">alter</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">availability</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">group</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">myGroupName<br></span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">modify</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">replica</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">on</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine1instanceName1'</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">with<br></span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">secondary_role</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">read_only_routing_url</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'tcp://myMachine1:1433'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">))</span></span></span></p><p>GO</p><p><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">alter</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">availability</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">group</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">myGroupName<br></span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">modify</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">replica</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">on</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine2instanceName2'</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">with<br></span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">secondary_role</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">read_only_routing_url</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'TCP://myMachine2:1433'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">))</span></span></span></p><p>&nbsp;</p><p>4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The READ_ONLY_ROUTING_LIST option must be set for each replica in the CREATE AVAILABILITY GROUP or ALTER AVAILABILITY GROUP Transact-SQL command, as part of the PRIMARY_ROLE replica options. The READ_ONLY_ROUTING_LIST can contain one or more routing targets. Multiple routing targets can be configured. Routing occurs in the order that targets are specified in routing list.</p><p>&nbsp;<span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">alter</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">availability</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">group</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">myGroupName<br></span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">modify</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">replica</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">on</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine1instanceName1'</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">with<br></span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">primary_role</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">read_only_routing_list</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=(</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine2instanceName2'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">)))</span></span></span></p><p>GO</p><p><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">alter</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">availability</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">group</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">myGroupName<br></span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">modify</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">replica</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">on</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine2instanceName2'</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">with<br></span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">primary_role</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">(</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">read_only_routing_list</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">=(</span></span></span><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;"><span style="color: #ff0000; font-family: Consolas; font-size: x-small;">'myMachine1instanceName1'</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">)))</span></span></span></p><p>GO</p><p><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">Select </span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">Replica_Server_name</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">Endpoint_url</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">Secondary_Role_allow_Connections_Desc</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">Backup_Priority</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&nbsp; </span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">Read_only_Routing_URL</span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">from </span></span></span><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;">Sys</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">.</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">AVailability_replicas</span></span></span></p><p><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">select</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">dns_name</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">port</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">is_conformant</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">ip_configuration_string_from_cluster </span></span></span><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;"><span style="color: #0000ff; font-family: Consolas; font-size: x-small;">FROM </span></span></span><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;"><span style="color: #008000; font-family: Consolas; font-size: x-small;">sys</span></span></span><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;"><span style="color: #808080; font-family: Consolas; font-size: x-small;">.</span></span></span><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;"><span style="color: #008080; font-family: Consolas; font-size: x-small;">availability_group_listeners</span></span></span></p><p>&nbsp;</p><p>5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then I installed the both KB to fix this issue <a title="System.ArgumentException: Keyword not supported: 'applicationintent'." href="http://blogs.technet.com/b/mdegre/archive/2013/03/20/keyword-not-supported-applicationintent.aspx" target="_blank">System.ArgumentException: Keyword not supported: 'applicationintent'.</a></p><p>&nbsp;</p><p><br>6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To enable Kerberos, I configured in Active Directory by a domain administrator for each availability group listener name</p><p>Configure SPN in AD for each AG Listener name - A Server Principal Name (SPN) must be configured in Active Directory by a domain administrator for each availability group listener name in order to enable Kerberos for the client connection to the availability group listener. When registering the SPN, you must use the service account of the server instance that hosts the availability replica . For the SPN to work across all replicas, the same service account must be used for all instances in the WSFC cluster that hosts the availability group. (<a href="http://msdn.microsoft.com/en-us/library/hh213417.aspx#SPNs">http://msdn.microsoft.com/en-us/library/hh213417.aspx#SPNs</a>)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setspn -A MSSQLSvc/myListenerName.FQDN:1433&nbsp; myDomainmyserviceAccount&nbsp;&nbsp;&nbsp;&nbsp;</p><p>&nbsp;&nbsp;</p><p>7. Configuring the Windows Firewall to Allow SQL Server Access</p><p>&nbsp;</p><p>&nbsp;</p><p>If you got any connectivity issues, I invite you to read: <a title="How to resolve SQL Server connectivity issues" href="http://blogs.technet.com/b/mdegre/archive/2011/06/04/resolve-sql-server-connectivity-issues.aspx">How to resolve SQL Server connectivity issues</a></p><p>&nbsp;</p><p>&nbsp;</p><p>Regards,</p><p>Michel Degremont | Xbox Live Music - DBA Team - SQL Server &amp; PDW&nbsp;|</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Keyword not supported: 'applicationintent'</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/keyword-not-supported-applicationintent</link>
      <pubDate>Wed, 20 Mar 2013 04:18:25 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2013/03/20/keyword-not-supported-applicationintent/</guid>
      <description><![CDATA[&nbsp;Problem description: When you try to connect to&nbsp; your SQL Server by using powershell,...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<p><strong>Problem description:</strong> When you try to connect to&nbsp; your SQL Server by using powershell, .Net, sqlcmd... you got this error message:</p><p><span style="color: #ff0000;"><em>System.ArgumentException: <strong>Keyword not supported: 'applicationintent'</strong>.</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp; at System.Data.SqlClient.SqlConnectionStringBuilder.set_Item(String keyword, Object value)</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp; at System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String value)</em></span></p><p><em></em>&nbsp;</p><p><strong>Cause:</strong> The message occurs when you include <strong>ApplicationIntent=ReadOnly</strong> (AlwaysOn Availability Groups properties) in your connection string. And&nbsp; the server does not recognize the property.</p><p><span style="text-decoration: underline;">KB Extract number 2544514:</span><em> "When the ApplicationIntent property is set to ReadOnly, the client requests a read access operation when it connects to an AlwaysOn-enabled database. The server will enforce the read-only access operation both at connection time, and during a USE database statement, but only to an AlwaysOn-enabled database. When the ApplicationIntent property is set to ReadWrite, the client requests a regular (read-write) access operation when it connects to an AlwaysOn-enabled database. The default setting for the ApplicationIntent property is ReadWrite."</em></p><p><strong></strong>&nbsp;</p><p><strong>Resolution:</strong> You have to install the update&nbsp;that&nbsp;introduces support for the AlwaysOn features from SQL Server 2012</p><p><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; <a href="http://support.microsoft.com/kb/2544514" target="_blank">Update 4.0.2 for Microsoft .NET Framework 4 &ndash; Runtime Update</a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp; <a href="http://support.microsoft.com/kb/2654347" target="_blank">An update introduces support for the AlwaysOn features from SQL Server 2012 to the .NET Framework 3.5 SP1</a></p><p>&nbsp;</p><p>&nbsp;</p><p>Regards,</p><p>Michel Degremont | Xbox Live Music - DBA Team - SQL Server &amp; PDW&nbsp;|</p><p>&nbsp;</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>8624 Internal Query Processor Error: The query processor could not produce a query plan</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/8624-internal-query-processor-error-the-query-processor-could-not-produce-a-query-plan</link>
      <pubDate>Tue, 11 Dec 2012 02:46:03 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2012/12/11/8624-internal-query-processor-error-the-query-processor-could-not-produce-a-query-plan/</guid>
      <description><![CDATA[&nbsp;Problem description: We got some mini memory dump. In side our SQL error log, we can see the...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<p><strong>Problem description:</strong> We got some mini memory dump. In side our SQL error log, we can see the error message below</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000;"><em>Stack Signature for the dump is 0x00000000950A8E26</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External dump process return code 0x20000001.</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; External dump process returned no errors.Error: 8624, Severity: 16, State: 116.</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ex_raise2: Exception raised, major=86, minor=24, state=116,</em></span></p><p><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; severity=16, attempting to create symptom dump</em></span><br><span style="color: #ff0000;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ex_raise2: Exception raised, major=86, minor=24, state=116, severity=16</em></span></p><p>&nbsp;</p><p>&nbsp;</p><p><strong>Interesting link:&nbsp;</strong>&nbsp;We found out a similar issue. However, I am in SQL Server 2005 SP4 (9.00.5000.00 (X64)), and the issue below was fixed in SQL 2005 SP2.&nbsp;E.G.&nbsp;&nbsp;&nbsp; <a href="http://support.microsoft.com/kb/931329">FIX: Error message when you run a query in Microsoft SQL Server 2005: "Msg 8624, Level 16, State 116 Internal Query Processor Error: The query processor could not produce a query plan"</a></p><p>&nbsp;</p><p>&nbsp;</p><p><strong>Cause:</strong> We got the query from the dump, but you could also get the query with a profiler trace with the events <em>TSQL SQL:BatchCompleted or Stored procedure RPC:Completed with Error and Waring Exception</em><strong>. </strong>We the query we are able to reproduce the issue each time. We saw that the dump was generated by statistics stream corrupted (spotted that in the generation script of the objects)</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>Resolution:</strong> We run an update statitics with fullscan to solve the issue on all objects called by the query.We run again the query and the issue didn't occur.</p><p>&nbsp;</p><p>Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Moving SSAS Database to a new drive on same server</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/moving-ssas-database-to-a-new-drive-on-same-server</link>
      <pubDate>Wed, 03 Oct 2012 06:20:19 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2012/10/03/moving-ssas-database-to-a-new-drive-on-same-server/</guid>
      <description><![CDATA[Problem description: After you moved SSAS databases to a new drive on the same server, you are not...]]></description>
      <content:encoded><![CDATA[<p><br><strong>Problem description:</strong> After you moved SSAS databases to a new drive on the same server, you are not able to administrate&nbsp; Analysis Service. SSAS databases is up and running. When you add a database or user, it appears that users are added successfully, but when going back out of the dialog nothing happened.<p><strong><br>Work done:</strong> To move you database to a new drive, you followed the step below.<br>&nbsp;&nbsp;<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 1:</span> With Microsoft SQL Server Management Studio, connect to Analysis Server, then right Click on the server and click on Properties.<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 2:</span> Edit the path of you data directory. And replace the old path by the new one.<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 3:</span> Stop the SQL Server Analysis Services Service.<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 4:</span> Move the Data to the new directory location.<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 5:</span> Start the SQL Server Analysis Services Service.<br>&nbsp;&nbsp; <span style="text-decoration: underline;">Step 6:</span> verify that you can browser all database.</p><p><strong><br>Cause:</strong> Inside the SSAS log, you can see an&nbsp; issue relating to something not allowing SSAS to update or access this file</p><p><em>&nbsp;&nbsp;&nbsp;&nbsp; Message: Service started. (Source: ?D:Logmsmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210000)</em><br><em>&nbsp;&nbsp;&nbsp;&nbsp; Message: <strong><span style="color: #ff0000;">The file '\?E:OLAPDatamaster.vmp' could not be deleted. </span></strong></em><br><em><strong><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp; Please check the file for permissions.</span></strong> (Source: ?D:Logmsmdsrv.log, Type: 3, Category: 289, Event ID: 0xC121001F)</em></p><p>I run <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx">Process Monitor</a> and after SSAS restart I saw an access denied on various file and also on master.vmp.</p><p><strong><br>For insformation:</strong>&nbsp;&nbsp;The master.vmp file is the master version map that contains the GUIDS for all of the objects and the version of each object that currently exists on the server. When the server starts, it looks at the master.vmp file and need to update it ( More&nbsp;information with <a href="http://blogs.msdn.com/b/sqlserverfaq/archive/2009/07/08/tampering-master-vmp-file-may-result-in-losing-all-analysis-services-databases.aspx">my colleague Karan</a>)</p><p>&nbsp;</p><p><strong>Resolution:</strong> You can solve this issue you can give the right "Modify" to SSAS service account to this new data folder.</p><p><strong><br>Others points:</strong></p><p>1. A database can be moved in many ways (SSMS Attach/Detach, AMO, XMLA). You could find some various way in the bol (<a href="http://msdn.microsoft.com/en-us/library/cc280670.aspx">Move an Analysis Services Database</a>)<br>2. You can only move the file regarding Data, Backup, Log or Temp. However it's not supported to move manually the BIN and Config directory. You must reinstall your instance.</p><p>&nbsp;</p><p>Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>How a clustered instance of Analysis Services works</title>
      <link>https://docs.microsoft.com/archive/blogs/mdegre/how-a-clustered-instance-of-analysis-services-works</link>
      <pubDate>Fri, 28 Sep 2012 11:33:00 GMT</pubDate>
      <dc:creator><![CDATA[Degremont Michel]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mdegre/2012/09/28/how-a-clustered-instance-of-analysis-services-works/</guid>
      <description><![CDATA[&nbsp;Analysis Services is clustered as&nbsp; a generic service resource on a Windows failover...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<p><strong>Analysis Services is clustered as&nbsp; a generic service resource on a Windows failover cluster.</strong> This applies to 2005, 2008, 2008R2, and 2012.</p><p>&nbsp;</p><p>Since SSAS 2005 version, Analysis Services is fully integrated into clustering Setup (the install of SQL):<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SSAS 2005 cluster setup is adding the service on all cluster nodes on the same setup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- SSAS 2008, the setup have to be done node by node Analysis Services is presented to the cluster as generic resource with the type Application Service and doesn&rsquo;t implement his own explicit IsAlive method. <strong>Unlike SQL Server,&nbsp;Analysis Services doesn't have a cluster resource .dll that knows how to do that work like connect to AS and run a simple query to check that it responds.</strong></p><p>&nbsp;</p><p>Possible cause of failure that is detected for an Application Service:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- The service stopped(ie. crash, or was killed) then the cluster resource would notice<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- A dependency in the group where the generic service is configured failed (a disk fails or goes offline, an IP, virtual name, mount point, SQL server&hellip;other dependencies affecting the group)</p><p>&nbsp;</p><p><br><strong>Note :</strong> <strong>Application Service will NOT detect a hang situation in SSAS, where all connections are rejected.</strong></p><p>&nbsp;</p><p>Michel Degremont | Premier Field Engineer - SQL Server Core Engineer |</p></p>
]]></content:encoded>
    </item>
  </channel>
</rss>