<?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>meer_alam</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/meer_alam/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/meer_alam/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 19 May 2015 01:57:35 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>The target principal name is incorrect.  Cannot generate SSPI context</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/the-target-principal-name-is-incorrect-cannot-generate-sspi-context</link>
      <pubDate>Sun, 10 May 2015 14:53:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2015/05/10/the-target-principal-name-is-incorrect-cannot-generate-sspi-context/</guid>
      <description><![CDATA[Introducing the problem scenario
Yet another Kerberos authentication failure troubleshooting...]]></description>
      <content:encoded><![CDATA[<h2>Introducing the problem scenario</h2>
<p>Yet another Kerberos authentication failure troubleshooting scenario. This scenario never stops paying me a visit&nbsp;every now and then. Same type of symptoms.</p>
<ul style="margin-top: 0in; margin-bottom: 0in; margin-left: 0.375in; unicode-bidi: embed; direction: ltr;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">SQL Server named instance configured to listen&nbsp;on a static port.</span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">Logged on user (in a client machine) and the SQL server machine are on two different domains.</span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">A domain controller has been upgraded&nbsp;to 2012.</span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">Domain trust has been the same as it was before</span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">SPNs exists as before, in the working scenario.</span></li>
</ul>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; color: black; font-family: Tahoma; font-size: 10pt;">Yet, when the user tries to connect to SQL Server instance from SQL Server Management Studio, they get the familiar Kerberos authentication failure error message:</p>
<p style="margin: 0in; color: black; font-family: Tahoma; font-size: 10pt;">&nbsp;</p>
<p style="margin: 0in; color: red; font-family: Tahoma; font-size: 10pt;">"The target principal name is incorrect.&nbsp; Cannot generate SSPI context" &nbsp;</p>
<p style="margin: 0in; color: red; font-family: Tahoma; font-size: 10pt;">&nbsp;</p>
<h2>Environment Details</h2>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">User: <strong>DomainA\userA</strong></p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Server: <strong>xxxxx.DomainB.com</strong> (this is a standalone SQL Server)</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">SQL Server Instance: <strong>xxxxx\SQLx (version 2014)</strong></p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">SQL Server Domain: <strong>DomainB</strong></p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Current Windows Server for Domain Controllers (Windows Server 2012). This was an upgrade. This is the only change.</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<h2>Let us collect some data to see what went wrong</h2>
<p>As I typically do, after verifying the error message from SSMS, I first wanted to make sure, we have the correct SPNs. So I ran the command (in SQL Server machine, we have the tool so it was ok to run here):</p>
<p><strong>SETSPN -L &lt;SQL Server Instance Service Account&gt;</strong></p>
<p>This shows that we have the required SPN. Since we have the SPNs, I did not go after using <a title="Kerberos Configuration Manager" href="http://www.microsoft.com/en-us/download/details.aspx?id=39046">Kerberos Configuration Manager</a>, which is another way to verify SPNs and add them if we do not have one. This sure saves a lot of time.</p>
<p>I also use the <strong>LDIFDE</strong> to make sure we do not have duplicates. So ran, the following command in both user DC and Server DC:</p>
<p><strong>LDIFDE -f check_SPN.txt -t 3268 -d "" -l servicePrincipalName -r "(servicePrincipalName= MSSQLSvc/XXXXXXXX*)" -p subtree</strong></p>
<p>Where <strong>XXXXXXXX</strong> is our SQL Server Machine when instance <strong>SQLx</strong> is running.</p>
<p>When we ran it against the SQL Server Machine domain (DomainB), we see that the same SPNs (as from <strong>SEPSPN -L</strong> output) as we would expect, however, when we ran it against user domain (<strong>DomainA</strong>), there is no output.</p>
<p>Another most common tool I use is SSPIClient and I leveraged this in this scenario in an effort to get more information. It gave me some additional information, when I ran the tool from the client machine, trying a connection test against the SQL instance <strong>xxxxx\SQLx</strong>. Two messages are of interest:</p>
<p><span style="color: #ff0000;">SubStatus=0xc000005e -&gt; There are currently no logon servers available to service the logon request</span></p>
<p><span style="color: #ff0000;">SPN <strong>MSSQLSvc/XXXXXXXX .DomainB.com:yyyy</strong> not found anywhere in Active Directory</span></p>
<p><span style="color: #ff0000;">yyyy</span> is the port number where SQL Server is currently listening on, configured as a static port for the instance <strong>SQLx</strong></p>
<p>The client was looking for the SPN @<strong>DomainA.</strong></p>
<p>Lastly I leveraged the netmon tool as well to double check. It shows also that we are looking for the SPN "<strong>MSSQLSvc/XXXXXXXX .DomainB.com:yyyy</strong>", @<strong>DomainA , </strong>which is should not, typically speaking.</p>
<p>I also verified that netlogon server for the machine where the user is logged on is different from the netlogon server for the SQL Server. This was important because&nbsp; sometimes because they are talking to different netlogon server, which may not be in sync with AD objects.</p>
<h2>Initial Assessment</h2>
<p>Based on the above findings it made sense to me that we are likely having a domain trust issue, as I thought for a successful Kerberos flow, we do need a two way trust. I also had "two different logon server" clue in mind, which could be an issue. Since I am not expert in Active Directory matters, I sought some help to get to the bottom of this behavior.</p>
<h2>First attempt resolving the issue</h2>
<p>With&nbsp;the help from our Active Directory expert,&nbsp;we&nbsp;first thought it was a permission issue. The following KB helped in first attempt resolving:</p>
<p><a href="https://support.microsoft.com/en-us/kb/811889/">https://support.microsoft.com/en-us/kb/811889/</a></p>
<p>We provided &nbsp;"Read all properties" and "Write all properties" to SELF on the SQL Server service account. This was done on the SQL Server machine domain controller (<strong>DomainB</strong>)</p>
<p>This seemed helped. We are now able to connect to SQL Server from the test client machine with one user.&nbsp;</p>
<p><strong>Note</strong>: I found that with only outbound trust, the authentication flows ok, just need to have proper permissions. May be I need to dig a little more on this part.</p>
<h2>The issue came back though</h2>
<p>Unfortunately the stubborn Kerberos error continues with other users or it came back after some time.</p>
<h2>Renewed effort to finding the root cause and resolve it for all</h2>
<p>We continued our digging to find the root cause of the issue.</p>
<p>We first&nbsp;ran the command <strong>nltest /verify:<strong>xxxxx.DomainB.com</strong> </strong> to verify trust on the client.</p>
<p>This gave us:</p>
<p><span style="color: #ff0000;">...no such domain exits/no logon servers were available with status code 1355.</span></p>
<p>This is the similar message as we have seen for our SSPIClient trace test (<span style="color: #ff0000;">SubStatus=0xc000005e -&gt; There are currently no logon servers available to service the logon request</span>)</p>
<p>We looked at the local cached Kerberos ticket (ran "klist" from command line in the client), it does not show the Kerberos ticket for our SQL Server instance.</p>
<p>We then ran the following commands from command line and took a netmon trace in the client machine filtered for DNS (to formulate an SPN we do need forward and reverse lookup of the host, so DNS queries need to be tracked), when testing connection to SQL Server from the client machine.</p>
<ul>
<li><strong>ipconfig /flushdns</strong></li>
<li><strong>klist purge</strong></li>
</ul>
<p>The trace shows DNS query for SQL Server has been triggered, it reached to DC, however it could not resolve the name.</p>
<p>Checking the msdcs for the SQL Server, we found a wrong entry being populated for the SQL Server machine. So we corrected the entry in the logon server DC&nbsp;(for the client) and then replicated the change to all involved DCs. We first had problem in getting the zone information so we re-created the zone and received the updates of the zone. This finally did the trick for us, the issue now got resolved at this point, to the completion. All users are now able to connect over Kerberos.</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Why SQL Server connection fails, when I change the port from dynamic to static, in SQL Server Configuration Manager, for my named instance of SQL Server, but I do not restart the SQL Server instance?</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/why-sql-server-connection-fails-when-i-change-the-port-from-dynamic-to-static-in-sql-server-configuration-manager-for-my-named-instance-of-sql-server-but-i-do-not-restart-the-sql-server-instance</link>
      <pubDate>Thu, 25 Dec 2014 09:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/12/25/why-sql-server-connection-fails-when-i-change-the-port-from-dynamic-to-static-in-sql-server-configuration-manager-for-my-named-instance-of-sql-server-but-i-do-not-restart-the-sql-server-instance/</guid>
      <description><![CDATA[Introducing the problem scenario
Recently I had to investigate the following scenario.&nbsp;

SQL...]]></description>
      <content:encoded><![CDATA[<h2>Introducing the problem scenario</h2>
<p>Recently I had to investigate the following scenario.&nbsp;</p>
<ul style="margin-top: 0in; margin-bottom: 0in; margin-left: 0.375in; unicode-bidi: embed; direction: ltr;" type="disc">
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">SQL Server named instance is configured to listen on a&nbsp;dynamic port. </span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">We change the port to static one, other than the one SQL Server is currently listening on, in SQL Server Configuration Manager. </span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">After the change, we do not restart the SQL Server Service. </span></li>
<li style="margin-top: 0pt; margin-bottom: 8pt; vertical-align: middle;"><span style="color: black; font-family: Tahoma; font-size: 10pt;">We expected the existing connection will not fail. In other&nbsp;words we will still be able to continue connecting to the SQL Server the&nbsp;same way as before, until the SQL Server service is restarted.</span></li>
</ul>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; color: black; font-family: Tahoma; font-size: 10pt;">We find that, the application starts failing to connect.&nbsp;Both .NET application and SQL Server Management Studio, shows the same symptom.&nbsp;</p>
<p style="margin: 0in; color: black; font-family: Tahoma; font-size: 10pt;">You may get the following error message:</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; color: red; font-family: Tahoma; font-size: 10pt;">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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)</p>
<p style="margin: 0in; color: red; font-family: Tahoma; font-size: 10pt;">&nbsp;</p>
<h2>Environment Details</h2>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Client: client.fqdn.com</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Server: xxxxx.fqdn.com</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">SQL Server Instance: xxxxx\SQL2012</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Listening port before change 61111 (dynamic).</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Changed to static port: 51000</p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; color: red; padding-left: 30px; font-family: Tahoma; font-size: 10pt;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8204.tcpipprop.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8204.tcpipprop.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8204.tcpipprop.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8204.tcpipprop.jpg" alt="" width="359" height="443" border="0" /></a></p>
<p style="margin: 0in; color: red; padding-left: 30px; font-family: Tahoma; font-size: 10pt;"><span style="color: #000000;">It sure prompted when I clicked on apply, that the changes will not apply until we </span><span style="color: #000000;">restart the SQL Server Service.</span></p>
<p style="margin: 0in; color: red; padding-left: 30px; font-family: Tahoma; font-size: 10pt;">&nbsp;</p>
<p style="margin: 0in; color: red; padding-left: 30px; font-family: Tahoma; font-size: 10pt;"><span style="color: #000000;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4370.prompt.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4370.prompt.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4370.prompt.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4370.prompt.jpg" alt="" width="363" height="304" border="0" /></a></span></p>
<p style="margin: 0in; color: red; padding-left: 30px; font-family: Tahoma; font-size: 10pt;">&nbsp;</p>
<h2>Test Scenario 1: Change the port to static port, from SQL Server Configuration Manager, do not restart SQL Server Service, connect from C# application remotely.</h2>
<p><span style="font-size: small;"><em>Code snippet I used for testing:</em></span></p>
<p>string cnStr = @"server=xxxxx\sql2012;database=TestDB;trusted_connection=sspi;";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />for (; ; ) {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;using (SqlConnection cn = new SqlConnection(cnStr))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (SqlCommand cmd = new SqlCommand("SELECT @@SPID", cn))</p>
<p>&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;</p>
<p style="padding-left: 60px;">&nbsp;cn.Open();</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Diagnostics.Debug.WriteLine("Connected: SPID: {0}", cmd.ExecuteScalar());</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p style="padding-left: 30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Threading.Thread.Sleep(10000);</p>
<p>}</p>
<p><span style="font-size: small;"><em>Error message we get from application:</em></span></p>
<p><span style="color: #ff0000;">&nbsp;{"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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"}</span></p>
<p>&nbsp;&nbsp;</p>
<p><span style="font-size: small;"><em>Took a netmon trace on the server.</em></span></p>
<p>&nbsp;Trace shows the activity on the browser port 1434</p>
<p><span style="background-color: #ffff00;">udp.Port==1434</span></p>
<p>&nbsp;1906&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.0452530&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser: Requires full Common parsers. See the "How Do I Change Parser Set Options(Version 3.3 or before) or Configure Parser Profile (Version 3.4)" help topic for tips on loading these parser sets. {UDP:624, ESP:308,IPv4:296}</p>
<p>1907&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.0455763&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser: Requires full Common parsers. See the "How Do I Change Parser Set Options(Version 3.3 or before) or Configure Parser Profile (Version 3.4)" help topic for tips on loading these parser sets. {UDP:625, IPv4:296}</p>
<p>1909&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.0460581&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser: Requires full Common parsers. See the "How Do I Change Parser Set Options(Version 3.3 or before) or Configure Parser Profile (Version 3.4)" help topic for tips on loading these parser sets.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{UDP:625, IPv4:296}</p>
<p>&nbsp;<span style="background-color: #ffff00;">So applied filter tcp.Port==51000 and tcp.Flags.Syn==1</span></p>
<p>&nbsp;</p>
<p>1914&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.1025252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=65113, DstPort=51000, PayloadLen=0, Seq=3642803191, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:626, ESP:308, IPv4:296}</p>
<p>1915&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.1025252&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=65113, DstPort=51000, PayloadLen=0, Seq=3642803191, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:627, IPv4:296}</p>
<p>1980&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:26 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17.6058845&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=65113, DstPort=51000, PayloadLen=0, Seq=3642803191, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:635, IPv4:296}</p>
<p>2742&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:12:32 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;23.6110969&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;client.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:[SynReTransmit #1980]Flags=......S., SrcPort=65113, DstPort=51000, PayloadLen=0, Seq=3642803191, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:635, IPv4:296}</p>
<p>&nbsp;Frame Details for connection failure:</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4405.FrameDetail1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4405.FrameDetail1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4405.FrameDetail1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4405.FrameDetail1.jpg" alt="" width="635" height="173" border="0" /></a></p>
<p>You basically get a&nbsp;SYN re-transmit, after the last connection attempt.</p>
<p><span style="font-size: small; font-style: italic;">Conclusion</span></p>
<p style="margin: 0in 0in 0in 0.375in; color: black; font-family: Calibri; font-size: 11pt;">Seems that when the port is changed from dynamic to static, the browser service was aware of the issue, so when client first connected to the browser service, it just handed over the new port information as the browser service connection shows.</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1537.FrameDetail2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1537.FrameDetail2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1537.FrameDetail2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1537.FrameDetail2.jpg" alt="" border="0" /></a></p>
<h2>Test Scenario 2: Change the port to static port, from SQL Server Configuration Manager, do not restart SQL Server Service, connect from SSMS, running the client machine.</h2>
<p>&nbsp;Observation</p>
<ol style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0in; margin-bottom: 0in; margin-left: 0.375in; unicode-bidi: embed; direction: ltr;" type="1">
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;" value="1"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Connection is&nbsp;successful</span></li>
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt;">There is no UDP&nbsp;connection over port 1434 </span></li>
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt;">SSMS tries a&nbsp;direct connection to old port</span></li>
</ol>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt;">Netmon Trace shows </span>Successful handshake</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">2256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:09:53 PM 12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16.4745724&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">sqlservr.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=64874, DstPort=61111, PayloadLen=0, Seq=2379066210, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:893, IPv4:635}2257&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:09:53 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16.4754496&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">sqlservr.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=...A..S., SrcPort=61111, DstPort=64874, PayloadLen=0, Seq=666085223, Ack=2379066211, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:893, IPv4:635}2258&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2:09:53 PM<br />12/16/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16.4760709&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">sqlservr.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=...A...., SrcPort=64874, DstPort=61111, PayloadLen=0, Seq=2379066211, Ack=666085224, Win=517 (scale factor 0x8) = 132352&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:893, IPv4:635}</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">Frame details for the successful connection.</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1157.FrameDetail3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1157.FrameDetail3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1157.FrameDetail3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1157.FrameDetail3.jpg" alt="" border="0" /></a>&nbsp;&nbsp;</p>
<p style="padding-left: 30px;">&nbsp;And complete conversion is here.</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8228.FrameDetail4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8228.FrameDetail4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8228.FrameDetail4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8228.FrameDetail4.jpg" alt="" border="0" /></a></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">4. Interesting to&nbsp;see how we bypassed the browser service connection, I wonder if the&nbsp;connection information was being cached. </span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt;">5. So tested&nbsp;restarting SSMS. Now, if I try a connection, it seems I get the following&nbsp;error:</span></p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">TITLE: Connect to Server</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">------------------------------</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;"><span style="color: red;">Cannot connect to xxxxxxx\sql2012</span><span style="color: black;">.</span></p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">------------------------------</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">ADDITIONAL INFORMATION:</p>
<p style="margin: 0in 0in 0in 0.75in; color: black; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; color: red; font-family: Calibri; font-size: 11pt;">A network-related or instance-specific error occurred while<br />establishing a connection to SQL Server. The server was not found or was not<br />accessible. Verify that the instance name is correct and that SQL Server is<br />configured to allow remote connections. (provider: TCP Provider, error: 0 - A<br />connection attempt failed because the connected party did not properly respond<br />after a period of time, or established connection failed because connected host<br />has failed to respond.) (Microsoft SQL Server, Error: 10060)</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8360.SSMS%20Failed%20Connection.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8360.SSMS-Failed-Connection.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8360.SSMS%20Failed%20Connection.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8360.SSMS-Failed-Connection.jpg" alt="" border="0" /></a></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">6.&nbsp; The client side netmon trace for UDP communication shows:</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">27.2043295&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;74&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3860&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.3465472&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser. Select the "NetworkMonitor\Windows" profile from the parser profiles drop-down&nbsp; menu.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{UDP:1392, ESP:1391,IPv4:320}</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">0.0000570&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3861&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.3466042&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser. Select the "NetworkMonitor\Windows" profile from the parser profiles drop-down menu.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{UDP:1393, IPv4:320}</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="color: black; font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">0.0012585&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3862&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.3478627&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SSRP:Windows stub parser. Select the "NetworkMonitor\Windows" profile from the parser profiles drop-down menu.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{UDP:1393, IPv4:320}</span></p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;">&nbsp;</p>
<p style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><br />&nbsp;</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8228.FrameDetail5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8228.FrameDetail5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8228.FrameDetail5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8228.FrameDetail5.jpg" alt="" border="0" /></a></p>
<p style="padding-left: 30px;">So, browser service already know about the change and give the new port information to the client. The information is the same in the server side trace but</p>
<p>&nbsp;7. Now client tries to connect to port 51000 and gets a reset from the client side, fails subsequently</p>
<p style="padding-left: 30px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6708.FrameDetail6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6708.FrameDetail6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6708.FrameDetail6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6708.FrameDetail6.jpg" alt="" border="0" /></a></p>
<p>0.0000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;90&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3875&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.4063314&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ssms.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=54176, DstPort=51000, PayloadLen=0, Seq=591041439, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:1399, ESP:1391, IPv4:320}</p>
<p>0.0000217&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;66&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3876&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.4063531&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ssms.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=54176, DstPort=51000, PayloadLen=0, Seq=591041439, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:1400, IPv4:320}</p>
<p>0.0005405&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3877&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.4068936&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ssms.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=...A.R.., SrcPort=51000, DstPort=54176, PayloadLen=0, Seq=0, Ack=591041440, Win=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:1400, IPv4:320}</p>
<p>0.5031681&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;66&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3912&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:07 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;38.9100617&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ssms.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:Flags=......S., SrcPort=54176, DstPort=51000, PayloadLen=0, Seq=591041439, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:1410, IPv4:320}</p>
<p>6.0006699&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;62&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4686&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8:07:13 AM 12/17/2014&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;44.9107316&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ssms.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xx.xx.xx.xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;server.fqdn.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP:[SynReTransmit #3912]Flags=......S., SrcPort=54176, DstPort=51000, PayloadLen=0, Seq=591041439, Ack=0, Win=8192 ( Negotiating scale factor 0x8 ) = 8192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{TCP:1410, IPv4:320}</p>
<p>&nbsp;</p>
<p>8. So behavior is&nbsp;the same in both test scenarios.&nbsp;</p>
<h2>Explanation</h2>
<p>Here is the details of what happens behind the scene:</p>
<ul>
<li>Once we change the port from dynamic to static, in SQL Server&nbsp;Configuration Manager, the related registry get updated.</li>
<li>The related registry key is, as an example, for the instance&nbsp;we tested against:&nbsp;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft&nbsp;SQL Server\MSSQL11.SQL2012\MSSQLServer\SuperSocketNetLib\Tcp\IPAll</li>
<li>Browser Service, being a separate service, is notified&nbsp;(becomes aware) about the change.</li>
<li>When an application or SSMS (essentially client&nbsp;provider/driver SNI layer), tries to connect the next time, it contacts&nbsp;the browser service, which hands over the new port information for the&nbsp;named instance.</li>
<li>Client (driver/provider SNI layer) for the application, tries&nbsp;to connect to the new port of the SQL Server. However, SQL Server does not listen to the port (there is no end point with the new port number),&nbsp;hence the connection fails.</li>
</ul>
<p>The behavior is by design, in the SQL Server Releases. SQL Server is not aware of the change, until the Service is restarted, so the warning is appropriate. The browser service, being a separate service is not directly related to SQL Server, however it looks into the registry changes that happen through SQL Server Configuration Manager.&nbsp;</p>
<h2>Comments</h2>
<p>To hide the machine information, I either erased or renamed the client/server name or IP addresses involved in my repro scenarios, I reproduced the issue with two of my machines.</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>failed to retrieve data for this request .... errors in the metadata manager an error occurred when loading the admin database role from</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/failed-to-retrieve-data-for-this-request-errors-in-the-metadata-manager-an-error-occurred-when-loading-the-admin-database-role-from</link>
      <pubDate>Sun, 28 Sep 2014 19:51:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/09/28/failed-to-retrieve-data-for-this-request-errors-in-the-metadata-manager-an-error-occurred-when-loading-the-admin-database-role-from/</guid>
      <description><![CDATA[Scenario
My most recent encounter with SSAS DB corruption surfaced slightly differently than...]]></description>
      <content:encoded><![CDATA[<h2><span style="font-family: verdana,geneva;">Scenario</span></h2>
<p><span style="font-family: verdana,geneva;">My most recent encounter with SSAS DB corruption surfaced slightly differently than normal. Thought I would share to benefit others who may have experienced or is experiencing the issue as I write.</span></p>
<p><span style="font-family: verdana,geneva;">We have a situation, where:</span></p>
<ul>
<li><span style="font-family: verdana,geneva;">SSAS Service, hosting numerous multidimensional databases,&nbsp;goes into an unresponsive state</span></li>
<li><span style="font-family: verdana,geneva;">When we restart SSAS service and try to look into the properties of the instances, connecting to SSAS from SSMS, we get the following error:</span></li>
</ul>
<p style="padding-left: 30px;"><span style="color: #ff0000; font-family: verdana,geneva; background-color: #ffffff;">Analysis Services issue; Getting an error &ldquo;failed to retrieve data for this request. (Microsoft.SQLServer.Management.SDK.SFC) Additional information: errors in the metadata manager an error occurred when loading the admin database role from <a href="file://\\?\Y:\SQL\SQLData\ld041_ssas_md\SPRC_R2.0.db\Role.0.role.xml"><span style="color: #ff0000; background-color: #ffffff;">\\?\&lt;data location&gt;\XXXX.0.db\XXXX.0.role.xml</span></a> (Microsoft.AnalysisServices.xmla)&rdquo; when he logs in to the instance and trying to pull properties of this instance;</span></p>
<h2><span style="font-family: verdana,geneva;">Troubleshooting</span></h2>
<p><span style="font-family: verdana,geneva;">Based on the error message, I had the following theories:</span></p>
<ol>
<li><span style="font-family: verdana,geneva;">We have a corruption issue in the DB file, showing up on the error message.</span></li>
<li><span style="font-family: verdana,geneva;">SSAS is in a state that I retained the information somewhere, and trying to read the information, upon start up. </span></li>
<li><span style="font-family: verdana,geneva;">Master.vmp file is corrupted</span>&nbsp;&nbsp;</li>
</ol>
<h2><span style="font-family: verdana,geneva;">Understanding Master.vmp file</span></h2>
<p><span style="font-family: verdana,geneva;">Master.vmp file is located under the Data folder, we configure for our SSAS DB, typically located at C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data (for SSAS 2012), unless you have a custom configuration. This 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.&nbsp;</span></p>
<p><span style="font-family: verdana,geneva;">When the server starts, it looks at the master.vmp file and attempts to find each of the objects referenced in the file. So we can have following possible corruption scenarios:</span></p>
<ol>
<li>
<div style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;">If there are objects in the data directory that don't have a corresponding GUID in master.vmp, those objects are deleted.</span></div>
</li>
<li>
<div style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;">If the master.vmp doesn't exist when the server starts, the server creates a new master.vmp file and deletes all of the objects in the data directory.</span></div>
</li>
<li>
<div style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;">If you have deleted your DB but the master.vmp file keeps a record of the GUID for the DB, this can also result in an inconsistency.</span>&nbsp;</div>
</li>
</ol>
<h2><span style="font-family: verdana,geneva;">Check your log files</span></h2>
<p>&nbsp;<span style="font-family: verdana,geneva;">Keeping in line with my theory, I first checked the event log.</span></p>
<p><span style="font-family: verdana,geneva;">The event viewer shows this message:<br /><span style="color: #ff0000;">Errors in the metadata manager. An error occurred when loading the Package Detail cube, from the file, '<a href="file://\\?\<data location>\&quot; data-mce-href="><span style="color: #ff0000; background-color: #ffffff;">\\?\&lt;data location&gt;\</span></a>xxxx.0.db\xxxx.cub.xml'.</span><br /></span></p>
<p><span style="font-family: verdana,geneva;">This message also pointed me to fact that we are likely having a corruption issue, either on DB or on Master.vmp file.</span>&nbsp;</p>
<p>I haven't checked the msmdsrv.log file, however I am pretty sure I would see the same error. I admit, it's worth looking into this file for more information.</p>
<h2><span style="font-family: verdana,geneva;">More clues</span></h2>
<p>At this stage, we discussed out another clue. &nbsp;<span style="font-family: verdana,geneva;"><span style="font-family: verdana,geneva;">Our clue to this scenario was the key towards our troubleshooting path: <span style="color: #ff0000;">the DB, in the error message, was deleted and is no longer needed.</span></span></span></p>
<p>&nbsp;</p>
<h2><span style="font-family: verdana,geneva;">Connecting the dots</span></h2>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">At this stage, I just started hunting for the missing DB.</span></p>
<p><span style="font-family: verdana,geneva;">1. On the Data folder, I find the folder for the DB, which I know is not supposed to be there, because we have deleted it from the SSMS.</span></p>
<p><span style="font-family: verdana,geneva;">2. I also see the &lt;dbname&gt;.x.db.xml file, which is the metadata file for the&nbsp;missing SSAS DB</span></p>
<p><span style="font-family: verdana,geneva;">3. I then opened the &lt;dbname&gt;.x.db.xml file, in notepad, located the object GUID for the DB object, an entry from &lt;dbname&gt;.x.db.xml file. <span style="color: #ff0000;">[i.e. Adventure Works SSAS DB file name is Adventure Works DW.1.db.xml]</span></span></p>
<p><span style="font-family: verdana,geneva;">It would look like this: &lt;ObjectID&gt;D9B263AD-2E34-4C90-BC95-384CD15A48BC&lt;/ObjectID&gt; for Adventure Works SSAS DB, in my machine.</span></p>
<p><span style="font-family: verdana,geneva;">4. Then searched master.vmp file for the same GUID</span></p>
<p><span style="font-family: verdana,geneva;">5. Stopped SSAS, removed the entry for this GUID, from master.vmp since we know that the DB is deleted so this entry should not be there any more.&nbsp;<span style="color: #ff0000;">[Please take a backup of this file to avoid un-intended circumstances]</span></span></p>
<p><span style="font-family: verdana,geneva;">The xml node for the entry (which we removed), would look like below:<br />&lt;VersionMapEntry&gt;&lt;ObjectId&gt;D9B263AD-2E34-4C90-BC95-384CD15A48BC&lt;/ObjectId&gt;&lt;Version&gt;1&lt;/Version&gt;&lt;ObjectLastUpdated&gt;130509560009251999&lt;/ObjectLastUpdated&gt;&lt;/VersionMapEntry&gt;<br />&lt;ObjectId&gt;D9B263AD-2E34-4C90-BC95-384CD15A48BC&lt;/ObjectId&gt;&nbsp;<span style="color: #ff0000;">---&gt; This refers to the DB object for example</span><br /></span></p>
<p><span style="font-family: verdana,geneva;">6. Started SSAS DB<br />Now we are able to see the DBs again, when connected to SSAS from SSMS</span></p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;">&nbsp;</p>
<h2><span style="font-family: verdana,geneva;">Conclusion</span></h2>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;">Since SSAS works with the file system, if&nbsp;the files under Data folder, are in a locked state, for some reason, when we try to write on those file, we may have inconsistent situation, which may lead to DB corruptions. If you suspect any such situation, please check the master.vmp file or the xxxx.db.xml file for the DB (or object) in question for clues. Application event log or msmdsrv.log file also may give you more information about the error condition. Understand what role master.vmp plays will help avoid or resolve some of the tricky DB corruption issues.</span>&nbsp;</p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;">&nbsp;</p>
<h2><span style="font-family: verdana,geneva;">References</span></h2>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;">&nbsp;</p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;"><a title="Tampering master.vmp file may result in losing all Analysis Services Databases:" href="http://blogs.msdn.com/b/sqlserverfaq/archive/2009/07/08/tampering-master-vmp-file-may-result-in-losing-all-analysis-services-databases.aspx">Tampering master.vmp file may result in losing all Analysis Services Databases</a></span></p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;">&nbsp;</p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;"><span style="font-family: verdana,geneva;"><a title="How to restore SSAS Database, tabular mode or multidimensional mode" href="http://blogs.msdn.com/b/meer_alam/archive/2014/08/11/how-to-restore-ssas-database-tabular-mode-or-multidimensional-mode.aspx">How to restore SSAS Database, tabular mode or multidimensional mode.</a></span></p>
<p style="margin: 0in; font-family: 'Segoe UI'; font-size: 10pt;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Cannot create a connection to data source 'TemporaryDataSource'........System.Net.Sockets.SocketException: No such host is known</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/cannot-create-a-connection-to-data-source-temporarydatasource-system-net-sockets-socketexception-no-such-host-is-known</link>
      <pubDate>Mon, 08 Sep 2014 21:40:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/09/08/cannot-create-a-connection-to-data-source-temporarydatasource-system-net-sockets-socketexception-no-such-host-is-known/</guid>
      <description><![CDATA[Recently, I was puzzled from one of my troubleshooting experience with our premier customer. 
The...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: Calibri; font-size: 11pt;">Recently, I was puzzled from one of my troubleshooting experience with our premier customer. </span></p>
<p><span style="font-family: Calibri; font-size: 11pt;">The scenario is: </span></p>
<ul>
<li><span style="font-family: Calibri; font-size: 11pt;">We have SharePoint 2013 configured in one Server with SSRS 2012 integrated&nbsp;mode</span></li>
<li><span style="font-family: Calibri; font-size: 11pt;">This is one node SharePoint Server, with Central Admin and Front End on the same machine, from the architecture standpoint. </span></li>
<li><span style="font-family: Calibri; font-size: 11pt;">Excel Services pointing to the PowerPivot instance installed on a separate machine though</span></li>
<li><span style="font-family: Calibri; font-size: 11pt;">We create BISM Data Source, pointing to a tabular mode SSAS Database deployed on the same machine, where PowerPivot instance is running, no error during the Data Source creation.</span></li>
</ul>
<p><span style="font-family: Calibri; font-size: 11pt;">In other words:</span></p>
<p><span style="font-family: Calibri; font-size: 11pt;">Machine A: SharePoint Central Admin + WFE + SSRS 2012 Integrated Mode + Excel Services</span></p>
<p><span style="font-family: Calibri; font-size: 11pt;">Machine B: PowerPivot Instance for the Excel Services + Tabular Mode SSAS instance.</span></p>
<p><span style="font-family: Calibri; font-size: 11pt;">We have&nbsp;SP1 on the SQL Server 2012.</span></p>
<p><span style="font-family: Calibri; font-size: 11pt;">Interesting is, after some environmental change, when we try to create PowerView report, using the BISM Data Source, we get the following error message:</span></p>
<p>"An error occurred while loading the model for the item or data source <strong>'EntityDataSource</strong>'. Verify that the connection information is correct and that you have permissions to access the data source."</p>
<p>This is the same error that is discussed on the connect bug, and gives some hints on how to get around the error:</p>
<p><a href="https://connect.microsoft.com/SQLServer/feedback/details/715205/you-cannot-modify-the-data-source-of-a-power-view-report">https://connect.microsoft.com/SQLServer/feedback/details/715205/you-cannot-modify-the-data-source-of-a-power-view-report</a></p>
<p>From Verbose log, we verified the error message, found that C2WTS was not started. Once we started this service, we found the error message now changed to:</p>
<p>Unexpected&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Throwing Microsoft.ReportingServices.Diagnostics.Utilities.CannotRetrieveModelException: , Microsoft.ReportingServices.Diagnostics.Utilities.CannotRetrieveModelException: An error occurred while loading the model for the item or data source 'http://&lt;URLToGallary&gt;/bismfilename.bism'. Verify that the connection information is correct and that you have permissions to access the data source. ---&gt; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source <strong>'TemporaryDataSource'</strong>. ---&gt; Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException: A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. ---&gt; System.Net.Sockets.SocketException: No such host is known&nbsp;&nbsp;&nbsp;&nbsp; at System.Net.Sockets....</p>
<p>Subsequently, we took the following steps</p>
<ul>
<li>Made sure the browser service is running, ports (2382 and others) are opened on the firewall for the SharePoint and the SSAS Tabular mode servers.</li>
<li>Netmon shows we did not try to connect to browser service or tabular instance port, but I do see the PowerPivot activity on PowerPivot instance port. Also,&nbsp;there was no attempt to connect to the tabular mode instance.</li>
<li>Profiler trace does not show activity obviously to tabular mode instance.</li>
<li>IP:port or SSASServer:port combination also does not show connection working</li>
<li>However, the UDL connection (or VS tabular mode project connection) from SharePoint to the SSAS Server were both successful</li>
</ul>
<p>All indications were pointing to the fact that something happened when the file was loaded, however, I could not make sense where the error was coming from.</p>
<p>We then found a temporary workaround&nbsp;by using an RSDS file to connect to the BISM file and run a PowerView report using this method. In the process we found that, the RSDS would only work, if we used stored credentials, which led to further investigation in the Kerberos troubleshooting path. In this scenario, the C2WTS service account changed at some point which perhaps broke the&nbsp;original C2WTS Kerberos settings that had been done, although I was informed that, prior to having the issue, we did not have to setup Kerberos. So we started troubleshooting, in the Kerberos path, thinking that constraint delegation is failing for the C2WTS service account.</p>
<p>In this direction, we took the following steps:</p>
<ul>
<li>Looked at the "Delegation" tab for C2WTS Service Account in Active Directory, it is currently set to "Do not trust this user for delegation"</li>
<li>We&nbsp;changed&nbsp;the settings&nbsp;to "Trust this user for delegation to specified services only",&nbsp;"Use any authentication protocol", we made sure, the SPN for the Tabular mode SSAS instance is included in the list. This is constraint delegation to SSAS Tabular mode instance.</li>
<li>We added the SPNs for the tabular instance, for the service account it is listening on, prior to setting the constraint delegation.</li>
</ul>
<p style="padding-left: 60px;">setspn -S MSOLAPSvc.3/&lt;SSASServer:TabularInstanceName&gt; &lt;tabularmode service Account&gt;<br />setspn -S MSOLAPSvc.3/&lt;SSASServer.FQDN:TabularInstanceName&gt; &lt;tabularmode service Account&gt;</p>
<p>After these changes, the broken PowerView report with BISM data source started working again.</p>
<p>I am puzzled as to how it took the troubleshooting path we had to take to resolve the issue, the error message was sure misleading to point to other potential issues.</p>
<p>Special thanks to my colleague, <strong>Josh Gerszewski</strong>, who helped me investigate this issue.</p>
<p>&nbsp;</p>
<p>Happy PowerViewing.....&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>How to restore SSAS Database, tabular mode or multidimensional mode.</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/how-to-restore-ssas-database-tabular-mode-or-multidimensional-mode</link>
      <pubDate>Mon, 11 Aug 2014 16:02:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/08/11/how-to-restore-ssas-database-tabular-mode-or-multidimensional-mode/</guid>
      <description><![CDATA[Scenario
SSAS&nbsp;instance (tabular or multidimensional)&nbsp;is not starting up or when we try to...]]></description>
      <content:encoded><![CDATA[<h2>Scenario</h2>
<p>SSAS&nbsp;instance (tabular or multidimensional)&nbsp;is not starting up or when we try to start this up, this goes to hang situation right away so we cannot connect to the instance.</p>
<p>For tabular mode SSAS instance, you&nbsp;may see the error:</p>
<p>&nbsp;Error(s):&nbsp; an error occurred when loading the model&nbsp;</p>
<h2>Troubleshooting</h2>
<p>One of the reasons it may have the issue starting up is because we may&nbsp;have a model database file corrupted some how. To encounter the situation, we typically try the following steps, knowing that the instance is not in a start mode.</p>
<ol>
<li>Rename the&nbsp;existing&nbsp;Data folder to say Data_old (for a typical installation, the path to this folder is: C:\Program Files\Microsoft SQL Server\&lt;MSAS11.Instance&gt;\OLAP\Data)</li>
<li>Create new "Data" folder on the same location, under C:\Program Files\Microsoft SQL Server\&lt;MSAS11.Instance&gt;\OLAP (for example, your path may be different)</li>
<li>Restart the SSAS instance</li>
</ol>
<p>At this point the instance typically will start up, if the issue is really related to DB file corruption.</p>
<p>So now we can do one of the following to get our databases back, if we have any user SSAS Databases:</p>
<ol>
<li>Copy the DB folder from the old Data folder</li>
<li>Restore the SSAS DB, if we have the backup or</li>
<li>Redeploy SSAS DB Project, from the SQL Server Data Tools or BIDS</li>
</ol>
<p>I recently used step 1 for few of my similar situations, thought I would share, if this helps, with one form of restoring your SSAS DB. This can be used for a non start-up scenario as well, may be when you simply want to take the SSAS DB from one instance to another instance, hence I am sharing.</p>
<h2>Steps to copy the SSADB folder</h2>
<p>We can use the following steps to get our SSAS database back from the old "Data" folder to new "Data" folder</p>
<ol>
<li>Stop the tabular mode SSAS DB</li>
<li>Copy the DB folder, the corresponding .xml file and&nbsp;the master.vmp file from old Data folder to new Data folder</li>
</ol>
<p>For example, for my SSAS instance, I have the following database, that I may want to restore/copy from old to new Data folder.<br />AdventureWorksDW2012Multidimensional</p>
<p>(the steps are same for tabular and multidimensional, so I am picking multidimensional DB that I have available)</p>
<p>Inside the installation location, you file fine the following items for this DB, under Data folder (for me the location is: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data):<br />a) Folder for the database: AdventureWorksDW2012Multidimensional.0.db<br />b) XML File defining the database: AdventureWorksDW2012Multidimensional.7.db.xml</p>
<p>The XML file basically has all the information the SSAS DB, so it is kind of like metadata for the DB</p>
<p>Another most import file for your DB is the master.vmp file, which keeps track of the GUID of the DBs that you created (and other objects), the same GUID should show up in both the .db.xml file and the master .vmp file<br />In .db.xml file for my DB is:<br />&lt;ObjectID&gt;0D5F1C9B-EE4E-4F00-B98E-D680E0AF75DA&lt;/ObjectID&gt;<br />If you look for this object ID, in master.vmp file, it has to be found, we have to have the match and I found it.<br />&lt;ObjectId&gt;0D5F1C9B-EE4E-4F00-B98E-D680E0AF75DA&lt;/ObjectId&gt;</p>
<p>The idea is that, if want to restore the DB, by just copying the Folder, then we have to take the .xml file and maste.vmp file as well.</p>
<p>Please note that once we start the SSAS instance, the master.vmp file will be updated with the database files you only copy, so in case your master.vmp fle has other DB information, this will be lost. This means that, if you have another database to copy, with the steps above, you will have to copy the master.vmp file again, from the old location, since this file will have the GUID for the other Database (s) you are copying.</p>
<p>This is one way of getting your DB back to your SSAS instance.</p>
<p>If you now start the SSAS instance, you should see the DB after refresh.</p>]]></content:encoded>
    </item>
    <item>
      <title>SSIS Data Source Connection Information Parameterization with Environment Variable</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/ssis-data-source-connection-information-parameterization-with-environment-variable</link>
      <pubDate>Mon, 11 Aug 2014 12:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/08/11/ssis-data-source-connection-information-parameterization-with-environment-variable/</guid>
      <description><![CDATA[&nbsp;
Scenario
We would like to parameterize SSIS 2012/2014 Package connection manager with the...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Scenario</h2>
<p>We would like to parameterize SSIS 2012/2014 Package connection manager with the environment variables. We would like to make sure the connection parameter picks up the value from the Environment variables during runtime.</p>
<p>&nbsp;</p>
<h3>Step 1: Create an SSIS Package</h3>
<p>We have a very simple SSIS package with on Data Flow Task with one OLEDB Source and one Flat File Destination connection manager.</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8535.Fig1.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8535.Fig1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8535.Fig1.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8535.Fig1.jpg" alt="" width="380" height="309" border="0" /></a>&nbsp;&nbsp;<br />Figure 1: Simple Data Flow Task with one OLEDB Source and one Flat File Destination</p>
<p>&nbsp;</p>
<h3>Step 2: Parameterize connection manager of interest.</h3>
<p>Right click on the Connection<br />Manager, choose &ldquo;Parameterize&rdquo;</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1854.Fig2.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1854.Fig2.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1854.Fig2.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1854.Fig2.jpg" alt="" width="386" height="319" border="0" /></a><br />&nbsp;Figure 2: "Parameterize" option on the connection manager.</p>
<h3>Step 3: Choose ConnectionString from the Parameterize dialog box:</h3>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6082.Fig3.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6082.Fig3.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6082.Fig3.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6082.Fig3.jpg" alt="" width="401" height="461" border="0" /></a></p>
<p align="center">Figure 3: Pick up "ConnecString" from the drop down for Parameterize Property</p>
<p>&nbsp;</p>
<p>Notice the default value that is picked is the same you created the connection string for your source. Click ok. The parameter will show up under the &ldquo;Parameter&rdquo; tab under SQL Server Data Tools for 2012</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/3175.Fig4.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/3175.Fig4.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/3175.Fig4.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/3175.Fig4.jpg" alt="" border="0" /></a></p>
<p align="center">Figure 4: Confirm the connection information under "Parameters" tab in SQL Server Data Tools, for your package</p>
<p align="center">&nbsp;</p>
<h3>Step 4: Execute the Data Flow Task or the package, in SSDT, make sure this<br />runs to the completion</h3>
<p>&nbsp;</p>
<p>Step 5: Deploy Project to SQL Server 2012, under SSISDB (at this point, you are under SSMS, connect to SQL Server, hosting the Integration Services Catalog)</p>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2086.Fig5.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2086.Fig5.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2086.Fig5.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2086.Fig5.jpg" alt="" width="307" height="103" border="0" /></a></p>
<p align="center">Figure 5: Deploy your project to SSISDB</p>
<p>Step 6: Right click on Environments and choose &ldquo;Create Environment&hellip;.&rdquo; (you are not under SSMS, connect to SQL Server, hosting the Integration Services Catalog)</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1638.Fig6.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1638.Fig6.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1638.Fig6.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1638.Fig6.jpg" alt="" width="287" height="147" border="0" /></a></p>
<p align="center">Figure 6: Create Environment Variable for the parameter</p>
<p>&nbsp;</p>
<h3>Step 7: Right click on the Project (you are not under SSMS, connect to SQL Server, hosting the Integration Services Catalog)</h3>
<p>&nbsp;</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1881.Fig7.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1881.Fig7.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/1881.Fig7.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/1881.Fig7.jpg" alt="" width="269" height="86" border="0" /></a></p>
<p align="center">Figure 7: Configure your SSIS Project/Package to associate parameter with the environment variable</p>
<h3>Step 8: Configure Parameter to refer to the environment variable</h3>
<h4>Under &ldquo;Parameters&rdquo; tab, observe the parameter value:</h4>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/0876.Fig8a.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/0876.Fig8a.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/0876.Fig8a.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/0876.Fig8a.jpg" alt="" width="409" height="123" border="0" /></a></p>
<p align="center">Figure 8a: "Parameters" under "Configure..." dialog box</p>
<h4>Observe the &ldquo;Connection Managers&rdquo; information</h4>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/0268.Fig8b.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/0268.Fig8b.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/0268.Fig8b.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/0268.Fig8b.jpg" alt="" width="429" height="132" border="0" /></a></p>
<p align="center">Figure 8b: "Connection Manager" under "Configure..." dialog box</p>
<h4>Reference the Environment Variable under the &ldquo;Configur&hellip;.&rdquo; Dialog</h4>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2185.Fig8c.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2185.Fig8c.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2185.Fig8c.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2185.Fig8c.jpg" alt="" width="406" height="213" border="0" /></a></p>
<p align="center">Figure 8c: Reference Environment variable for the Parameter (s)</p>
<h3>Step 9: Set the value for the Prod variable, for your runtime value you want to point to</h3>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2474.Fig9.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2474.Fig9.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2474.Fig9.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2474.Fig9.jpg" alt="" width="436" height="108" border="0" /></a></p>
<p align="center">Figure 9: Set the value for the Environment Variable you created</p>
<p align="center">&nbsp;</p>
<h3>Step 10: Change the parameter binding under package configuration (Right click on project or package level under SSIS DB, in SQL Server, choose "Configure")</h3>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2313.Fig10.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2313.Fig10.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/2313.Fig10.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/2313.Fig10.jpg" alt="" width="413" height="241" border="0" /></a></p>
<p align="center">Figure 10:&nbsp;Bind the parameter manually, with the environment variable.</p>
<p>Please note that this is the manual step that we need to perform, when we have different environment variables bound to the same parameter (i.e. one for dev, one for prod)</p>
<h3>Step 11: Execute package by picking the Environment variable bound to the parameter</h3>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4544.Fig11.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4544.Fig11.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/4544.Fig11.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/4544.Fig11.jpg" alt="" width="387" height="244" border="0" /></a></p>
<p align="center">Figure 11: Execute package, dialog box 1, value is not set automatically.</p>
<p>Please note the red mark, this goes away, once you select the environment variable (please note that this binding has to be performed manually, as in step 10, with configuration)</p>
<p align="center"><br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6087.Fig12.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6087.Fig12.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/6087.Fig12.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/6087.Fig12.jpg" alt="" width="406" height="209" border="0" /></a></p>
<p align="center">Figure 12: Select "checkbox" for the environment variable to associate the parameter with the environment variable bound in step 10.</p>
<p>&nbsp;</p>
<h2>Troubleshooting:</h2>
<p>a)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Note that the file will be created upon successful completion of the project</p>
<p>b)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You can use the profiler trace against the source SQL Server to make sure it is picking up the environment variable value</p>
<p>c)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You can look at the package execution report in 2012 to make sure it picked up the right value.</p>
<p>d)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For safety, I erased the security related portion but here is the report looks like:</p>
<p align="center"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8625.Fig13.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8625.Fig13.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/63/53/8625.Fig13.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-63-53/8625.Fig13.jpg" alt="" border="0" /></a></p>
<p align="center">Figure 13: SSIS Runtime report for confirmation that it picked up new value and ran to success</p>
<p>&nbsp;</p>
<p>Please note, run time value is different than the design time value for the Connection Manager</p>
<h3>Reference:</h3>
<p><a href="http://msdn.microsoft.com/en-us/library/hh213230.aspx">http://msdn.microsoft.com/en-us/library/hh213230.aspx</a></p>
<p><a href="http://blogs.msdn.com/b/mattm/archive/2011/07/22/parameterized-connection-managers.aspx">http://blogs.msdn.com/b/mattm/archive/2011/07/22/parameterized-connection-managers.aspx</a></p>
<p><a href="http://blogs.msdn.com/b/mattm/archive/2011/07/25/all-about-server-environments.aspx">http://blogs.msdn.com/b/mattm/archive/2011/07/25/all-about-server-environments.aspx</a></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>File system error: The following error occurred while opening the file \?&lt;mount point on a network share&gt;﻿MDTempStore_***_***_***.tmp: Access is denied</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/file-system-error-the-following-error-occurred-while-opening-the-file-mount-point-on-a-network-sharemdtempstore___-tmp-access-is-denied</link>
      <pubDate>Sun, 25 May 2014 15:16:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/05/25/file-system-error-the-following-error-occurred-while-opening-the-file-mount-point-on-a-network-sharemdtempstore___-tmp-access-is-denied/</guid>
      <description><![CDATA[While working on a recent TFS Analysis Service Database migration scenario, we encountered the...]]></description>
      <content:encoded><![CDATA[<p>While working on a recent TFS Analysis Service Database migration scenario, we encountered the following scenario:</p>
<ul>
<li>
<div style="color: black; margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: verdana; font-size: 9pt;">You try to open the properties&nbsp;dialog box from SSMS, for the connected SSAS instance (right click on the SSAS instance, choose properties)</span></div>
</li>
<li>
<div style="color: black; margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: verdana; font-size: 9pt;">You get the following error message:</span></div>
</li>
</ul>
<p style="margin: 0in; padding-left: 60px; font-size: 9pt;"><span style="color: black; font-family: verdana;">File system error: The following error occurred while opening the </span></p>
<p style="margin: 0in; padding-left: 60px; font-size: 9pt;"><span style="color: black; font-family: verdana;">file </span><a href="file:///\\?\%3cmount"><span style="font-family: verdana;">\\?\&lt;mount</span></a><span style="color: black; font-family: verdana;"> point on a network share&gt;\</span><span style="color: black; font-family: verdana;">MDTempStore_***_***_***.tmp: Access is denied,.</span></p>
<p style="margin: 0in; padding-left: 60px; font-size: 9pt;"><span style="color: black; font-family: verdana;">Error in the metadata manager. An error occurred when loading the Tem System cube, from the </span></p>
<p style="margin: 0in; padding-left: 60px; font-size: 9pt;"><span style="color: black; font-family: verdana;">file &nbsp;</span><a href="file:///\\?\%3cmount"><span style="font-family: verdana;">\"\?\&lt;mount</span></a><span style="color: black; font-family: verdana;"> point on a network share&gt;\Tfs_Analysis.0.db\Team </span><span style="color: black; font-family: verdana;">System.*.cub.xml",</span></p>
<p style="margin: 0in; padding-left: 60px; font-size: 9pt;"><span style="color: black; font-family: verdana;">(Microsoft.AnalysisServices)</span></p>
<p style="margin: 0in; font-size: 9pt;">&nbsp;</p>
<p style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">To resolve the issue, we took the following steps:</span></p>
<ul>
<li>
<div style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">First we created the data folder structure (along with Temp and Log folder structure) on the shared drive (on the mount point drive) i.e. T:\OLAP\data, T:\OLAP\Log, T;|OLAP\Temp etc. We then updated the msmdsrv.ini file with the Data, Log, Temp folder information</span></div>
</li>
<li>
<div style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">We recreated the Tfs_Analysis SSAS database, issuing the creation step from TFS Manager. This is to clean up.</span></div>
</li>
<li>
<div style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">We then added the user (SSAS Service Account) to the SSAS instance level security, as an Admin to SSAS. This actually made the difference, along with the clean data folder structure</span></div>
</li>
<li>
<div style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">Now, when we issue the processing command, we do not get "Access Denied" error message any more</span></div>
</li>
</ul>
<p style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">SSAS does need sufficient read and write access to any location, it writes/reads the data along with the temporary files it needs to create, during DB creation, processing etc. We can likely take process monitor log to look at the path it tries to go to and also the file it tries to create. SSAS Service account is the one that tries to get access to on the Data/Log/Temp locations, as part of its activities. If it does not have proper permission, we may see problem.</span></p>
<p style="margin: 0in; font-size: 9pt;">&nbsp;</p>
<p style="margin: 0in; font-size: 9pt;"><span style="color: black; font-family: verdana;">Happy troubleshooting....</span></p>
<p style="margin: 0in; font-size: 9pt;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>File system error: The following error occurred while opening the file '....~OLAPConfigmsmdsrv.tmp': Access is denied</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/file-system-error-the-following-error-occurred-while-opening-the-file-olapconfigmsmdsrv-tmp-access-is-denied</link>
      <pubDate>Sun, 25 May 2014 13:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/05/25/file-system-error-the-following-error-occurred-while-opening-the-file-olapconfigmsmdsrv-tmp-access-is-denied/</guid>
      <description><![CDATA[I recently worked with the following scenario, did not find any helpful links that explains why we...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;">I recently worked with the following scenario, did not find any helpful links that explains why we may have the issue, so thought about blogging on this.</span></p>
<ul>
<li><span style="font-family: verdana,geneva;">You connect to SSAS from SSMS, as a local admin (administrator account)</span></li>
<li><span style="font-family: verdana,geneva;">The service is running under&nbsp;"Network Service" Account.</span></li>
<li><span style="font-family: verdana,geneva;">You try to add an user, under&nbsp;"security" for the instance (Right click on the&nbsp;instance-&gt;properties)</span></li>
<li><span style="font-family: verdana,geneva;">When you click ok, you get the following error message:</span></li>
</ul>
<p style="padding-left: 30px;">&nbsp;<span style="font-family: verdana,geneva;">TITLE: Microsoft SQL Server Management Studio</span></p>
<p style="padding-left: 30px;"><span style="font-family: verdana,geneva;">------------------------------&nbsp;</span></p>
<p style="padding-left: 30px;"><strong><span style="font-family: verdana,geneva;">File system error: The following error occurred while opening the file '~OLAP\Config\msmdsrv.tmp': Access is denied. .</span></strong></p>
<p style="padding-left: 30px;"><span style="font-family: verdana,geneva;">.......</span></p>
<p style="padding-left: 30px;"><span style="font-family: verdana,geneva;">.......</span></p>
<p><span style="font-family: verdana,geneva;">This happened because the service account does not have enough privilege, to create the file under the location. </span><span style="font-family: verdana,geneva;">The solution would be to change the service account to "Local System" or higher privilege domain account</span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"><span style="text-decoration: underline;">Tips</span>: </span></p>
<p><span style="font-family: verdana,geneva;">If you try to look under the folder, ~OLAP\Config, you won't see the file has been created or exists. SSAS tries to create this temporary file for its own purposes but since the service account does not have right, it cannot the necessary file (s), thus gives the error message. You can try taking a process monitor to see it gets "access denied" when trying to access the file, however, the file actually is not there.</span></p>]]></content:encoded>
    </item>
    <item>
      <title>..Microsoft.AnalysisServer.Server.."Cannot created Activex Component"</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/microsoft-analysisserver-server-cannot-created-activex-component</link>
      <pubDate>Wed, 12 Feb 2014 07:50:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/02/12/microsoft-analysisserver-server-cannot-created-activex-component/</guid>
      <description><![CDATA[Recently, I worked on a scenario, where a .NET application was trying to use&nbsp;SQL Server...]]></description>
      <content:encoded><![CDATA[<p>Recently, I worked on a scenario, where a .NET application was trying to use&nbsp;SQL Server Analysis Services Management object as a COM component. The short description of the objective was:</p>
<p>1.&nbsp;.NET application&nbsp;uses Microsoft.AnalysisServices.Server component to create the Server object to connect SQL Server Analysis Services.</p>
<p>2.&nbsp;The code snippet used, to load Microsoft.AnalysisServices.Server component into the application domain, is</p>
<p>objAS = CreateObject("Microsoft.AnalysisServices.Server")</p>
<p><br />The code above works fine in x86 environment, however the code fails to execute, giving the following error message, under 64 bit environment:</p>
<p><strong>can't load Microsoft.AnalysisServer.Server in 64bit environemnt - "Cannot create Activex Component"</strong></p>
<p>After investigation, I found that, the issue can happen under the following when, for&nbsp;Analysis Management Object (AMO) component for SSAS 2008, we&nbsp;do not install the components properly so that the 32 bit version exe can&nbsp;load 32 bit version of AMO and 64 bit version exes can load 64 bit AMO components</p>
<p><br />There are two possible we can get around to loading issue of the assembly. We can either load the corresponding assembly as:</p>
<p>oAssembly = Assembly.Load("Microsoft.AnalysisServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL")</p>
<p>or we can also load the corresponding assembly as:</p>
<p><br />oAssembly = Assembly.LoadFile("C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.AnalysisServices.DLL")</p>
<p>Now if we create the Server object, as below, we should have a problem.</p>
<p>oAS = oAssembly.CreateInstance("Microsoft.AnalysisServices.Server")</p>
<p>If the above workarounds does not work for some scenarios, then you can use the following technique:</p>
<p><span style="text-decoration: underline;">Step 1</span>:</p>
<p>Download and Install AMO (Analysis Management Object) component (s) from SQL Server 2008 Feature packs:<br /><a href="http://www.microsoft.com/en-us/download/details.aspx?id=16978">http://www.microsoft.com/en-us/download/details.aspx?id=16978</a></p>
<p>Microsoft&reg; SQL Server&reg; 2008 R2 Analysis Management Objects&nbsp; Analysis Management Objects (AMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer Analysis Services objects.</p>
<p>Audience(s): Customer, Partner, Developer</p>
<p>X86 Package(SQLSERVER2008_ASAMO10.msi)<br />X64 Package (SQLSERVER2008_ASAMO10.msi)<br />IA64 Package(SQLSERVER2008_ASAMO10.msi)</p>
<p>for 32 bit x86 option and for 64 bit x64 bit option</p>
<p><span style="text-decoration: underline;">Step 2</span>:</p>
<p>Register the DLL</p>
<p>Register the .NET Assembly manually into the registry this way:<br />C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies&gt;C:\windows\microsoft.net\Framework64\v2.0.50727\regasm.exe Microsoft.AnalysisServices.DLL (for 64 bit)<br />C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies&gt;C:\windows\microsoft.net\Framework\v2.0.50727\regasm.exe Microsoft.AnalysisServices.DLL (for 32 bit)</p>
<p><span style="text-decoration: underline;">Reference</span><br /><a href="http://www.advancedinstaller.com/forums/viewtopic.php?f=2&amp;t=7837">http://www.advancedinstaller.com/forums/viewtopic.php?f=2&amp;t=7837</a></p>
<p><br />For .NET Framework 2.0 the 32-bit version of "Regasm.exe" is installed in this folder:<br />Code: Select all C:\windows\microsoft.net\Framework\v2.0.50727\regasm.exe<br />and the 64-bit version in this folder:<br />Code: Select allC:\windows\microsoft.net\Framework64\v2.0.50727\regasm.exe<br />So you have to use the respective regasm exe and the respective DLL version with the appropriate path for 32 bit and 64 bit version respective</p>
<p><span style="text-decoration: underline;">Step 3</span>:</p>
<p>Verify the component in the registry for COM interoperability</p>
<p>After this, the component should show you under register as:<br />Computer\HKEY_CLASSES_ROOT\Microsoft.AnalysisServices.Server</p>
<p><span style="text-decoration: underline;">Step 4</span>:</p>
<p>Write code to create COM Component in .NET code.</p>
<p>Now that you have the DLL, you can use the code:<br />oAS = CreateObject("Microsoft.AnalysisServices.Server")</p>
<p>&nbsp;</p>
<p>After this step, you should have see the error message any more.</p>
<p>&nbsp;</p>
<p>Hope this helps in future AMO programming scenario, where you need to troubleshoot AMO Assembly ioading issues.</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Tips</span>:</p>
<p>Use <a href="http://blogs.msdn.com/b/suzcook/archive/2003/05/29/57120.aspx">Fusion logging</a> technique, to understand, why might be having the assembly loading issues.</p>
<p>&nbsp;</p>
<p>Happy Analysis Management Object programming....</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SSRS Performance Troubleshooting: Where did we spend the time before the report even started executing?</title>
      <link>https://docs.microsoft.com/archive/blogs/meer_alam/ssrs-performance-troubleshooting-where-did-we-spend-the-time-before-the-report-even-started-executing</link>
      <pubDate>Tue, 11 Feb 2014 20:28:00 GMT</pubDate>
      <dc:creator><![CDATA[Meer Al - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/meer_alam/2014/02/11/ssrs-performance-troubleshooting-where-did-we-spend-the-time-before-the-report-even-started-executing/</guid>
      <description><![CDATA[I recently dealt with couple of scenarios, where, we struggled to understand, at first, why the...]]></description>
      <content:encoded><![CDATA[<p style="margin: 0in; text-align: justify;"><span style="font-family: Calibri; font-size: 11pt;">I recently dealt with couple of scenarios, where, we struggled to understand, at first, why the report was taking so long to finally render, yet, the </span><span style="background: white; color: #333333; font-family: 'Segoe UI'; font-size: 9pt; font-weight: bold;">TimeDataRetrieval, TimeProcessing, TimeRendering </span><span style="background: white; color: #333333; font-family: 'Segoe UI'; font-size: 9pt;">in </span><a href="http://blogs.msdn.com/b/robertbruckner/archive/2009/01/05/executionlog2-view.aspx"><span style="background: white; color: #333333; font-family: 'Segoe UI'; font-size: 9pt;">ExecutionLog2 </span><span style="font-family: Calibri; font-size: 11pt;">View</span></a><span style="font-family: Calibri; font-size: 11pt;"> did not explain the total report processing time.</span></p>
<p style="margin: 0in; text-align: justify;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">For simplicity, in my observation, the total report processing time is divided into the following:</p>
<ol>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Step 1) The time between when you&nbsp;click on a report to render and when report with parameters page and&nbsp;"View Report" button shows up and</span></div>
</li>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Step 2) The time between when you&nbsp;choose parameters and click on the "View Report" button and the&nbsp;report is rendered based on your selection. This is typically the report&nbsp;execution time, for which the ExeuctionLog2 view would show all the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; information.</span></div>
</li>
</ol>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">If you have the default values for all parameters, then your report will be directly rendered first time, so, the time for 1) and 2) will be combined to give you impression that report is running for a long time.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">If you need to choose the parameter values, then, it is easy to see the 2 separate times slices for 1) and 2) above, you can see the Report Viewer Control first, to choose the parameter and click "View Report", this is strictly the time related to step 1. In some cases, the time slice in this step can be significant, which may not be well understood, if we do not pay attention, during your report design. This is what we have discovered in one case and related the same for other, as the behavior was the same.</p>
<p style="margin: 0in 0in 0in 0.375in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">In our scenario, we had report with multiple parameters and they were bound to separate datasets (embedded) which would populate drop down lists with multi-select options. There was a known issue prior to SSRS 2008 R2 SP2, related to number of items in a dropdown parameter list, which was addressed already so we know that was not the problem in our scenario.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Without giving the details about the datasets, I just want to point out the Technet article, <a href="http://technet.microsoft.com/en-us/library/dd239331.aspx#Parameters">Report Embedded Datasets and Shared Datasets (Report Builder and SSRS)</a>, which discusses the datasets and parameters in details, the same design (embedded datasets for parameters) was used in our scenario. The concentration of this blog is how I found out where the time is spent in scenario step 1 (time slice 1) above.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Basically, I used the following tools to track down where the time is spent:</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;"><span style="font-family: Calibri; font-size: 11pt; font-style: normal; font-weight: normal;">Fiddler Trace</span></p>
<ol>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">SSRS HTTP Trace</span></div>
</li>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">SSRS Verbose Logging.</span></div>
</li>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">ExecutionLog2 View</span></div>
</li>
<li>
<div style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Profiler Trace against the&nbsp;data source, especially observe the time before the actual report execution takes place.</span></div>
</li>
</ol>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">ExecutionLog2 View would only explain the time in step 2 above.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">So I used the Fiddler Trace, which showed that, for scenario, which includes, time for 1) and 2) above (no default parameter values set), it was significant time on step 1) and time in step 2 would be expected. It would seem, from the Fildder trace, that the GET request is taking all the time.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">With further research, I then had SSRS HTTP Tracing and SSRS Verbose logging turned on and finally I was able to track down&nbsp;the time.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">HTTP Trace would nicely show the GET request for step 1, when the request started and when it finished, which would be equal to the GET request in the Fiddler trace.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Researching on the SSRS Verbose Log, I would see that we would have request for each parameter list population, as a form of establishing a connection and then populating the dataset associated the parameter. If you have multiple parameters, you would see one connection and dataset pair for each one, if the parameter is bound to the embedded dataset.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Profiler trace helped to understand the time for step 2 first (matches the report execution time, especially&nbsp;<span style="background: white; color: #333333; font-family: 'Segoe UI'; font-size: 9pt; font-weight: bold;">TimeDataRetrieval</span> matching the time with ExecutionLog2 View) but then with the information available from SSRS Verbose Log, this time profiler would clearly show all the connections, for each parameter population.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Please note, again, this is the time that was spent, before you can click on "View Report" choosing the parameters. If you have default values set, for parameters, you would have to carefully look at each possible connections to the data source (s), to put these two (step 1 and 2 above) together.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">It was easy to see then why it was taking time before I could see the report page with parameters and "View Reports" and select the parameter and click the button to view the report.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">In the scenario, where the default parameter values are set, the report will render combining the time in step 1) and 2) above, so you would have to definitely look for the first step carefully and should not only rely on the ExecutionLog2 View.</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">I hope, if you follow these steps, for your next report performance issue, where, it matches the above scenario, you will find the missing time and take appropriate steps (i.e. query tuning, report redesign etc.) to address the performance issue. In this regard, the following blog post will be helpful further performance tuning:</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;"><a href="http://cwebbbi.wordpress.com/2010/03/02/ssrs-and-ssas-sourced-parameter-dataset-performance-issues/">SSRS and SSAS-Sourced Parameter Dataset Performance Issues</a></p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; text-align: justify; font-family: Calibri; font-size: 11pt;">Happy SSRS Performance Troubleshooting&hellip;..</p>]]></content:encoded>
    </item>
  </channel>
</rss>