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

<channel>
	<title>SQL Server Connectivity Issue - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/sql-server-connectivity-issue/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Sun, 09 Apr 2023 08:23:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>SQL Server Connectivity Issue - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Fix SQL Error 18456: failed to open the explicitly specified database</title>
		<link>https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/</link>
					<comments>https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sat, 18 Sep 2021 10:16:39 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2747</guid>

					<description><![CDATA[<p>This article will help you fixing SQL Server Error: 18456, Severity: 14, State: 38, Reason: Failed to Open the Explicitly Specified Database. We were getting below error in our SQL Server error log for one of our login. Login Failed&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/">Fix SQL Error 18456: failed to open the explicitly specified database</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This article will help you fixing SQL Server  Error: 18456, Severity: 14, State: 38, Reason: Failed to Open the Explicitly Specified Database. We were getting below error in our SQL Server error log for one of our login.</p>



<p><strong>Login Failed – Error: 18456, Severity: 14, State: 38</strong></p>



<p><strong>Reason: Failed to Open the Explicitly Specified Database</strong></p>



<h2 class="wp-block-heading">Fix Error &#8220;Failed to Open the Explicitly Specified Database&#8221;</h2>



<p>The error log is saying &#8220;<em>Failed to Open the Explicitly Specified Database</em>&#8220;, it means either your have specified wrong database in your connection string or your login does not have access to the specified database. You can validate below options to isolate this issue.</p>



<ul class="wp-block-list">
<li>Check whether you have specified correct database in your connection string or not</li>



<li>If you are using correct database then whether the login you are using to establish database connection has access to this specified database or not.</li>



<li>Correct if you find something in any of the above two options.</li>



<li>Check login properties whether it is using correct database as default database configuration or not. If correct database is defined then login has access to that database or not. I will explain about this step in below section as well.</li>



<li>You should also check whether number of connections to the database is exhausted or not. Review your maximum number of connections setting.</li>



<li>Ensure your database is not set to AUTO CLOSE setting or not inaccessible. Database should be online and healthy state to accept connections.</li>



<li>Make sure you have a trust between both machines, database server and the machine from where you are trying to connect. I would suggest you to read below article as well where i have explained various steps to troubleshoot SQL Server connection issues.</li>
</ul>



<p><strong><em>Read more articles on SQL error 18456 and connection issues:</em></strong></p>



<ul class="wp-block-list">
<li><a href="https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/" target="_blank" rel="noreferrer noopener"><strong>How to Fix SQL Server Error 18456: A Comprehensive Guide</strong></a></li>



<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/" target="_blank" rel="noreferrer noopener">How to fix SQL Server error 53 &#8211; Not able to open database connection</a></strong></li>



<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/" target="_blank" rel="noreferrer noopener">Fix SQL Server error 18456 &#8211; Login failed for user</a></strong></li>
</ul>



<p>Let&#8217;s learn how to check default database settings for a SQL Server login and a user mapping for any database to the login.</p>



<h3 class="wp-block-heading">Check Login Properties</h3>



<p>The solution to fix this issue can also come by reviewing the properties of this login. Launch its properties window and change the default database to the correct one if this setting is showing wrong database. Sometimes, we drop the databases from the SQL Server instances but never update other objects. If this login is not showing any database and it is showing blank then click at its drop-down to choose your desired database as the default database for this login. Click on Ok button to apply that change. You will stop getting this issue after making this change. </p>



<p>You can open login properties windows by right click at the identified login and then choose properties from dropdown options.</p>



<p>Sometimes, you have chosen the default database as &#8220;master&#8221; but your login doesn&#8217;t have connect permission on master database so ensure you have at least connect permission on the database which you are choosing as the default database for your login. You can click at &#8220;User Mapping&#8221; tab from left side pane of the login properties window. You will get all databases in top side of right side pane and level of access in bottom side pane. Click at your database from right side pane along with its level of permission which you want to assign. Click at Ok button to apply this change.</p>



<p>Have a look at below screenshot to understand default database of a login and from where you can access User Mapping tab to provide appropriate access to your database. Your login should have access to both databases, the one mentioned as default database for your login and the specified database in connection strings.</p>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/09/image.png" alt="" class="wp-image-2748" width="586" height="526" srcset="https://techyaz.com/wp-content/uploads/2021/09/image.png 585w, https://techyaz.com/wp-content/uploads/2021/09/image-300x269.png 300w" sizes="(max-width: 586px) 100vw, 586px" /><figcaption class="wp-element-caption">SQL Server Login properties window</figcaption></figure>



<p>You can fix SQL error &#8220;Failed to Open the Explicitly Specified Database&#8221; by following above steps. Write your feedback if you have fixed this issue by other way. I will update this article accordingly with credits.</p>
<p>The post <a href="https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/">Fix SQL Error 18456: failed to open the explicitly specified database</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 121 &#8211; The Semaphore Timeout Period Has Expired</title>
		<link>https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/</link>
					<comments>https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 15 Jun 2021 14:15:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2549</guid>

					<description><![CDATA[<p>Yesterday one of my teammate got a weird error while executing a T-SQL script. We are talking about SQL Server error 121 the semaphore timeout period has expired. Error details are showing below: A transport-level error has occured when receiving&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/">Fix SQL Server Error 121 &#8211; The Semaphore Timeout Period Has Expired</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Yesterday one of my teammate got a weird error while executing a T-SQL script. We are talking about SQL Server error 121 the semaphore timeout period has expired. Error details are showing below:</p>



<p><strong>A transport-level error has occured when receiving results from the server. (provider: TCP Provider, error: 0 &#8211; The semaphore timeout period has expired.) (Microsoft SQL Server, Error:121)</strong></p>



<p>This was an intermittent issue and when we were executing the script from other server it was not throwing any issue. I did some research on this and found out that this error came because of unstable network connectivity.</p>



<h2 class="wp-block-heading">SQL Server Error 121 The Semaphore Timeout Period Has Expired &#8211; Root Cause</h2>



<p>There are various parameters that can affect network connectivity like network adaptors, packet drop, configured packet size etc. So i would suggest first you should connect to your network team and ask them to look into this issue. If network team has not found anything then you need to check application level network configurations at your level.</p>



<p>You should ask some questions to your network resource like whether any network packet drop being observed or not, or is there any NIC card issue etc. Let&#8217;s assume you have already reached out to network team and they haven&#8217;t found anything. I would suggest you to look into below options at your level to make sure everything is in place and not misconfigured.</p>



<ul class="wp-block-list"><li>Check TCP\IP settings</li><li>Ensure you have appropriate network packet size configured in SQL Server</li><li>Make sure you have properly configured TCP Chimney Offload</li><li>Validate you don&#8217;t have Network Interface Card (NIC) driver issue, you can get it checked with your network team</li></ul>



<h2 class="wp-block-heading">Solution</h2>



<p>I have already described high level areas where you need to look in in above section. Let&#8217;s discuss them further here.</p>



<h4 class="wp-block-heading"><strong>Check TCP\IP settings</strong> </h4>



<p>You should open SQL Server configuration manager and check whether TCP configuration is properly done or not. Make sure to review all settings in SQL Server Network configuration settings. You should also read below article about this settings which causes a network error.</p>



<ul class="wp-block-list"><li><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noreferrer noopener"><strong>Fix: SQL Network Interfaces Error 28&nbsp;– Server doesn’t support requested protocol</strong></a></li></ul>



<h4 class="wp-block-heading"><strong>Review Network Packet Size</strong></h4>



<p>You should also review network packet size configuration in SQL Server. This could be one of the possible reason for this issue. Ideally we should not change the default value of this setting and keep it as it is until you have a specific requirement to change network packet size. Read below article to understand and learn network packet size in SQL Server and also step by step process about how to change the network packet size to your desired value.</p>



<ul class="wp-block-list"><li><a href="https://techyaz.com/sql-server/sql-server-administration/change-network-packet-size-sql-server/" target="_blank" rel="noreferrer noopener"><strong>How to Change Network Packet Size Configuration in SQL Server</strong></a></li></ul>



<h4 class="wp-block-heading"><strong>TCP Chimney Offload</strong></h4>



<p>This settings is very important if we have network related connectivity issue. <a href="https://docs.microsoft.com/en-US/troubleshoot/windows-server/networking/information-about-tcp-chimney-offload-rss-netdma-feature" target="_blank" rel="noreferrer noopener">TCP Chimney Offload</a> is a networking technology that helps transfer the workload from the CPU to a network adapter during network data transfer. It can be enabled or disabled in the following two locations:</p>



<ul class="wp-block-list"><li>The operating system</li><li>The advanced properties page of the network adapter</li></ul>



<p>TCP Chimney Offload will work only if it is enabled in both locations. By default, TCP Chimney Offload is disabled in both these locations. However, OEM installations may enable TCP Chimney Offload in the operating system, in the network adapter, or in both the operating system and the network adapter. </p>



<h4 class="wp-block-heading"><strong>Validate Network related Driver Issues</strong></h4>



<p>You should speak to your network resource and Windows OS platform resource and validate all drivers at OS layer and network layer should be up to date and they should not have any issue. Make sure to update the drivers if you found any issue any of these layer.</p>



<p>I hope you can fix your issue by following above steps mentioned in this article. Comment us how you have fixed this issue, the semaphore timeout period has expired.) (Microsoft SQL Server, Error:121)</p>



<p><strong><span style="color:#2e65d1" class="has-inline-color">Related Articles</span></strong></p>



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noreferrer noopener">SQL Server Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server.</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/" target="_blank" rel="noreferrer noopener">Fix Error 1418: The server network address cannot be reached or does not exist.</a></strong></li><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noreferrer noopener">Fix: SQL Network Interfaces Error 28&nbsp;– Server doesn’t support requested protocol</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/" target="_blank" rel="noreferrer noopener">SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</a></strong></li></ul>
<p>The post <a href="https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/">Fix SQL Server Error 121 &#8211; The Semaphore Timeout Period Has Expired</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Authentication Mode in SQL Server?</title>
		<link>https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/</link>
					<comments>https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 14 Jun 2021 16:24:20 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2539</guid>

					<description><![CDATA[<p>Authentication is a process to establish a successful connection. SQL Server provides two types of authentication modes to connect to their database instances. Authentication Mode is configured while installing SQL Server instance. We can also change SQL Server authentication mode&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/">How to Change Authentication Mode in SQL Server?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Authentication is a process to establish a successful connection. SQL Server provides two types of authentication modes to connect to their database instances. Authentication Mode is configured while installing SQL Server instance. We can also change SQL Server authentication mode later post installation. Below are two types of authentication modes in SQL Server.</p>



<ul class="wp-block-list"><li>Mixed Mode ( Windows +SQL Server login )</li><li>Windows Mode (Only Windows)</li></ul>



<p>Mixed mode provides two ways to establish database connections. One is using SQL Server logins at SQL Server layer and another one is using Windows domain user authenticated using active directory and whose login is created and mapped on SQL Server instance.</p>



<p>Windows Mode has only one way to establish database connections and that is using windows domain accounts. We must map windows accounts on SQL Server first before making any database connections. This mode doesn&#8217;t provide access to SQL Server logins. </p>



<p class="has-text-color has-vivid-red-color"><strong>Read More to Grow:</strong></p>



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/sql-server-interview-questions-answers-indexes/" target="_blank" rel="noreferrer noopener">SQL Server Interview Questions &amp; Answers on Indexes</a></strong></li><li><strong><a href="https://techyaz.com/learning/prepare-for-job-interview/" target="_blank" rel="noreferrer noopener">How to Prepare for a Job Interview?</a></strong></li><li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/sql-server-alwayson-interview-questions-answers/" target="_blank" rel="noreferrer noopener">SQL Server Alwayson Interview Questions &amp; Answers</a></strong></li><li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/replication-qa-part-1/">SQL Server Replication Interview Questions &amp; Answers</a></strong></li></ul>



<h2 class="wp-block-heading">Why Windows Authentication Mode is More Secure in SQL Server?</h2>



<p>Windows mode is secure than Mixed mode authentication because mixed mode has SQL Server authentication which cannot use Kerberos security protocol. Windows account needs to be authenticated to domain active directory every time you establish a database connection. Also, Windows provides additional password policies that are not available for SQL Server logins and that is why Microsoft always recommends to use Windows authentication mode wherever it&#8217;s possible.</p>



<p>One more risk with Mixed mode is the encrypted SQL Server Authentication login password must be passed over the network at the time of the connection. Some applications that connect automatically will store the password at the client. These are additional attack points. </p>



<h2 class="wp-block-heading">Change Authentication Mode in SQL Server</h2>



<p>You can configure authentication mode in SQL Server during installing it to your system. SQL Server installation windows will allow you to choose any one of above given authentication modes. If you will choose mixed authentication mode then you need to provide sa password as per windows password policy. You can also change existing authentication mode setting to another one as per your business need.</p>



<p>Let&#8217;s assume you have installed SQL Server with Mixed authentication mode and now you have to change it to Windows Authentication mode. This section will explain step by step process to change SQL Server authentication mode.</p>



<p>We can set or change authentication mode in SQL Server either using SQL Server management studio or using T-SQL statements. </p>



<h3 class="wp-block-heading"><strong>Using SQL Server Management Studio</strong></h3>



<ol class="wp-block-list"><li>Launch SQL Server Management Studio, connect to your target SQL Server instance.</li><li>In SQL Server Management Studio Object Explorer, right-click the server, and then click&nbsp;<strong>Properties</strong>.</li><li>On the&nbsp;<strong>Security</strong>&nbsp;page, under&nbsp;<strong>Server authentication</strong>, you can see both authentication modes. Select any as per your need and then click&nbsp;<strong>OK</strong>.</li><li>This change will require SQL Server service restart. A popup window will appear to ask you to restart the service when you will click at OK button in above step. </li><li>In Object Explorer, right-click your server, and then click&nbsp;<strong>Restart</strong>. If SQL Server Agent is running, it must also be restarted.</li></ol>



<p>You have changed your authentication mode from Mixed mode to Windows using SQL Server Management Studio. </p>



<p>If you are changing authentication mode from Windows to Mixed mode then make sure to enable SQL Server login sa account. This account gets disabled during windows authentication mode to secure your SQL Server instance as sa is generic SQL Server login as it can be targeted by hackers to access your instance. Below are the steps to enable this account:</p>



<ol class="wp-block-list"><li>In Object Explorer, expand&nbsp;<strong>Security</strong>, expand Logins, right-click&nbsp;<strong>sa</strong>, and then click&nbsp;<strong>Properties</strong>.</li><li>On the&nbsp;<strong>General</strong>&nbsp;page, you might have to create and confirm a password for the&nbsp;<strong>sa</strong>&nbsp;login.</li><li>On the&nbsp;<strong>Status</strong>&nbsp;page, in the&nbsp;<strong>Login</strong>&nbsp;section, click&nbsp;<strong>Enabled</strong>, and then click&nbsp;<strong>OK</strong>.</li></ol>



<h3 class="wp-block-heading"><strong>Using T-SQL Statement</strong></h3>



<p>Microsoft has provided an extended stored procedure to chnage authenication mode in SQL Server using T-SQL statement. This extended stored procedure chnages windows registry entries so be careful while changing authentication mode in SQL Server using T-SQL statements. Make sure to take a backup of windows registry before executing this script.</p>



<p><code><strong>USE [master]<br>GO<br>EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE',<br>N'Software\Microsoft\MSSQLServer\MSSQLServer',<br>N'LoginMode', REG_DWORD, 1<br>GO</strong></code></p>



<p>Above command has again changed authenticating mode from mixed to windows.</p>



<p>If you are doing other way around then make sure to enable sa login as i suggested above. You can also use below T-SQL statement to enable sa account.</p>



<p><code><strong>ALTER LOGIN sa ENABLE ;<br>GO<br>ALTER LOGIN sa WITH PASSWORD = 'STRONG-PASSWORD' ;<br>GO</strong></code></p>



<p>Here, i have explained how to change SQL Server authentication mode from Windows to Mixed mode or vice versa. Please comment us if you have any feedback on this article.</p>



<p class="has-text-color has-vivid-red-color"><strong>Related Articles:</strong></p>



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/" target="_blank" rel="noreferrer noopener">Fix SQL Server Error 18456: Login failed for user ‘User_Name’.</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/change-sql-server-instance-name/" target="_blank" rel="noreferrer noopener">How to Change SQL Server Instance Name?</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/t-sql/create-logon-trigger-restrict-sysadmin-logins-connect-sql-server-given-time-interval/" target="_blank" rel="noreferrer noopener">Create a Logon Trigger to Restrict sysadmin logins to connect to SQL Server for given Time Interval</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-18452-login-failed-login-from-untrusted-domain/" target="_blank" rel="noreferrer noopener">Fix Error 18452: Login failed. The login is from an untrusted domain</a> </strong></li></ul>



<p></p>
<p>The post <a href="https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/">How to Change Authentication Mode in SQL Server?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix:VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master&#8217;</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 30 Aug 2018 10:52:28 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[logins]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2435</guid>

					<description><![CDATA[<p>Yesterday, one of the app user was complaining that he is not able to execute some of the queries and facing &#8220;VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master&#8217; . (Microsoft SQL Server, Error 300) &#8221; error while&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/">Fix:VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master&#8217;</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday, one of the app user was complaining that he is not able to execute some of the queries and facing &#8220;<em>VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master&#8217; . (Microsoft SQL Server, Error 300) &#8221; </em>error while executing the script. The screenshot of this error is given below.</p>
<p><img decoding="async" class="alignnone size-full wp-image-2436" src="https://techyaz.com/wp-content/uploads/2018/08/1-error-300-min.jpg" alt="SQL Server Error 300" width="723" height="193" srcset="https://techyaz.com/wp-content/uploads/2018/08/1-error-300-min.jpg 723w, https://techyaz.com/wp-content/uploads/2018/08/1-error-300-min-300x80.jpg 300w" sizes="(max-width: 723px) 100vw, 723px" /></p>
<h3><span style="color: #000000;">VIEW SERVER STATE Permission</span></h3>
<p>This is high level server-level privilege which must not be granted to everybody. Only administrators must have privilege to use view server state permission but we can assign this permission to some users who want to see server level state of your SQL Server instance. Once you will grant this access to any login, he can see result of all DMVs.</p>
<h2><span style="color: #000000;">Solution &#8211; ( Microsoft SQL Server, Error 300 )</span></h2>
<p>We got SQL Server error 300 ( VIEW SERVER STATE permission was denied ) because the login you are using to execute the script doesn&#8217;t have this permission. To fix this issue we will grant view server state permission to the login name. This section will explain how to grant view server state permission to a login.</p>
<h3>Grant VIEW SERVER STATE Permission</h3>
<p>We can assign this permission either using GUI in SQL Server Management Studio or we can simply execute a T-SQL command to get this done. I will explain both ways to assign this permission.</p>
<p><strong><span style="color: #993300;">Using GUI in SQL Server Management Studio</span></strong></p>
<p>Follow below steps to do it using GUI.</p>
<ol>
<li>Launch SQL Server Management Studio.</li>
<li>Connect to the SQL Server Instance.</li>
<li>Navigate to <strong>Security </strong>folder then expand<strong> Logins</strong></li>
<li>Right Click at your login name and choose <strong>Properties</strong></li>
<li>Click at <strong>Securables</strong> tab from left side pane.</li>
<li>In the bottom pane, scroll to the bottom and click at <strong>Grant</strong> option for <strong>View Server State </strong>value.</li>
<li>Now click on apply to close the window. You can now ask your user to test the script again. This time it will work.</li>
</ol>
<p><strong><span style="color: #993300;">Using T-SQL statement in SQL Server Management Studio</span></strong></p>
<ol>
<li>Launch SQL Server Management Studio. Connect to the SQL Server Instance.</li>
<li>Open <strong>New Query </strong>window</li>
<li>Run below T-SQL statement</li>
</ol>
<pre><em><strong><span style="color: #0000ff;">USE master</span></strong></em>
<em><strong><span style="color: #0000ff;">GO</span></strong></em>
<em><strong><span style="color: #0000ff;">GRANT VIEW SERVER STATE TO "LoginName"</span></strong></em></pre>
<p>Once you execute above command, you will have view server state permission on your login name. You can resolve <em><strong>SQL Server error 300</strong></em> <strong><em>VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master </em></strong>issue by following above steps given in this article.</p>
<h3>Revoke VIEW SERVER STATE Permission</h3>
<p>If you have identified anyone who must not have this permission then you can go ahead and revoke his access post getting proper approvals. Make sure that identified login does not have any business justification before revoking his access. Once you have decided to go ahead to remove view server state permission then you should run below T-SQL statement to get this done. Below steps will tell you how to revoke view server state permission of any login.</p>
<p><em><strong><span style="color: #0000ff;">USE master</span></strong></em></p>
<p><em><strong><span style="color: #0000ff;">REVOKE VIEW SERVER STATE TO &#8220;LoginName&#8221;</span></strong></em></p>
<p><em><strong><span style="color: #0000ff;">GO</span></strong></em></p>
<p>View SERVER STATE permission has been revoked for identified login post successful execution of above statement.</p>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><em><span style="color: #800000;"><strong>Read More:</strong></span></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/sql-server-alwayson-interview-questions-answers/" target="_blank" rel="noopener">SQL Server AlwaysON Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server DBA Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/enhanced-database-failover-in-availability-group/" target="_blank" rel="noopener">Understanding Enhanced Database Failover in Always on Availability Group</a></strong></li>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/replication-qa-part-1/" target="_blank" rel="noopener">SQL Server Replication Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/">Fix:VIEW SERVER STATE permission was denied on object &#8216;server&#8217;, database &#8216;master&#8217;</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</title>
		<link>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/</link>
					<comments>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 29 Aug 2018 12:10:18 +0000</pubDate>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2425</guid>

					<description><![CDATA[<p>Today, one of my team mate was trying to attach a database on one of the clustered SQL Server instance. He got error 5184 while attaching the database. The details about error 5184 is given below. Msg 5184, Level 16,&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/">SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, one of my team mate was trying to attach a database on one of the clustered SQL Server instance. He got error 5184 while attaching the database. The details about error 5184 is given below.</p>
<p><em><span style="color: #ff0000;">Msg 5184, Level 16, State 2, Line 1</span></em><br />
<em><span style="color: #ff0000;">Cannot use file ‘I:\Path\Techyaz.mdf’ for clustered server. </span></em><br />
<em><span style="color: #ff0000;">Only formatted files on which the cluster resource of the server has a dependency can be used. </span></em><em><span style="color: #ff0000;">Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql Server does not have a dependency on it.</span></em></p>
<p><em><span style="color: #ff0000;">Msg 1802, Level 16, State 1, Line 1</span></em><br />
<em><span style="color: #ff0000;">CREATE DATABASE failed. Some file names listed could not be created. Check related errors.</span></em></p>
<p>While troubleshooting this error we came to know that the storage or LUN on which we have placed the database files are not added to cluster group. It means disk is not visible in failover cluster manager.</p>
<h3><span style="color: #333399;">Solution &#8211; Error 5184</span></h3>
<p>We performed below steps to fix this issue.</p>
<ol>
<li>Added the storage on which databases files are placed as shared storage in the failover cluster manager.</li>
<li>Launch SQL Server properties window in Failover Cluster Manager.</li>
<li>Added all newly added disks in Dependencies tab.</li>
<li>Attached the database again.</li>
</ol>
<p>Here i will explain above steps in detail with screenshots.</p>
<ul>
<li>We were attaching a database using T-SQL statement on one of the SQL Server cluster instance. While executing the command we get error 5184. Error details are given in below screenshot.</li>
</ul>
<p><img decoding="async" class="alignnone wp-image-2426" src="https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-1024x178.jpg" alt="Fix SQL Server Error 5184" width="659" height="115" srcset="https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-1024x178.jpg 1024w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-300x52.jpg 300w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-768x133.jpg 768w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min.jpg 1066w" sizes="(max-width: 659px) 100vw, 659px" /></p>
<ul>
<li>As error suggests that <em>“Either the disk resource containing the file is not present in the cluster group”</em> so I checked cluster group for the disk and found that database files storage was not showing in failover cluster manager.</li>
<li>Next step was to add these storage disks to the cluster group. Launch <strong>failover cluster manager</strong>. Click at <strong>Roles</strong> tab from left side pane. You can see SQL Server as role in right side pane. Right click at the SQL Server role and click at “<strong>Add Storage</strong>” option. You can see this in below screenshot.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2427" src="https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min.jpg" alt="Add Storage to Cluster group" width="514" height="329" srcset="https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min.jpg 589w, https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min-300x192.jpg 300w" sizes="auto, (max-width: 514px) 100vw, 514px" /></p>
<ul>
<li>Once you will click at “<strong>Add Storage</strong>” option you will get below window to add the identified disks to cluster group. You can see I have selected all required disks in below screenshot. You can choose your disks where your database files are placed.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2428" src="https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min.jpg" alt="Add Storage to cluster group" width="680" height="511" srcset="https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min.jpg 815w, https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min-300x225.jpg 300w, https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min-768x577.jpg 768w" sizes="auto, (max-width: 680px) 100vw, 680px" /></p>
<ul>
<li>Once you click at OK button post selecting all respective check boxes in above step, you will see all your storage disks in failover cluster manager under storage tab.</li>
<li>Now again click at the SQL Server role and then go to “<strong>Resources</strong>” tab from down side pane where you can see SQL Server and all resources that are aligned for the SQL Server role. Here, right click at SQL Server and click at Properties tab as shown in below screenshot.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2429" src="https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min.jpg" alt="Add Disk Dependencies in FCM" width="589" height="182" srcset="https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min.jpg 589w, https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min-300x93.jpg 300w" sizes="auto, (max-width: 589px) 100vw, 589px" /></p>
<ul>
<li>Once you get SQL Server properties windows in failover cluster manager, next you should click at dependencies tab. Here, you need to insert one row for each disk system that you have added in above steps. Once you will insert dependencies for all newly added disks then it will look like below screenshot. Now click at OK button to apply this change.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2430" src="https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min.jpg" alt="Add Disk Dependencies in FCM" width="405" height="493" srcset="https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min.jpg 405w, https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min-246x300.jpg 246w" sizes="auto, (max-width: 405px) 100vw, 405px" /></p>
<ul>
<li>Now again go to SQL Server query window and run the T-SQL command to  attach the database. This time you will successfully attach the database to the clustered SQL Server instance.</li>
</ul>
<p>Let me know if this article helped you to fix your issue. You can follow our <a href="https://www.facebook.com/Techyaz/" target="_blank" rel="noopener">facebook</a> page and <a href="https://twitter.com/Tech_yaz" target="_blank" rel="noopener">Twitter</a> handle to get latest updates.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/upgrade-or-patch-sql-server-failover-cluster-instance-with-availability-group/" target="_blank" rel="noopener">Upgrade or Patch SQL Server Failover Cluster Instance Running with Availability Group</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/change-failover-mode-of-availability-replica-in-always-on-availability-group/" target="_blank" rel="noopener">How to Change Failover Mode of Availability Replica in AOAG?</a></strong></li>
<li><strong><a href="https://techyaz.com/learning/prepare-for-job-interview/" target="_blank" rel="noopener">How to Prepare for a Job Interview?</a></strong></li>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server DBA Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/">SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change SQL Server Instance Name?</title>
		<link>https://techyaz.com/sql-server/change-sql-server-instance-name/</link>
					<comments>https://techyaz.com/sql-server/change-sql-server-instance-name/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 23 Apr 2018 10:18:35 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[Stored Procedures]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2112</guid>

					<description><![CDATA[<p>Changing SQL Server Instance name is not a routine task. Although, sometimes we get requirements to change SQL Instance name. There are multiple scenarios in which we need to rename SQL Server Instance like: If you have changed database server&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/change-sql-server-instance-name/">How to Change SQL Server Instance Name?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Changing SQL Server Instance name is not a routine task. Although, sometimes we get requirements to change SQL Instance name. There are multiple scenarios in which we need to rename SQL Server Instance like:</p>
<ul>
<li>If you have changed database server name then we should change SQL Server Instance name as well.</li>
<li>If you have cloned a database server from DBSERVER1 to DBSERVER2. Here, SQL Server installed on DBSERVER1 will be copied with same name to DBSERVER2. You need to change the SQL Server instance name on DBSERVER2.</li>
<li>Naming convention is not met.</li>
</ul>
<p>Please keep in mind that we cannot change complete name of SQL Server named instance. Suppose you have installed a named instance <em>SERVERNAME</em>\<em>DBInstance1 </em>on your server. If you want to rename this named instance then we can only change first part of this name i.e. <em>SERVERNAME</em>. You cannot change <em>DBInstance1</em> so your named instance will look like <em>DBSERVERNAME</em>\<em>DBInstance1</em> post name change.</p>
<h3><span style="color: #333399;">Impact of Changing SQL Server Instance Name</span></h3>
<p><img loading="lazy" decoding="async" class="size-full wp-image-2113 alignright" src="http://techyaz.com/wp-content/uploads/2018/04/Rename-SQL-Server-Instance.png" alt="Rename SQL Server Instance name" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/04/Rename-SQL-Server-Instance.png 300w, https://techyaz.com/wp-content/uploads/2018/04/Rename-SQL-Server-Instance-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/04/Rename-SQL-Server-Instance-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/04/Rename-SQL-Server-Instance-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>We need to plan carefully before renaming any SQL Server Instance. Below is the list of possible impacts that you should go through while renaming SQL Server Instance name.</p>
<ul>
<li>Those domain users who are accessing or connecting to the SQL Server Instance as part of Windows group will not be able to connect to renamed instance of SQL Server. Make sure to update the Windows group to specify the new computer name to establish connectivity to the SQL Server instance.</li>
<li>You would not be able to access reporting services after renaming the instance name. You should follow steps mentioned in attached article to <strong><a href="http://techyaz.com/sql-server/troubleshooting/configure-reporting-services-after-renaming-sql-server-instance/" target="_blank" rel="noopener">rename SQL Server instance that is running with reporting services</a></strong>.</li>
<li>If you have database mirroring on the SQL Server instance then you need to drop the mirroring and then reconfigure it post renaming the SQL Server Instance.</li>
<li>Renaming SQL Server instance name does not support if your instance has replication, except when you use log shipping with replication.</li>
<li>You can change the name of SQL Server instance on secondary server in log shipping if the primary server is permanently lost.</li>
<li>If you have linked server configurations then it will be affected by the computer renaming operation. Use <strong>sp_addlinkedserver</strong>or <strong>sp_setnetname</strong> to update computer name references.</li>
</ul>
<h3><span style="color: #333399;">Rename SQL Server Instance</span></h3>
<p>SQL Server instance name along with other system metadata stores in <em>sys.servers</em> system object. We need to update details in system metadata to reflect new name. Also i would suggest to not change SQL Server Instance name directly on your production server.</p>
<p>Suppose you have installed default instance of SQL Server in your database server. If you have changed the name of your database server then you need to update the name of default SQL Server instance as well in sys.servers system table. First, we need to drop the existing SQL Server instance name then we will add new name as per our choice. Follow below steps to change SQL Server instance name.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">--Drop existing name</span>
sp_dropserver [old_Instance_name]; </strong></span>
<span style="color: #0000ff;"><strong>GO </strong></span>

<span style="color: #0000ff;"><strong><span style="color: #008000;">--Update New name</span>
sp_addserver [new_Instance_name], local; </strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span></pre>
<p>If you have installed a named instance on your database server then you can run below command to change SQL Server Instance name.</p>
<pre><strong><span style="color: #0000ff;">sp_dropserver [old_name\instancename]; </span></strong>
<strong><span style="color: #0000ff;">GO </span></strong>

<strong><span style="color: #0000ff;">sp_addserver [new_name\instancename], local; </span></strong>
<strong><span style="color: #0000ff;">GO</span></strong></pre>
<p><strong>Note:</strong> Make sure to restart SQL Server services post running above commands to reflect these changes.</p>
<p>You can verify the changes by running below commands or by querying sys.servers system table. If you have not restarted SQL Server services then you might be getting older SQL Server instance name. So restart SQL Server service to apply new changes.</p>
<pre><span style="color: #0000ff;"><strong>SELECT @@SERVERNAME</strong></span></pre>
<p>If you have remote logins on your database server then you might get error 15190 while running sp_dropserver command. Read below article to fix this issue and then proceed with the instance name change.</p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-15190-there-are-still-remote-logins-for-the-server-dbserver/" target="_blank" rel="noopener">Fix Error 15190: There are still remote logins for the server</a></strong></li>
</ul>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/" target="_blank" rel="noopener">Facebook</a> and on <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/configure-reporting-services-after-renaming-sql-server-instance/" target="_blank" rel="noopener">Configure Reporting Services After Renaming SQL Server Instance Name</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/find-when-sql-server-was-installed/" target="_blank" rel="noopener">How to Find When SQL Server was Installed on your database server?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/what-should-be-the-best-value-for-fill-factor-in-sql-server/" target="_blank" rel="noopener">What should be best value for fill factor in SQL Server?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/to-find-out-no-of-traces-running-on-your-db-instance/" target="_blank" rel="noopener">Find all trace profilers running on SQL Server Instance</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/how-to-move-a-table-to-a-different-filegroup/" target="_blank" rel="noopener">How to Move a Table to Another Filegroup?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/change-sql-server-instance-name/">How to Change SQL Server Instance Name?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/change-sql-server-instance-name/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 233: No process is on the other end of the pipe</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-233-no-process-end-pipe/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-233-no-process-end-pipe/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 15 Feb 2018 09:43:23 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL Server Configuration Manager]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1869</guid>

					<description><![CDATA[<p>Today, I got SQL Server error 233 no process is on the other end of the pipe while connecting to one of the SQL Server instance using SSMS client. SQL Error 233 was saying No process is on the other&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-233-no-process-end-pipe/">Fix SQL Server Error 233: No process is on the other end of the pipe</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, I got <em>SQL Server error 233 no process is on the other end of the pipe</em> while connecting to one of the SQL Server instance using SSMS client. SQL Error 233 was saying <strong>No process is on the other end of the pipe</strong> and its details are given as:</p>
<p><span style="color: #ff0000;"><em>A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 – No process is on the other end of the pipe) (Microsoft SQL Server, Error: 233)</em></span></p>
<p>You can see the screenshot of this error that I had received while making a database connection.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1871" src="http://techyaz.com/wp-content/uploads/2018/02/error-233-min.jpg" alt="Error 233" width="619" height="315" srcset="https://techyaz.com/wp-content/uploads/2018/02/error-233-min.jpg 619w, https://techyaz.com/wp-content/uploads/2018/02/error-233-min-300x153.jpg 300w" sizes="auto, (max-width: 619px) 100vw, 619px" /></p>
<h3><span style="color: #333399;">SQL Server Error 233 No process is on the other end of the pipe &#8211; Root Cause</span></h3>
<p>Above SQL error 233 suggests the provider name as Shared Memory Provider. We know Shared Memory is a protocol used in SQL Server along with TCP/IP and Named pipe. We decided to check the settings and values for all protocols in SQL Server Configuration Manager.</p>
<p>I launched <a href="http://techyaz.com/sql-server/troubleshooting/fix-sql-server-configuration-manager-issue-mmc-not-create-snap/" target="_blank" rel="noopener">SQL Server Configuration manager</a> and expanded SQL Server Network Protocols from left side pane. Here, you can see an option “<em>Protocols for MSSQLSERVER</em>”.  MSSQLSERVER is the name of SQL Server Instance as default instance has been installed there. If you have named instance installed on your machine then you might get “<em>Protocols for &lt;INSTANCENAME&gt;</em>.</p>
<p>Now click on this option “<em>Protocols for MSSQLSERVER</em>”, you can see all three protocols used in SQL Server in right side pane as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1872" src="http://techyaz.com/wp-content/uploads/2018/02/error233-1-min.png" alt="SQL Server Configuration Manager to check Protocols" width="792" height="273" srcset="https://techyaz.com/wp-content/uploads/2018/02/error233-1-min.png 792w, https://techyaz.com/wp-content/uploads/2018/02/error233-1-min-300x103.png 300w, https://techyaz.com/wp-content/uploads/2018/02/error233-1-min-768x265.png 768w" sizes="auto, (max-width: 792px) 100vw, 792px" /></p>
<p>Here we can see Shared Memory protocol is set as Enabled but Named Pipes is set as Disabled that should be enabled to make successful database connection. This was the main reason for getting this error. Keep reading this article to fix this issue in next section.</p>
<p>I have also written another aspect of SQL Server Error 233 in below article. You might get this error if your SQL Server Instance has exceeded the total number of user connections set in server configurations. Have a look at this article as well.</p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fixing-error-233-how-to-set-the-user-connections-server-configuration-option-in-sql-server/" target="_blank" rel="noopener">Fix SQL Server Error 233: User Connections Server Configuration option in SQL Server</a></strong></li>
</ul>
<h3><span style="color: #333399;">Solution</span></h3>
<p>We get error 233 ( SQL Server no process is on the other end of the pipe )because SQL Server client cannot connect to the server. This error could occur because the server is not configured to accept remote connections. To fix this issue, we will use the SQL Server Configuration Manager tool to allow SQL Server to accept remote connections. Here, in our case one of the protocol Named Pipe was disabled that’s why we were getting error. We will go ahead and fix this issue by enable the Named Pipe protocol. You might get this issue due to any protocol being disabled.</p>
<p>Make sure to enable Shared Memory, TCP/IP and Named Pipe protocols. Launch <strong>SQL Server Configuration Manager</strong>. Expand <strong>SQL Server Network Configuration</strong> from left side pane and click on <strong>Protocols for MSSQLSERVER</strong>. MSSQLSERVER is SQL Server Instance name. Now you will see all protocols in to right side pane. Right click on given protocols that is disabled and select <strong>Enable</strong> button to enable that protocols.</p>
<p>Named Pipe protocol was disabled in my case so I have launched <strong>Properties</strong> window of this protocol and selected Enabled option as <strong>Yes</strong> from dropdown as shown in below screenshot. Now click on Apply and Ok button to apply this change on SQL Server. It will ask you to restart the SQL Server service to apply these changes in to effect. <strong>Restart SQL Server services</strong> from SQL Server Configuration manager. Once services will come online, try to connect to your SQL Server instance, this time you will not face error 233 and you will be able to make successful database connection.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1873" src="http://techyaz.com/wp-content/uploads/2018/02/error233-2-min.jpg" alt="Enable Named Pipe Protocol" width="592" height="536" srcset="https://techyaz.com/wp-content/uploads/2018/02/error233-2-min.jpg 592w, https://techyaz.com/wp-content/uploads/2018/02/error233-2-min-300x272.jpg 300w" sizes="auto, (max-width: 592px) 100vw, 592px" /></p>
<p>If you are still facing same issue ( no process is on the other end of the pipe )then you can also check “<strong><em>Allow Remote Connections</em></strong>” settings for this SQL Server instance. This setting must be enabled to connect to databases remotely. Connect to SQL Server Instance in SSMS locally on database server. Right click on <strong>SQL Server instance name</strong> in SSMS and choose <strong>Properties</strong>. You will get Server properties window. Click on <strong>Connections</strong> from left side pane and tick the check box on <strong>Allow remote connections to this server</strong> option from right side pane.</p>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More Articles on SQL Server Connection Issues:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noopener">Fix SQL Server Network Interfaces Error 28: Server doesn&#8217;t support requested protocol</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/" target="_blank" rel="noopener">Fix Error 53: Could not open a connection on SQL Server</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-4064-cannot-open-user-default-database-login-failed/" target="_blank" rel="noopener">Fix Error 4064: Cannot open user default database</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fixing-error-233-how-to-set-the-user-connections-server-configuration-option-in-sql-server/" target="_blank" rel="noopener">Error 233: How to set the user connections server configuration option in SQL Server</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-233-no-process-end-pipe/">Fix SQL Server Error 233: No process is on the other end of the pipe</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-error-233-no-process-end-pipe/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 53: Could not open a connection on SQL Server</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 17 Jan 2018 14:37:43 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Connection Issue]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[SQL Server Configuration Manager]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1506</guid>

					<description><![CDATA[<p>Today, I will explain how to fix SQL Server error 53 (The network path was not found). The details about SQL error 53 are given as “A network-related or instance specific error occurred while establishing a connection to SQL Server.&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/">Fix SQL Server Error 53: Could not open a connection on SQL Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, I will explain how to fix SQL Server error 53 (The network path was not found). The details about SQL error 53 are given as “<em><span style="color: #ff0000;">A network-related or instance specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible verify that the instance name is correct and that SQL Server is configured to allow remote connections. (Provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection on SQL Server) (Microsoft SQL Server, Error : 53)</span>”</em></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1508" src="http://techyaz.com/wp-content/uploads/2018/01/error-53-min.jpg" alt="SQL Server error 53" width="629" height="233" srcset="https://techyaz.com/wp-content/uploads/2018/01/error-53-min.jpg 629w, https://techyaz.com/wp-content/uploads/2018/01/error-53-min-300x111.jpg 300w" sizes="auto, (max-width: 629px) 100vw, 629px" /></p>
<p>You can also get below error similar to error 53 under below details.</p>
<p><span style="color: #ff0000;"><em>An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server) (.Net SqlClient Data Provider)</em></span></p>
<h4><span style="color: #333399;">Root Cause</span></h4>
<p>Microsoft SQL Server Error 53 looks very much like the <a href="http://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server</a> at first look. Like SQL Server error 40, here also SQL Server client cannot connect to the SQL Server Instance. This error could occur because either the client cannot resolve the name of the server or the name of the server is incorrect.</p>
<p>You might get this issue due to other reasons as well although main reason is the wrong server name or port name. I have given all those possible reasons behind the Microsoft SQL Server error 53 in below points.</p>
<ol>
<li>Wrong SQL Server Instance name while establishing database connection.</li>
<li>Entering wrong port no can be one of the reason for SQL Server error 53.</li>
<li>SQL Server Instance is not accessible due to firewall or any reason.</li>
<li>Telnet port 1433 or port no on which SQL Server is running. These ports might be blocked.</li>
<li>TCP/IP or Named Pipes protocol is disabled in SQL Server Configuration Manager.</li>
<li>Remote Connection is disabled for this SQL Server Instance.</li>
<li>SQL Server Browser service is stopped.</li>
</ol>
<h4><span style="color: #333399;">Solution</span></h4>
<p>We need to check and validate multiple factors to rectify Microsoft SQL Server error 53. Check all factors given in below step by step points to fix all possibilities for this error.</p>
<ol>
<li>Sometimes, we enter wrong server details by mistake. Make sure to enter <strong>correct SQL Server instance name</strong> while making database connection otherwise you will face sql error 53.</li>
<li>Try to connect using <strong>ip address</strong> and <strong>port number</strong> instead of putting server name in connection string.</li>
<li>Make sure <strong>SQL Server services</strong> are running fine and its accessible.</li>
<li><strong>Check firewall</strong> details. Firewall should open between your client machine and database server. Port 1433 and 1434 should be enabled. Telnet both ports to make sure ports are open.</li>
<li>Make sure to enable <strong>TCP/IP </strong>and <strong>Named Pipes. </strong>Launch <strong>SQL Server Configuration Manager</strong>. Expand <strong>SQL Server Network Configuration</strong> from left side pane and click on <strong>Protocols for MSSQLSERVER</strong>. MSSQLSERVER is SQL Server Instance name. Now you will see all protocols in to right side pane. Right click on given protocols and select <strong>Enable</strong> button to enable both protocols.</li>
<li><strong>Check TCP/IP</strong> name resolution, you can use the <strong>ping </strong>command in the Windows operating system. You can also right-click on <strong>TCP/IP</strong> and select <strong>Properties </strong>in SQL Server Configuration Manager. Verify that, under IP2, the IP Address is set to the computer&#8217;s IP address on the local subnet. Scroll down to <strong>IPAll</strong>. Make sure that <strong>TCP Dynamic Ports</strong> is blank. Make sure that TCP Port is set to 1433 or your identified port no.</li>
<li>Remote connection must be enabled to connect to databases remotely. Connect to SQL Server Instance in SSMS. Right click on <strong>SQL Server instance name </strong>in SSMS and choose <strong>Properties</strong>. You will get Server properties window. Click on <strong>Connections </strong>from left side pane and tick the check box on <strong>Allow remote connections to this server</strong> option from right side pane.</li>
<li>SQL browser service should not be stopped if your security policy allows it. If you have disabled this service to apply hardening then make sure to pass port no along with SQL Server instance name/IP while making database connection.</li>
</ol>
<p>You can fix SQL error 53 by applying above solutions on your SQL Server instance. I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><strong><em><span style="color: #800000;">Related Articles:</span></em></strong></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noopener">Fix Error 28 &#8211; Server doesn&#8217;t support requested protocol</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-4064-cannot-open-user-default-database-login-failed/" target="_blank" rel="noopener">Error 4064: Cannot open user default database. Login failed.</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-15138-error-3729/" target="_blank" rel="noopener">Fix Login Drop issue Error 15138 and Error 3729</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/">Fix SQL Server Error 53: Could not open a connection on SQL Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server.</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 06:14:45 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Connection Issue]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[SQL Server Configuration Manager]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1459</guid>

					<description><![CDATA[<p>Today, a user has raised a request to fix an error (Microsoft SQL Server Error 40 &#8211; Could not open a connection to SQL Server or Microsoft SQL Server, Error 2) he was getting while establishing the database connection. Sometimes you might&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/">SQL Server Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, a user has raised a request to fix an error (Microsoft <em>SQL Server Error 40 &#8211; Could not open a connection to SQL Server or Microsoft SQL Server, Error 2</em>) he was getting while establishing the database connection. Sometimes you might get this error with text<span style="color: #000000;"> ( <em>provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server).</em></span></p>
<p>The error details are given below.</p>
<p><em><span style="color: #ff0000;">A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error:40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)</span></em></p>
<p>Below is the screenshot of above Microsoft SQL Server error 40.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1461" src="http://techyaz.com/wp-content/uploads/2018/01/error-40-min.jpg" alt="error 40" width="627" height="312" srcset="https://techyaz.com/wp-content/uploads/2018/01/error-40-min.jpg 627w, https://techyaz.com/wp-content/uploads/2018/01/error-40-min-300x149.jpg 300w" sizes="auto, (max-width: 627px) 100vw, 627px" /></p>
<p>Sometimes, we get same error under below error text.</p>
<p><span style="color: #ff0000;"><em>An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 &#8211; Could not open a connection to SQL Server) (.Net SqlClient Data Provider)</em></span></p>
<h3><span style="color: #333399;">Microsoft SQL Server Error 40 &#8211; </span><span style="color: #333399;">Root Cause</span></h3>
<p>We get SQL error 40 because SQL Server did not respond to the client request. This issue occurs due to multiple reasons. I have given all those possible reasons behind Microsoft SQL Server error 40 in below points.</p>
<ol>
<li>Server is probably not started and shutdown.</li>
<li>SQL Server Service is down.</li>
<li>SQL Server Instance is not accessible due to firewall or any reason.</li>
<li>Telnet port 1433 or port no on which SQL Server is running. These ports might be blocked.</li>
<li>TCP/IP or Named Pipes protocol is disabled in SQL Server Configuration Manager.</li>
<li>Remote Connection is disabled for this SQL Server Instance.</li>
<li>SQL Server browser service is stopped.</li>
<li>Wrong SQL Server Instance name while establishing database connection</li>
</ol>
<h3><span style="color: #333399;">Solution</span></h3>
<p>We need to check and validate multiple factors to rectify Microsoft SQL Server error 40. Check all factors given in below step by step points to fix all possibilities for this error.</p>
<ol>
<li>Make sure that database server is up and running fine.</li>
<li>Make sure SQL Server services are running fine and its accessible.</li>
<li>Check firewall details. Firewall should open between your client machine and database server.</li>
<li>Port 1433 and 1434 should be enabled. Telnet both ports to make sure ports are open.</li>
<li>Make sure to enable <strong>TCP/IP</strong> and <strong>Named Pipes</strong> protocols. Launch <strong>SQL Server Configuration Manager</strong>. Expand <strong>SQL Server Network Configuration</strong> from left side pane and click on <strong>Protocols for MSSQLSERVER</strong>. MSSQLSERVER is SQL Server Instance name. Now you will see all protocols in to right side pane. Right click on given protocols and select <strong>Enable</strong> button to enable both protocols.</li>
<li>Remote connection must be enabled to connect to databases remotely. Connect to SQL Server Instance in SSMS. Right click on <strong>SQL Server instance name</strong> in SSMS and choose <strong>Properties</strong>. You will get Server properties window. Click on <strong>Connections</strong> from left side pane and tick the check box on <strong>Allow remote connections to this server</strong> option from right side pane.</li>
<li>SQL browser service should not be stopped if your security policy allows it. If you have disabled this service to apply hardening then make sure to pass port no along with SQL Server instance name while making database connection.</li>
<li>Sometimes, we enter wrong server details. Make sure to enter correct SQL Server instance name while making database connection.</li>
</ol>
<p><em><strong><span style="color: #800000;">Related Articles</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noopener noreferrer">Fix Error 28 &#8211; Server doesn&#8217;t support requested protocol</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fixing-error-233-how-to-set-the-user-connections-server-configuration-option-in-sql-server/" target="_blank" rel="noopener noreferrer">Fix Error 233: How to set user connections server configuration in SQL Server?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-4064-cannot-open-user-default-database-login-failed/" target="_blank" rel="noopener noreferrer">Error 4064: Cannot open user default database. Login failed.</a></strong></li>
</ul>
<p>Here, I have given different solutions to fix sql error 40 in SQL Server. I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> and <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/">SQL Server Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 18456: Login failed for user &#8216;User_Name&#8217;.</title>
		<link>https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sun, 24 Dec 2017 07:42:29 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Connection Issue]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[login failed]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1377</guid>

					<description><![CDATA[<p>Yesterday, a developer has reported an SQL Server error 18456 Login failed for user ‘username’. (Microsoft SQL Server, Error: 18456) on one of the SQL Server instance that are running in lower life cycle. The details about SQL Server error&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/">Fix SQL Server Error 18456: Login failed for user &#8216;User_Name&#8217;.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday, a developer has reported an SQL Server error 18456 <strong><em>Login failed for user ‘username’. (Microsoft SQL Server, Error: 18456)</em></strong> on one of the SQL Server instance that are running in lower life cycle. The details about SQL Server error 18456 are given below with the screenshot.</p>
<p><em><span style="color: #ff0000;">Cannot Connect to ‘SERVERNAME’.</span></em><br />
<em><span style="color: #ff0000;"> Login failed for user ‘username’. (Microsoft SQL Server, Error: 18456)</span></em></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1379" src="http://techyaz.com/wp-content/uploads/2017/12/error-18456.png" alt="error 18456" width="626" height="321" srcset="https://techyaz.com/wp-content/uploads/2017/12/error-18456.png 626w, https://techyaz.com/wp-content/uploads/2017/12/error-18456-300x154.png 300w" sizes="auto, (max-width: 626px) 100vw, 626px" /></p>
<h3><span style="color: #333399;"><strong>SQL Server Error 18456 &#8211; </strong></span><span style="color: #333399;"><strong>Login failed  </strong></span></h3>
<p>Initially, I thought <em>login failed</em> SQL <em>error 18456 </em>was reported because user might have entered wrong password, but when I tried it with correct password, it displayed same error again. Read this article to fix this error.</p>
<p>When I received same MSSQL error 18456 even after entering correct login id and password then we have decided to check the server authentication mode configured for this instance. Here we got the answer because this SQL Server instance was configured to run in only Windows Authentication mode, that is why SQL Server database engine was not allowing us to login using SQL Server login that comes in to Mixed authentication mode.</p>
<p>As we know there are two types of authentication mode in SQL Server.</p>
<ol>
<li>Windows Authentication Mode</li>
<li>SQL Server and Windows Authentication Mode (Mixed Authentication Mode)</li>
</ol>
<p>Only windows login accounts can connect to SQL Server if your instance is configured in Windows Authentication mode but when Mixed Authentication mode is configured you can connect using windows and SQL Server logins both way.</p>
<h3><span style="color: #333399;"><strong>Solution</strong></span></h3>
<p>So, to fix this SQL Server error 18456 ( <em>Login failed error 18456 ),</em> we have two options:</p>
<ol>
<li>Either Change Server Authentication mode of this SQL Server Instance to Mixed mode (<strong>SQL Server and Windows Authentication Mode</strong>)</li>
<li>Or, <strong>always use windows login</strong> or Domain login account to connect to SQL Server Instance.</li>
</ol>
<p><em><strong>You can also read the below articles which is a comprehensive guide to fix this error 18456:</strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/" target="_blank" rel="noopener">How to Fix SQL Server Error 18456: A Comprehensive Guide</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/failed-to-open-the-explicitly-specified-database/" target="_blank" rel="noopener">Fix SQL Error 18456: failed to open the explicitly specified database</a></strong></li>
</ul>
<p>Now, let&#8217;s come back to this specific issue. Here, we have decided to change the Server Authentication mode from Windows Authentication to Mixed mode authentication. Below are the steps:</p>
<ol>
<li>Right click on <strong>SQL Server Instance</strong> name in SSMS and choose <strong>properties</strong>.</li>
<li>Select <strong>Security</strong> from left side pane.</li>
<li>You can see Server Authentication mode is set to <strong>Windows Authentication</strong> mode in below screenshot.<br />
<img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1380" src="http://techyaz.com/wp-content/uploads/2017/12/Authentication-Mode.jpg" alt="Set Authentication Mode to Mixed mode" width="711" height="635" srcset="https://techyaz.com/wp-content/uploads/2017/12/Authentication-Mode.jpg 711w, https://techyaz.com/wp-content/uploads/2017/12/Authentication-Mode-300x268.jpg 300w" sizes="auto, (max-width: 711px) 100vw, 711px" /></li>
<li>Change this to <strong>SQL Server and Windows Authentication</strong> mode that is second option in above screenshot and click on <strong>OK </strong>button.</li>
<li><strong>Restart SQL Server</strong> and <strong>SQL Server Agent</strong> <strong>services</strong> to apply the changes to database engine.</li>
<li>Now you would be able to login to your SQL Server Instance using SQL logins as well.</li>
</ol>
<p>Here, i have shown you how to fix a SQL Server error 18456 by changing its authentication mode. Read more articles in related section given below.</p>
<p><em><strong><span style="color: #800000;">Related Articles</span></strong></em></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-15170/" target="_blank" rel="noopener noreferrer">Fix Error 15170: Login owns one or more Agent Jobs</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-4064-cannot-open-user-default-database-login-failed/" target="_blank" rel="noopener noreferrer">Fix Login failed Error 4064: Cannot open user default database</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/" target="_blank" rel="noopener noreferrer">How to fix error 28 &#8211; Server doesn&#8217;t support requested protocol</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-18452-login-failed-login-from-untrusted-domain/" target="_blank" rel="noopener noreferrer">Fix Error 18452: Login Failed</a></strong></li>
</ul>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/">Fix SQL Server Error 18456: Login failed for user &#8216;User_Name&#8217;.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/login-failed-user_name-microsoft-sql-server-error-18456/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Fix: SQL Network Interfaces Error 28 – Server doesn’t support requested protocol</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 19 Dec 2017 15:00:52 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Connection Issue]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[SQL Server Configuration Manager]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1361</guid>

					<description><![CDATA[<p>Today I am going to discuss about Microsoft SQL Server Error 28 that most of the SQL Server users might have faced at least once in their career. It belongs to SQL Server connectivity issue SQL Network Interfaces Error 28.&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/">Fix: SQL Network Interfaces Error 28 – Server doesn’t support requested protocol</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today I am going to discuss about Microsoft SQL Server Error 28 that most of the SQL Server users might have faced at least once in their career. It belongs to SQL Server connectivity issue SQL Network Interfaces Error 28.</p>
<h3><span style="color: #333399;">Microsoft SQL Server Error 28</span></h3>
<p>This is very common error that most of the people have gone through. Microsoft SQL Server Error 28 details are given below:</p>
<div><em><span style="color: #ff0000;">An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 28 &#8211; Server doesn&#8217;t support requested protocol) (Microsoft SQL Server, Error: -1)</span></em></div>
<p>Sometime you might get same error as below description.</p>
<div><em><span style="color: #ff0000;">A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 28 – Server doesn’t support requested protocol)</span></em></div>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1363" src="http://techyaz.com/wp-content/uploads/2017/12/error-28.png" alt="SQL Network Interfaces error 28" width="642" height="200" srcset="https://techyaz.com/wp-content/uploads/2017/12/error-28.png 607w, https://techyaz.com/wp-content/uploads/2017/12/error-28-300x93.png 300w" sizes="auto, (max-width: 642px) 100vw, 642px" /></p>
<h3><span style="color: #333399;">Root Cause</span></h3>
<p>Generally, we get <em>SQL Network Interfaces Error 28</em> while connecting to SQL Server instance either using SQL Server Management studio or using any other way. There might be several reasons behind generating Microsoft SQL Server Error 28. I have tried to capture all such reasons in below points..</p>
<ul>
<li>A specified SQL Server instance name is not valid. Wrong SQL Server Instance Name can lead to generate Microsoft SQL Server Error 28.</li>
<li>Remote access is not enabled for your SQL Server instance.</li>
<li>The firewall on the server has refused the connection because ports used by SQLBROWSER.EXE and SQLSERVR.EXE is still blocked.</li>
<li>The SQL Server Browser service (sqlbrowser) is not started.</li>
</ul>
<h3><span style="color: #333399;">Solution</span></h3>
<p>We need to check and validate multiple factors to fix Microsoft SQL Server error 28. Check all factors given in below step by step points to fix all possibilities for this SQL error 28.</p>
<ul>
<li>Validate whether server on which SQL Server is hosted is reachable from your client machine or not. Run ping and telnet to make sure server connectivity.</li>
<li>Make sure SQL Server is running fine on your server. Check SQL Server services.</li>
<li>Firewall ports 1433 for SQL Server and 1434 for SQL Server Browser services should be opened.</li>
<li>Verify correct SQL Server Instance name. Check the spelling of the SQL Server instance name that is specified in the connection string.</li>
<li>Make sure to enter full SQL Server Instance name in case you have named instance like SERVERNAME\SQL2017.</li>
<li>Make sure that the SQL Server Browser service is started on the server.</li>
<li>Enable Remote connection for your SQL Server Instance. Most of the people face Microsoft SQL Server error 28 because remote connection was disabled on the SQL Server Instance. Use the SQL Server Configuration Manager tool to enable SQL Server to accept remote connections over the TCP or named pipes protocols. Below steps you can follow to enable remote connections.</li>
</ul>
<ol>
<li>Launch <strong>SQL Server Configuration Manager</strong>. Expand <strong>SQL Server Network Configuration</strong> from left side pane and then click <strong>Protocols for </strong><em>InstanceName</em>. If your server has default instance then it will look like “<strong>Protocols for MSSQLSERVER</strong>”</li>
<li>You can see all three protocols in right side pane. <strong>Shared Memory, Named Pipes and TCP/IP.</strong></li>
<li>Make sure to enable <strong>Named Pipes and TCP/IP. </strong>Right-click at the protocol name and then click <strong>Enable</strong>. The icon for the protocol will change to show that the protocol is enabled.</li>
<li>You need to restart the SQL Server services to bring the changes into effect so restart your SQL Server services.</li>
</ol>
<p><em><strong><span style="color: #800000;">Related Articles</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">Fix SQL Server Error 40: A Network related or Instance specific Error Occurred while establishing a connection to SQL Server</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-53-not-open-connection-sql-server/" target="_blank" rel="noopener">How to Fix SQL Server Error 53: Could Not Open a Connection on SQL Server?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-4064-cannot-open-user-default-database-login-failed/" target="_blank" rel="noopener">Fix Error 4064: Cannot open user default database</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fixing-sap-connectivity-issue-aoag-automatic-failover/" target="_blank" rel="noopener">SAP Connectivity Issue After AlwaysON Automatic failover</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-976/" target="_blank" rel="noopener">Fix Error 976: Cannot connect to Secondary Replica of AOAG</a></strong></li>
</ul>
<p>Here, i have shown you how to fix sql error 28. I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/">Fix: SQL Network Interfaces Error 28 – Server doesn’t support requested protocol</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-sql-network-interfaces-error-28-server-doesnt-support-requested-protocol/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
