<?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_Error_Code - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/sql_error_code/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Sun, 09 Apr 2023 09:14:38 +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_Error_Code - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Fix SQL Error 1005: A Comprehensive Guide</title>
		<link>https://techyaz.com/mysql/how-to-fix-sql-error-1005-a-comprehensive-guide/</link>
					<comments>https://techyaz.com/mysql/how-to-fix-sql-error-1005-a-comprehensive-guide/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sun, 09 Apr 2023 09:14:33 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2792</guid>

					<description><![CDATA[<p>If you&#8217;re working with SQL databases, you might have encountered error 1005 at some point in your development process. SQL error 1005 is a common error that occurs when attempting to create or modify a table in a database. It&#8217;s&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/mysql/how-to-fix-sql-error-1005-a-comprehensive-guide/">How to Fix SQL Error 1005: A Comprehensive Guide</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you&#8217;re working with SQL databases, you might have encountered error 1005 at some point in your development process. SQL error 1005 is a common error that occurs when attempting to create or modify a table in a database. It&#8217;s caused by various factors, such as incorrect syntax, data type mismatches, or foreign key constraints. But fear not! In this article, we will provide you with a comprehensive guide on how to fix SQL error 1005 and get your database back on track.</p>



<h2 class="wp-block-heading">What is MySQL Error Code 1005?</h2>



<p>SQL error 1005, also known as &#8220;Can&#8217;t create table (errno: 150)&#8221;, is a MySQL error that occurs when there is a problem with a foreign key constraint. Foreign key constraints are used to establish relationships between tables in a relational database. They ensure that data integrity is maintained by preventing actions that would create inconsistent or invalid data.</p>



<h2 class="wp-block-heading">Possible Causes</h2>



<p>When you encounter SQL error 1005, MySQL is telling you that there is an issue with a foreign key constraint while trying to create or modify a table. This error can be caused by a variety of reasons, such as:</p>



<ol class="wp-block-list" type="1">
<li><strong>Incorrect syntax: </strong>The foreign key constraint might not be defined properly, leading to a syntax error in your SQL statement.</li>



<li><strong>Data type mismatch:</strong> The data types of the columns involved in the foreign key constraint must match exactly. If there is a mismatch in data types, MySQL will throw error 1005.</li>



<li><strong>Missing referenced table:</strong> The table referred to in the foreign key constraint might not exist in the database.</li>



<li><strong>Incompatible foreign key constraint: </strong>The referenced table might have a foreign key constraint with incompatible attributes, such as different collation, character set, or storage engine.</li>



<li><strong>Circular reference:</strong> A circular reference occurs when two or more tables reference each other with foreign key constraints, creating a loop. MySQL does not allow circular references, and it will result in error 1005.</li>
</ol>


<div class="wp-block-image">
<figure class="alignright size-full is-resized"><img fetchpriority="high" decoding="async" src="https://techyaz.com/wp-content/uploads/2023/04/sql-error-1005.jpg" alt="Fix SQL error 1005" class="wp-image-2793" width="349" height="185" srcset="https://techyaz.com/wp-content/uploads/2023/04/sql-error-1005.jpg 941w, https://techyaz.com/wp-content/uploads/2023/04/sql-error-1005-300x159.jpg 300w, https://techyaz.com/wp-content/uploads/2023/04/sql-error-1005-768x407.jpg 768w" sizes="(max-width: 349px) 100vw, 349px" /></figure></div>


<h2 class="wp-block-heading">Fix MySQL Error Code 1005</h2>



<p>Now that we have a basic understanding of SQL error 1005 and its possible causes, let&#8217;s dive into the solutions to fix this issue.</p>



<ol class="wp-block-list" type="1">
<li><strong>Check for typos or errors in your table definitions:</strong> Make sure that you have correctly defined your table columns, data types, and constraints. Double-check for any misspellings, missing or extra commas, and other syntax errors in your table definitions.</li>



<li><strong>Ensure that referenced columns and tables exist: </strong>If you are defining foreign key constraints, make sure that the referenced columns and tables actually exist in the database. If the referenced table has not been created yet, or if it has been dropped or renamed, you may encounter error code 1005.</li>



<li><strong>Check for conflicting constraints: </strong>If you have multiple foreign key constraints in your table definitions, ensure that there are no conflicts. For example, if you have two foreign keys that reference the same column in another table, MySQL will raise error code 1005. Make sure that your constraints are properly defined and do not conflict with each other.</li>



<li><strong>Verify data types and lengths: </strong>Make sure that the data types and lengths of the columns in your foreign key and referencing tables match exactly. Data type mismatches can result in error code 1005.</li>



<li><strong>Disable foreign key checks: </strong>You can temporarily disable foreign key checks in MySQL by running the following command before creating or modifying tables: SET FOREIGN_KEY_CHECKS = 0;. This can help you identify and fix any issues with foreign key constraints. However, be cautious when using this approach, as it can potentially lead to inconsistent data if not used properly.</li>



<li><strong>Check for circular references:</strong> If you have circular references in your foreign key constraints, where Table A references Table B and Table B references Table A, you will encounter error code 1005. To fix this issue, you may need to restructure your database schema to remove circular references.</li>



<li><strong>Check for storage engine compatibility:</strong> If you are using different storage engines for your referencing and referenced tables, you may encounter error code 1005. Make sure that the storage engines are compatible, such as using InnoDB for both tables, as some storage engines do not support foreign key constraints.</li>



<li><strong>Review MySQL error logs: </strong>Check the MySQL error logs for any additional information on the cause of the error. The error logs may provide more detailed information about the specific issue that is causing error code 1005.</li>
</ol>



<p>By following these steps, you should be able to identify and fix the issue that is causing MySQL error code 1005. If you are still encountering issues, it may be helpful to consult the MySQL documentation or seek assistance from a knowledgeable database administrator.</p>



<p><strong><em>Read More articles:</em></strong></p>



<ul class="wp-block-list">
<li><a href="https://techyaz.com/sql/fix-sql-error-1064/" target="_blank" rel="noreferrer noopener">How to fix SQL Error 1064: You have an error in your SQL syntax</a></li>



<li><a href="https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/" target="_blank" rel="noreferrer noopener">How to Fix SQL Server Error 207 – Invalid Column Name</a></li>
</ul>
<p>The post <a href="https://techyaz.com/mysql/how-to-fix-sql-error-1005-a-comprehensive-guide/">How to Fix SQL Error 1005: A Comprehensive Guide</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/mysql/how-to-fix-sql-error-1005-a-comprehensive-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Fix SQL Server Error 207 &#8211; Invalid Column Name</title>
		<link>https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/</link>
					<comments>https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sun, 09 Apr 2023 08:58:34 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2789</guid>

					<description><![CDATA[<p>SQL Server is a powerful relational database management system (RDBMS) used by many organizations for managing and storing data. However, like any software, SQL Server can encounter errors that can hinder its normal operation. One common error that SQL Server&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/">How to Fix SQL Server Error 207 &#8211; Invalid Column Name</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SQL Server is a powerful relational database management system (RDBMS) used by many organizations for managing and storing data. However, like any software, SQL Server can encounter errors that can hinder its normal operation. One common error that SQL Server users may encounter is SQL error 207 &#8211; &#8220;Invalid Column Name.&#8221; </p>



<p>In this article, we will explore what this error means, its possible causes, and provide solutions to fix it.</p>



<h2 class="wp-block-heading">What is SQL Server Error 207 &#8211; Invalid Column Name?</h2>



<p>SQL Server error 207 occurs when a column name referenced in a SQL query does not exist in the specified table or view. In other words, SQL Server is unable to find a column with the name mentioned in the query, and as a result, throws the error message &#8220;Invalid Column Name.&#8221;</p>


<div class="wp-block-image">
<figure class="alignright size-full is-resized"><img decoding="async" src="https://techyaz.com/wp-content/uploads/2023/04/sql-server-error-207.jpg" alt="SQL Server Error 207" class="wp-image-2790" width="327" height="200" srcset="https://techyaz.com/wp-content/uploads/2023/04/sql-server-error-207.jpg 885w, https://techyaz.com/wp-content/uploads/2023/04/sql-server-error-207-300x183.jpg 300w, https://techyaz.com/wp-content/uploads/2023/04/sql-server-error-207-768x469.jpg 768w" sizes="(max-width: 327px) 100vw, 327px" /></figure></div>


<h2 class="wp-block-heading">Possible Causes</h2>



<ol class="wp-block-list" type="1">
<li><strong>Typographical errors: </strong>One of the most common causes of error 207 is a typographical error in the SQL query. For example, misspelling a column name, using the wrong case, or forgetting to enclose the column name in square brackets, especially if the column name contains spaces or special characters.</li>



<li><strong>Missing or renamed column: </strong>Another possible cause of error 207 is that the column may have been deleted or renamed in the table or view, but the query has not been updated accordingly. If a column is dropped or renamed, any queries that reference that column will result in error 207.</li>



<li><strong>Scope and visibility of column: </strong>The visibility and scope of a column can also cause error 207. If a column is referenced in a query outside of its scope or visibility, SQL Server will not be able to find it, and the error will be thrown.</li>



<li><strong>Schema changes:</strong> Changes to the schema of a table or view, such as adding, modifying, or deleting columns, can also result in SQL error 207 if the query has not been updated to reflect the changes.</li>



<li><strong>Permissions: </strong>Another possible cause of SQL error 207 is insufficient permissions. If the user executing the query does not have the necessary permissions to access the column, SQL Server will throw the error.</li>
</ol>



<h2 class="wp-block-heading">Fix SQL Error 207</h2>



<p>Now that we understand the causes of SQL Server Error 207, let&#8217;s explore some solutions to fix this issue:</p>



<ol class="wp-block-list" type="1">
<li><strong>Double-check the column name:</strong> The first step in fixing error 207 is to double-check the column name referenced in the SQL query. Make sure it is spelled correctly, using the right case, and enclosed in square brackets if needed. Pay attention to any spaces or special characters in the column name.</li>



<li><strong>Verify column existence and visibility:</strong> Ensure that the column actually exists in the specified table or view and is visible to the user executing the query. If the column has been deleted or renamed, update the query accordingly.</li>



<li><strong>Update the query: </strong>If the error is caused by changes to the schema of a table or view, update the query to reflect the changes. For example, if a new column has been added, make sure to include it in the SELECT, INSERT, UPDATE, or DELETE statements as needed.</li>



<li><strong>Check permissions: </strong>Verify that the user executing the query has the necessary permissions to access the column. Make sure the user has SELECT, INSERT, UPDATE, or DELETE permissions on the table or view that contains the column.</li>



<li><strong>Use aliases and table qualifiers: </strong>When referencing columns in a query, it is a good practice to use aliases or table qualifiers to avoid ambiguity. For example, instead of just using &#8220;SELECT column_name FROM table_name,&#8221; use &#8220;SELECT t.column_name FROM table_name AS t&#8221; or &#8220;SELECT table_name.column_name FROM table_name.&#8221;</li>



<li><strong>Test and debug:</strong> After making any changes to the query or schema, always test and debug the query to ensure that the error has been resolved. Use SQL Server tools such as SQL</li>



<li><strong>Use Schema Prefix:</strong> If you are referencing a table or column that belongs to a specific schema, make sure to include the schema name as a prefix in your SQL query. For example, if you have a table named &#8220;Customers&#8221; in the &#8220;Sales&#8221; schema, your query should be something like &#8220;SELECT * FROM Sales.Customers&#8221; instead of just &#8220;SELECT * FROM Customers&#8221;.</li>



<li><strong>Resolve Ambiguous Column Names:</strong> If you encounter an ambiguous column name error, you need to specify which table the column belongs to in your SQL query. You can do this by prefixing the column name with the table name or alias in your query, e.g., &#8220;SELECT Orders.OrderID FROM Orders, Customers WHERE Orders.CustomerID = Customers.CustomerID&#8221; instead of just &#8220;SELECT OrderID FROM Orders, Customers WHERE CustomerID = Customers.CustomerID&#8221;.</li>



<li><strong>Check Table Existence: </strong>Ensure that the table mentioned in your SQL query actually exists in the database. If not, you may need to create the table or correct the table name in your query.</li>



<li><strong>Verify Schema Ownership:</strong> If you are referencing a table in a different schema, make sure that the schema exists and that you have the necessary permissions to access it. If not, you may need to create the schema or obtain the required permissions.</li>
</ol>



<p>We learn about fixing SQL Server Error 207 which occurs when a SQL query references a column that does not exist in the specified table or view. This error typically results from a misspelled column name or a reference to a non-existent column in a SELECT, UPDATE, or DELETE statement. When the SQL Server query processor encounters an invalid column name, it raises SQL Error 207 and prevents the execution of the query. You can prevent this issue by following the steps given in this article.</p>



<p><em>Read More articles:</em></p>



<ul class="wp-block-list">
<li><a href="https://techyaz.com/sql/fix-sql-error-1064/" target="_blank" rel="noreferrer noopener"><strong>How to fix SQL Error 1064: You have an error in your SQL syntax</strong></a></li>



<li><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/sql-server-interview-questions-answers-indexes/" target="_blank" rel="noreferrer noopener"><strong>SQL Server Interview Questions &amp; Answers on Indexes</strong></a></li>
</ul>
<p>The post <a href="https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/">How to Fix SQL Server Error 207 &#8211; Invalid Column Name</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql/how-to-fix-sql-server-error-207-invalid-column-name/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Fix SQL Error 1045: Resolving Access Denied Issues</title>
		<link>https://techyaz.com/mysql/how-to-fix-sql-error-1045-resolving-access-denied-issues/</link>
					<comments>https://techyaz.com/mysql/how-to-fix-sql-error-1045-resolving-access-denied-issues/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sat, 08 Apr 2023 14:01:57 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2778</guid>

					<description><![CDATA[<p>If you are a database administrator or a developer who works with SQL databases, you may have encountered the dreaded &#8220;Error 1045: Access denied for user&#8221; at some point. This error occurs when you try to connect to a MySQL&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/mysql/how-to-fix-sql-error-1045-resolving-access-denied-issues/">How to Fix SQL Error 1045: Resolving Access Denied Issues</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you are a database administrator or a developer who works with SQL databases, you may have encountered the dreaded &#8220;<em>Error 1045: Access denied for user</em>&#8221; at some point. This error occurs when you try to connect to a MySQL or MariaDB database server and are unable to authenticate due to incorrect credentials or insufficient privileges. However, fear not! In this article, we will guide you through the process of fixing SQL Error 1045 and getting your database server up and running again.</p>



<h2 class="wp-block-heading">What is SQL Error 1045? </h2>



<p>Error 1045 is a MySQL error code that indicates a failed connection to the MySQL database server. The error message associated with SQL Error 1045 typically reads &#8220;<em>Access denied for user &#8216;username&#8217;@&#8217;localhost&#8217; (using password: YES)</em>&#8221; or &#8220;<em>Access denied for user &#8216;username&#8217;@&#8217;hostname&#8217; (using password: YES)</em>&#8220;. </p>



<p>This error occurs when a user attempts to connect to a MySQL database but does not have the proper authorization or has entered incorrect login credentials.</p>


<div class="wp-block-image">
<figure class="alignright size-full is-resized"><img decoding="async" src="https://techyaz.com/wp-content/uploads/2023/04/SQL-error-1045.jpg" alt="sql error 1045" class="wp-image-2779" width="329" height="232" srcset="https://techyaz.com/wp-content/uploads/2023/04/SQL-error-1045.jpg 697w, https://techyaz.com/wp-content/uploads/2023/04/SQL-error-1045-300x211.jpg 300w" sizes="(max-width: 329px) 100vw, 329px" /></figure></div>


<h2 class="wp-block-heading">Possible Causes</h2>



<p>There are several potential causes for SQL Error 1045, including:</p>



<ol class="wp-block-list" type="1">
<li><strong>Incorrect username or password: </strong>One of the most common causes of SQL Error 1045 is entering incorrect login credentials, including the username or password. It is essential to double-check and ensure that the correct username and password are entered when connecting to the MySQL database.</li>



<li><strong>Missing or improper privileges:</strong> Another possible cause of SQL Error 1045 is the absence of the necessary privileges for the user trying to connect to the MySQL database. If the user does not have the proper privileges, they will be denied access, resulting in the error.</li>



<li><strong>Hostname or IP address mismatch:</strong> MySQL uses hostnames or IP addresses to identify which hosts are allowed to connect to the database. If the hostname or IP address specified during the connection attempt does not match the one defined in the MySQL configuration, SQL Error 1045 may occur.</li>



<li><strong>Firewall or security settings: </strong>Firewalls or security settings on the server hosting the MySQL database may block incoming connections, resulting in SQL Error 1045. It is essential to check the server&#8217;s firewall and security settings to ensure that they are configured correctly to allow MySQL connections.</li>



<li><strong>MySQL server configuration issues: </strong>Incorrect configuration settings in the MySQL server can also lead to Error 1045. For example, if the MySQL server is not configured to allow remote connections, users may encounter this error when trying to connect from a remote host.</li>
</ol>



<h2 class="wp-block-heading">Fix SQL Error 1045</h2>



<p>Fixing SQL Error 1045 requires identifying the root cause of the issue and taking appropriate steps to rectify it. Here are some common solutions to fix Error 1045:</p>



<h3 class="wp-block-heading">Verify Your Credentials</h3>



<p>The first step in resolving SQL Error 1045 is to verify that you are using the correct credentials to connect to your database server. Double-check the username and password you are using in your database connection settings or in your SQL command. Ensure that you are using the correct username and password combination that has the necessary privileges to access the database.</p>



<h3 class="wp-block-heading">Check for Typos</h3>



<p>Sometimes, a simple typo in your username or password can result in SQL Error 1045. Make sure that you have spelled your username and password correctly, paying attention to uppercase and lowercase letters. Also, check for any special characters or spaces that may have been mistakenly included in your credentials.</p>



<h3 class="wp-block-heading">Grant Sufficient Privileges</h3>



<p>If you are still unable to connect to the database and receive SQL Error 1045, it could be due to insufficient privileges for the user account you are using. To fix this, you can grant the necessary privileges to the user account. Log in to your database server as a privileged user, such as the root user, and execute the following SQL command:</p>



<pre class="wp-block-code"><code>GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'IDENTIFIED BY 'password';</code></pre>



<p>Replace &#8216;username&#8217; with the actual username you are using to connect to the database and &#8216;password&#8217; with the actual password for that user. </p>



<p>This command grants all privileges on all databases and tables to the specified user account when connecting from the localhost. If you are connecting from a remote host, you may need to replace &#8216;localhost&#8217; with the appropriate hostname or IP address.</p>



<h3 class="wp-block-heading">Check hostname or IP address</h3>



<p>Verify that the hostname or IP address specified during the connection attempt matches the one defined in the MySQL configuration. If necessary, update the MySQL configuration to reflect the correct hostname or IP address</p>



<h3 class="wp-block-heading">Update Your Password</h3>



<p>If you recently changed the password for the user account you are using to connect to the database and forgot to update your connection settings, it could result in SQL Error 1045. In this case, you can simply update the password in your connection settings or in your SQL command to match the new password. If you are using a MySQL or MariaDB command-line client, you can update the password using the following SQL command:</p>



<pre class="wp-block-code"><code>ALTER USER 'username'@'localhost'IDENTIFIED BY 'new_password';</code></pre>



<p>Replace &#8216;username&#8217; with the actual username you are using and &#8216;new_password&#8217; with the new password you want to set.</p>



<h3 class="wp-block-heading">Check for Firewall or Network Issues</h3>



<p>Firewall or network issues can sometimes block the connection to the database server and result in Error 1045. Make sure that the port used by your database server (default is 3306 for MySQL and MariaDB) is open in your firewall and that there are no network connectivity issues between your client and the database server.</p>



<h3 class="wp-block-heading">Reinstall or Reconfigure MySQL or MariaDB</h3>



<p>If all else fails and you are still unable to fix SQL Error 1045, you may need to reinstall or reconfigure your MySQL or MariaDB server. This should be done with caution, as it may result in data loss or other unintended consequences. Before proceeding with a reinstallation or reconfiguration, make sure to backup your database and configuration files to prevent any potential data loss.</p>



<p>In conclusion, SQL Error 1045 can be a frustrating issue to encounter when trying to connect to your MySQL or MariaDB database server. However, by following above steps you can fix this issue.</p>



<p>Read More articles on SQL errors:</p>



<ul class="wp-block-list">
<li><a href="https://techyaz.com/sql/fix-sql-error-1064/" target="_blank" rel="noreferrer noopener">Fix the Most Common SQL Syntax Error: SQL Error 1064</a></li>
</ul>



<p></p>
<p>The post <a href="https://techyaz.com/mysql/how-to-fix-sql-error-1045-resolving-access-denied-issues/">How to Fix SQL Error 1045: Resolving Access Denied Issues</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/mysql/how-to-fix-sql-error-1045-resolving-access-denied-issues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Fix SQL Server Error 18456: A Comprehensive Guide</title>
		<link>https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/</link>
					<comments>https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sat, 08 Apr 2023 13:27:20 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2773</guid>

					<description><![CDATA[<p>SQL Server, developed by Microsoft, is a popular relational database management system (RDBMS) used by millions of businesses worldwide. However, like any software, SQL Server may encounter errors, and one common error that users often encounter is SQL Server Error&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/">How to Fix SQL Server Error 18456: A Comprehensive Guide</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SQL Server, developed by Microsoft, is a popular relational database management system (RDBMS) used by millions of businesses worldwide. However, like any software, SQL Server may encounter errors, and one common error that users often encounter is SQL Server Error 18456. This error occurs when users are unable to log in to their SQL Server instance due to authentication failure. In this article, we will delve into the details of SQL Server Error 18456 and provide a comprehensive guide on how to fix it.</p>



<p>SQL Server Error 18456, also known as the &#8220;Login failed for user&#8221; error, is a common authentication error that occurs when a user fails to log in to SQL Server. The error message associated with Error 18456 usually reads:</p>



<p><em>&#8220;Login failed for user &#8216;&lt;username>&#8217;. (Microsoft SQL Server, Error: 18456)&#8221;</em></p>



<p>The error occurs when SQL Server is unable to authenticate the user trying to connect to the SQL Server instance. There are several reasons why this error may occur, including incorrect login credentials, disabled user accounts, expired passwords, or issues with SQL Server authentication settings.</p>


<div class="wp-block-image">
<figure class="alignright size-full is-resized"><img loading="lazy" decoding="async" src="https://techyaz.com/wp-content/uploads/2023/04/SQL-Server-error-18456.png" alt="Fix SQL Server error 18456" class="wp-image-2774" width="342" height="212" srcset="https://techyaz.com/wp-content/uploads/2023/04/SQL-Server-error-18456.png 851w, https://techyaz.com/wp-content/uploads/2023/04/SQL-Server-error-18456-300x186.png 300w, https://techyaz.com/wp-content/uploads/2023/04/SQL-Server-error-18456-768x476.png 768w" sizes="auto, (max-width: 342px) 100vw, 342px" /></figure></div>


<h2 class="wp-block-heading">How to Fix SQL Server Error 18456?</h2>



<p>Fixing SQL Error 18456 requires identifying the root cause of the error and applying the appropriate solution. Here are some common solutions to fix SQL Error 18456:</p>



<ol class="wp-block-list" type="1">
<li><strong>Verify Login Credentials: </strong>The most basic step in fixing SQL Server Error 18456 is to verify that the login credentials, including the username and password, are correct. Make sure you are entering the correct login credentials for the SQL Server instance you are trying to connect to.</li>



<li><strong>Enable Mixed Mode Authentication: </strong>SQL Server supports two types of authentication modes &#8211; Windows Authentication mode and Mixed Mode (Windows Authentication and SQL Server Authentication) mode. If you are using SQL Server Authentication, make sure that Mixed Mode Authentication is enabled in SQL Server. You can do this through SQL Server Management Studio (SSMS) by right-clicking on the SQL Server instance, selecting Properties, and then navigating to the Security tab.</li>



<li><strong>Check User Account Status: </strong>Ensure that the user account you are trying to log in with is not disabled or locked out. If the user account is disabled or locked out, unlock or enable the account using SQL Server Management Studio or SQL Server command-line tools.</li>



<li><strong>Reset Password: </strong>If you suspect that the password for the SQL Server login is incorrect or has expired, reset the password. You can do this through SQL Server Management Studio or by using the ALTER LOGIN statement in SQL Server.</li>



<li><strong>Check SQL Server Error Logs:</strong> SQL Server logs detailed information about authentication failures in its error logs. Review the SQL Server error logs to identify any specific error messages related to Error 18456. The error logs may provide additional insights into the root cause of the issue.</li>



<li><strong>Verify SQL Server Permissions: </strong>Ensure that the user account has the necessary permissions to log in to the SQL Server instance. Check the server-level and database-level permissions for the user account and grant the appropriate permissions if necessary.</li>



<li><strong>Check Firewall Settings:</strong> If you are connecting to a remote SQL Server instance, verify that the appropriate ports are open in the firewall to allow communication between the client and the server. Check the firewall settings on both the client and server machines to ensure that they are not blocking the required ports.</li>



<li><strong>Check SQL Server Version:</strong> Error 18456 can also occur if there is a version mismatch between the SQL Server client and server components. Ensure that the SQL Server client version matches the server version to avoid compatibility issues.</li>



<li><strong>Apply SQL Server Service Packs and Cumulative Updates: </strong>Microsoft regularly releases service packs and cumulative updates for SQL Server that address known issues and provide bug fixes.</li>
</ol>



<p>You can also read the below articles to fix SQL error 18456:</p>



<ul class="wp-block-list">
<li><a href="https://techyaz.com/sql-server/failed-to-open-the-explicitly-specified-database/" target="_blank" rel="noreferrer noopener">Fix SQL Error 18456: failed to open the explicitly specified database</a></li>



<li><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></li>



<li><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></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/">How to Fix SQL Server Error 18456: A Comprehensive Guide</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/how-to-fix-sql-server-error-18456-a-comprehensive-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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 loading="lazy" 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="auto, (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 Always ON Connection Timeout Error 35206 in SQL Server</title>
		<link>https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/</link>
					<comments>https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Fri, 23 Jul 2021 09:01:25 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2613</guid>

					<description><![CDATA[<p>Recently, my company has migrated all critical SAP systems from on prem Linux based Oracle databases to Azure Cloud windows based SQL Server. These are very high end machines on which very large SQL Server databases are running with Alwayson&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/">Fix Always ON Connection Timeout Error 35206 in SQL Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Recently, my company has migrated all critical SAP systems from on prem Linux based Oracle databases to Azure Cloud windows based SQL Server. These are very high end machines on which very large SQL Server databases are running with Alwayson configuration between 3 replicas. These databases are highly transactional, very large in size approximately more than 10 TB and these are configured to run critical SAP systems. Since few weeks, we have started facing very strange issue of connection timeout ( SQL error 35206 ) on one of our secondary availability replica. Below is full text of this SQL Server error 35206.</p>



<p class="has-vivid-red-color has-text-color"><em><strong>A connection timeout has occurred on a previously established connection to availability replica &#8216;manvendradbggp03&#8217; with id [availability group id]. Either a networking or a firewall issue exists or the availability replica has transitioned to the resolving role.</strong></em></p>



<p>You may also receive similar issue under different alwayson error 35201. Below error will generate while attempting to establish the connection to availability group but failed because of connection timeout error 35206. The error text of this SQL error 35201 is given below.</p>



<p class="has-vivid-red-color has-text-color"> <strong><em>A connection timeout has occurred while attempting to establish a connection to availability replica &#8216;manvendradbggp03&#8217; with id [availability group id]. Either a networking or firewall issue exists, or the endpoint address provided for the replica is not the database mirroring endpoint of the host server instance.</em></strong></p>



<p>If you are always getting above issues and unable to establish any connection to its respective availability replica then you should immediately look in to network side whether there is poor network latency, any network packet drop issue or firewall is blocking some connections or not as suggested in error code. But if you are getting this issue on intermittent basis then you should keep reading this article to understand more about alwayson error 35206.</p>



<h2 class="wp-block-heading">SQL Server Error 35206 and Error 35201 in Always on</h2>



<p>Both errors come because of connection timeout error between their respective replicas. Microsoft has categorized these errors as <a href="https://support.microsoft.com/en-us/topic/kb3213703-fix-an-always-on-secondary-replica-goes-into-a-disconnecting-state-10131118-b63a-f49f-b140-907f77774dc2" target="_blank" rel="noreferrer noopener">product issue</a> and released cumulative updates to fix them. You should also consider these cumulative updates as per your SQL Server version. These issues will be very problematic if you will not address them on time because of below reasons:</p>



<ul class="wp-block-list"><li>Availability databases will stop synchronizing. This could be a risk of potential data loss.</li><li>Log file will start growing on your primary replica. This could be a potential risk for an outage if we will not address this issue on time.</li><li>Frequent repetitive alerts for your critical systems</li></ul>



<p>You must fix this issue by applying the cumulative update to avoid above problematic scenarios. But if you already have applied these updates and are still facing these issues then i would recommend you to read below section to try out other options.</p>



<h2 class="wp-block-heading">Fix Always on Connection Timeout SQL Error 35206 </h2>



<p>Generally, this problem encounters only on high end systems where you have more than 24 cores CPU and SQL Server is highly transactional. One very simple workaround to overcome this issue is to restart SQL Server service on your secondary replica where you are getting this issue. Don&#8217;t restart SQL Server on primary replica. Restarting SQL Server on impacted availability replica will surely fix the issue for the time being. </p>



<p>Additionally, you should consider below checks to review and make changes accordingly as per your system design if you are still getting this issue on frequent basis.</p>



<h3 class="wp-block-heading">Use Default Network Packet Size</h3>



<p>Review network packet size configuration in SQL Server. Microsoft suggested to keep network packet size configuration with default value but sometime we make changes as per our need and forgot to revert these changes to their original values so i would recommend to revert this change to its default value. Read below article if you want to learn how to change network packet size configuration in SQL Server.</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 in SQL Server?</strong></a></li></ul>



<p>You should also consider evaluating your network bandwidth and firewall settings to make sure and isolate the issue. I would suggest you to work with network engineer on this front to review network or firewall related configurations.</p>



<h3 class="wp-block-heading">Review Connection Timeout Setting</h3>



<p>Another option i would recommend you to evaluate and review the session or connection time out settings. Make sure that session timeout setting for your always on configuration must be more than or equal to 10 seconds. You can consider increasing session time out if you have slow network between your replicas. Although if you are running highly transactional databases on high end box i assume you already have good network bandwidth but nothing wrong in reviewing the settings. Read below article if you want to reconfigure or change session time out in always on availability group.</p>



<ul class="wp-block-list"><li><a href="https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/" target="_blank" rel="noreferrer noopener"><strong>How to Change Session Timeout in Always on Availability Group Configuration?</strong></a></li></ul>



<p>If you are running your always on availability group configuration between multi subnet environment then i would recommend you to read attached Microsoft article to fix <a href="https://docs.microsoft.com/en-us/archive/blogs/alwaysonpro/connection-timeouts-in-multi-subnet-availability-group" target="_blank" rel="noreferrer noopener">connection timeout errors in multi subnet availability groups</a>.</p>



<p><strong><em>Read More:</em></strong> </p>



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/sql-server/alwayson/fix-error-976/" target="_blank" rel="noreferrer noopener">Fix SQL Server Error 976: Cannot connect to Secondary Replica of AlwaysON Availability Group</a></strong></li><li><strong><a href="https://techyaz.com/sql-server/alwayson/fix-alwayson-error-35250-joining-database-secondary-replica-resulted-error/" target="_blank" rel="noreferrer noopener">SQL Server Alwayson Error 35250: Joining database on Secondary Replica resulted in an error</a> </strong></li><li><strong><a href="https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/" target="_blank" rel="noreferrer noopener">Fix SQL Server Error 19471: Listener issue that came during Configuring SQL Server AlwaysOn Availability Group</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></ul>



<p></p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/">Fix Always ON Connection Timeout Error 35206 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/alwayson/always-on-connection-timeout-error-35206/feed/</wfw:commentRss>
			<slash:comments>1</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>SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</title>
		<link>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 25 Jun 2018 12:59:40 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2410</guid>

					<description><![CDATA[<p>Yesterday i have received SQL Server Native Client Error 5000 while installing SQL Server Management Studio on one of the client machine. The description for this error code was given as &#8220;A network error occurred while attempting to read from&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/">SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday i have received SQL Server Native Client Error 5000 while installing SQL Server Management Studio on one of the client machine. The description for this error code was given as <em>&#8220;A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221; </em> Here i will describe and explain about SQL Server Error 50000 and it&#8217;s fix to make SQL Server installation successful.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-2411 alignright" src="https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000.png" alt="SQL Server Native Client Error 50000" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000.png 300w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/06/SQL-Native-Client-Error-50000-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<h3><span style="color: #333399;">SQL Server Native Client Error 50000</span></h3>
<p>Before explaining about SQL native client error 50000, i would like to describe about what is SQL Server native client. As per MSDN <em>&#8220;SQL Server Native Client, is a term that has been used interchangeably to refer to ODBC and OLE DB drivers for SQL Server.&#8221; </em></p>
<p>SQL Server Native Client is a technology that we can use to access data in a SQL Server database. There are several factors you should consider while deciding whether to use SQL Server Native client or some other data access technology. You can read attached article about <a href="https://docs.microsoft.com/en-us/sql/relational-databases/native-client/when-to-use-sql-server-native-client?view=sql-server-2016">when to use SQL Server Native Client.</a></p>
<p>Generally, we get SQL Server native client error 50000 while installing or updating native client software or a software component that uses SQL Server Native Client and your target machine already have this installed previously using some msi file.</p>
<p>You can also get this issue if SQL Server native client file <em>sqlncli.msi </em>has been renamed after its installation and later today when you are trying to update it, you will end up with this SQL error 50000 . If somehow native client installation file has been renamed on your machine, setup will not find its file to update SQL Server native client and through below error.</p>
<p><span style="color: #ff0000;"><em>A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221;</em></span></p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>To fix this error, you should uninstall installed version of SQL Server native client from add/remove program and then you can try to install SQL Server or its component again. This time you will not get any error and your software or native client will be installed. To avoid further issue, you can reboot the machine post uninstalling the native client tool.</p>
<p>If you are installing only SQL Server native client and not SQL Server then you can download it from Microsoft website and then reinstall it again.</p>
<p>You can also prevent this error to not generate in future by not installing it using its msi file sqlncli.msi. If you had installed it using this file, make sure to never rename it as well.</p>
<p>Here, I have shown you how to fix SQL Server Native Client Error 50000, <em>&#8220;A network error occurred while attempting to read from the file &lt;Filename&gt;.&#8221; </em> 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><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/" target="_blank" rel="noopener">Fix SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-attributes-not-match/" target="_blank" rel="noopener">Fix SQL Server Installation Error: Attributes do not match</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/" target="_blank" rel="noopener">How to Fix SQL Server Installation Error 1639?</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/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/">SQL Server Native Client Error 50000: A network error occurred while attempting to read from the file</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/a-network-error-occurred-while-attempting-to-read-from-the-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 30 May 2018 14:47:37 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[bulk import performance]]></category>
		<category><![CDATA[data file]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2355</guid>

					<description><![CDATA[<p>I had to add a log file to a database and then extend the size of this log file to a specific value. I got SQL Server error 5009 while creating the log file and got same error code again&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/">SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I had to add a log file to a database and then extend the size of this log file to a specific value. I got SQL Server error 5009 while creating the log file and got same error code again while extending the size of this file. Here i will describe how to fix Microsoft SQL Server Error 5009 while adding a database file or removing a database file or extending the database file size. You can see the screenshot of this error in below image while adding the log file.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-2356 aligncenter" src="https://techyaz.com/wp-content/uploads/2018/05/1-error-5009-min.jpg" alt="Microsoft SQL Server Error 5009" width="598" height="232" srcset="https://techyaz.com/wp-content/uploads/2018/05/1-error-5009-min.jpg 598w, https://techyaz.com/wp-content/uploads/2018/05/1-error-5009-min-300x116.jpg 300w" sizes="auto, (max-width: 598px) 100vw, 598px" /></p>
<h3><span style="color: #333399;">Microsoft SQL Server Error 5009 While Adding Database File</span></h3>
<p>I was working on a migration project where we had to load huge data in a SQL Server database on the target server. To optimize data load performance, we had decided to create database with the final size on the destination server. The final size of database post data import was around 800 GB. We made some configurational changes to reduce data import time. Extending database files size was one of the step to reduce data load time. If you want to learn<strong> <a href="https://techyaz.com/sql-server/improve-sql-server-bulk-data-import-performance/" target="_blank" rel="noopener">how to speed up data import</a></strong> then I would suggest reading attached article.</p>
<p>We decided to add one more log file on separate drive considering extensive log growth during data load. While adding the log file, we got error 5009. Full error details are given below.</p>
<p><em><span style="color: #ff0000;">One or more files listed in the statement could not be found or could not be initialized. CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file &#8216;T:\Techyaz_log3.ldf&#8217;.(Microsoft SQL Server, Error: 5009)</span></em></p>
<p>As error suggests, I don&#8217;t had enough permission to create this file on given location where i was trying to create the log file. There are two solutions to fix this issue. First solution is to set the Operating system permission on the mentioned .ldf file to full permission for your login account and SQL Server service account. While second solution is to change the location to the path where you have enough permission to create or add database files. Any of these two solutions will fix your problem. Let&#8217;s go to another version of Microsoft SQL Server Error 5009 while extending the log file.</p>
<h3><span style="color: #333399;">Microsoft SQL Server Error 5009 While Extending the Size of Log File</span></h3>
<p>When i changed the location to create this ldf file to a directory <em>T:\Data\Techyaz_log3.ldf </em>this time log file was created but we get same issue again while extending the size of this log file. Next, I was assigning bigger value to each data and log files. We had successfully increased data files size in few minutes because we had already <strong><a href="https://techyaz.com/sql-server/instant-file-initialization-enable-on-sql-server-instance/" target="_blank" rel="noopener">enabled Instant File Initialization to skip zeros process</a></strong> on storage but we faced Microsoft SQL Server error 5009 again while increasing the size of log files. i was extending  log file with bigger values. As we know Instant File Initialization does not work for transaction log files so extending the size of log files was taking lot of time. This time access denied issue was disappeared but error 5009 issue was there only. Error description for this error is given below.</p>
<p><em><span style="color: #ff0000;">Msg 5009, Level 16, State 9, Line 1</span></em><br />
<em><span style="color: #ff0000;">One or more files listed in the statement could not be found or could not be initialized.</span></em></p>
<p>To fix this error, we had passed small value to extend the file size. Earlier we were trying to increase the log file in a slot of 40 GB in single go. It was taking time to finish but most of time log file size got extended with 40GB but sometimes we had received above Microsoft SQL Server error 5009. When we got this error, we extend the size of log file to 10Gb in place of 40GB that we were doing previously. Reducing the value while extending the log file has fixed this issue and log files had been extended to its future size successfully.</p>
<h3><span style="color: #333399;">Microsoft SQL Server Error 5009 While Removing Database File</span></h3>
<p>Some of the blogs have suggested that they got SQL Server error 5009 while removing a logical file in SQL Server but surprisingly I got this error while creating or increasing the size of log file. So if you are getting this error while removing any database file then you can keep reading this article to solve this issue.</p>
<p>Whenever we add any database file then its entry got captured in system catalog files, if you are trying to delete any database file then there might be possibility that logical name of the file that you try to remove is not unique in the system catalog tables. For example, this issue occurs if the file existed in the database earlier, and then the file was removed. When you remove the file, it will try to drop earlier file that has been removed but its metadata is not cleaned and appear like ghost file.</p>
<p>You should follow below steps to fix this issue.</p>
<ul>
<li>Create a new logical file with different name and the same data type. For example, If your file;s logical name is Techyaz_Logical_Name then create this new file with “Techyaz_Logical_Name_New&#8221;. Run below command to create this file.</li>
</ul>
<pre style="padding-left: 60px;"><span style="color: #0000ff;"><strong>ALTER DATABASE [Techyaz] 
ADD FILE ( NAME = N'Techyaz_Logical_Name_New', FILENAME = N'T:\DATA\Techyaz_file4.ndf', SIZE = 10MB, MAXSIZE = 100MB)</strong></span></pre>
<ul>
<li>Now we will remove the logical file that we have created in step 1, as in the following example:</li>
</ul>
<pre style="padding-left: 60px;"><span style="color: #0000ff;"><strong>ALTER DATABASE [Techyaz] REMOVE FILE [Techyaz_Logical_Name_New]</strong></span></pre>
<ul>
<li>Run a transaction log backup of the database.</li>
<li>Now go ahead and remove the logical file that were trying to remove earlier and your received Microsoft SQL Server Error 5009.</li>
</ul>
<p>Here, I have described multiple possibilities and fixes for Microsoft SQL Server Error 5009. I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</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="https://techyaz.com/sql-server/troubleshooting/manage-transaction-log-file-during-data-load/" target="_blank" rel="noopener">Manage Transaction Log File during Data Load</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/get-total-virtual-log-files/" target="_blank" rel="noopener">How to get total no of virtual log files in a transaction log file</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-3023-error-3013-error-3041/" target="_blank" rel="noopener">Fix Error 3023: Shrink failed for Log file</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/understanding-transaction-log-architecture/" target="_blank" rel="noopener">Understanding SQL Server Transaction Log Architecture</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1105/" target="_blank" rel="noopener">Fix SQL Server Error 1105: Could Not Allocate Space for Object in Database because the Filegroup is Full</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/" target="_blank" rel="noopener">Fix SQl Server Error 5144 and 5145 for long and failed Autogrow of data and log file</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-error-5009/">SQL Server Error 5009: One or more files listed in the statement could not be found or could not be initialized</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-server-error-5009/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Fix Error 1105: Could not allocate space for object in database because the filegroup is full.</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-1105/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-1105/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 16 Apr 2018 06:40:16 +0000</pubDate>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[log space]]></category>
		<category><![CDATA[space issues]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<category><![CDATA[T-SQL]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2090</guid>

					<description><![CDATA[<p>Today, I got error 1105 on one of the database server. We were processing some bulk transactions on a database but failed because of space issue. Full description of error 1105 is given below. Error 1105, Severity 17, State 2&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1105/">Fix Error 1105: Could not allocate space for object in database because the filegroup is full.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, I got error 1105 on one of the database server. We were processing some bulk transactions on a database but failed because of space issue. Full description of error 1105 is given below.</p>
<p><em><span style="color: #ff0000;">Error 1105, Severity 17, State 2</span></em><br />
<em><span style="color: #ff0000;"> Could not allocate space for object &#8216;Object_Name’ in database &#8216;DB_Name’ because the &#8216;Primary’ filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.</span></em></p>
<h3><span style="color: #333399;">Error 1105 – Root Cause</span></h3>
<p>As error suggests, this issue was generated because database was not able to allocate space anymore. Whenever you get such space issue, all transactions will be stopped until you make some room in the database. All transactions will be stopped because of non availability of space because none of the transaction will get any space to proceed their transactions. There are many reasons you can get space issues. Some of them are:</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-2091 alignright" src="http://techyaz.com/wp-content/uploads/2018/04/Error-1105.png" alt="error 1105" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/04/Error-1105.png 300w, https://techyaz.com/wp-content/uploads/2018/04/Error-1105-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/04/Error-1105-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/04/Error-1105-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<ul>
<li>Data or Log drive is full.</li>
<li>Database file/s has restricted file growth</li>
<li>Database File Autogrowth is not enabled.</li>
<li>Some tables are growing faster than our prediction.</li>
<li>Some long running transaction is eating all space.</li>
</ul>
<p>We generally get error 1105 when any database including tempdb or any transaction log file get full and runs out of space. File growth restriction is also a possible reason you can get error 1105. Make sure to check all database files associated with your database to make sure there is no file growth restriction is set that is causing to generate this error. Sometimes when you restrict the file growth and the file size reached its limit, you may get this error message when trying insert / updates on database. I have explained multiple solutions to overcome this issue. Have a look at below section to get the solution of such space issues.</p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>To fix this error we need to make space in the database so that all running transactions can execute and log their operations. We have multiple solutions to fix such issue based on the nature of the issues. Some of the solutions are given below:</p>
<ul>
<li>First you should check if any unwanted file is not there in data or log drive. Sometimes we placed backup files in data or log drive and forgot to delete it. Make sure to remove or move such unwanted files to make space for your database.</li>
<li>If any of the database files have restricted file growth then you should immediately turn on autogrow feature of the data or log file. You can read below article to understand what should be the perfect value for autogrowth of a data or log file.</li>
</ul>
<p style="padding-left: 90px;"><strong><u><a href="http://techyaz.com/sql-server/understanding-database-autogrowth-sql-server/" target="_blank" rel="noopener">How to Enable Autogrowth and What should be the Best value for File Autogrowth?</a></u></strong></p>
<ul>
<li>If size of your database file is limited to some value then make sure to extend the size of that file or I would suggest going with unrestricted growth. Read above attached article to get more about this.</li>
<li>If your data or log drive is running out of space then you should add more files to the file group on different drive where you have enough space. You can use below command to add any data or log file to your desired drive. Make sure to change the drive path as per your correct path.</li>
</ul>
<pre style="padding-left: 60px;"><strong><span style="color: #0000ff;">ALTER DATABASE Techyaz</span></strong>
<strong><span style="color: #0000ff;">ADD FILE (</span></strong>
<strong><span style="color: #0000ff;">NAME = techyaz_Data3,</span></strong>
<strong><span style="color: #0000ff;">FILENAME = 'F:\MSSQL\DATA\techyaz_DataFile3.ndf')</span></strong></pre>
<ul>
<li>We can also free disk space by dropping index or tables that are no longer needed. You can also consider data purging for unwanted tables or indexes.</li>
<li>You can also consider moving some of the database files to different drive to make some space for your database.</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><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-1101-could-not-allocate-a-new-page-for-database/" target="_blank" rel="noopener">Fix Error 1101: Could not allocate a new page for database</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/avoid-database-shrink-operation/" target="_blank" rel="noopener">Why should we Avoid Database Shrink Operation?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/always-turn-off-database-auto-shrink/" target="_blank" rel="noopener">Why should we always Disable Autoshrink property?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1105/">Fix Error 1105: Could not allocate space for object in database because the filegroup is full.</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-1105/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix Error 15123: The configuration option does not exist.</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-15123/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-15123/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 10 Apr 2018 13:00:57 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[sp_configure]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2075</guid>

					<description><![CDATA[<p>Yesterday, one of my teammate was facing an issue while enabling a server level parameter using T-SQL command sp_configure. He was trying to enable extended procedure xp_cmdshell using sp_configure command but he received error 15123. Full description of error is given below.&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-15123/">Fix Error 15123: The configuration option does not exist.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Yesterday, one of my teammate was facing an issue while enabling a server level parameter using T-SQL command <em>sp_configure</em>. He was trying to enable extended procedure <em>xp_cmdshell</em> using <em>sp_configure</em> command but he received error 15123. Full description of error is given below.</p>
<p><em><span style="color: #ff0000;">Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51</span></em><br />
<em><span style="color: #ff0000;"> The configuration option &#8216;xp_cmdshell&#8217; does not exist, or it may be an advanced option.</span></em></p>
<p>The screenshot of the error is given in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2078" src="http://techyaz.com/wp-content/uploads/2018/04/1-error15123.png" alt="Error 15123" width="704" height="194" srcset="https://techyaz.com/wp-content/uploads/2018/04/1-error15123.png 704w, https://techyaz.com/wp-content/uploads/2018/04/1-error15123-300x83.png 300w" sizes="auto, (max-width: 704px) 100vw, 704px" /></p>
<p>You might get this error while changing or viewing values of any advanced server configuration option. Here I will show you how to fix this error and make such changes successfully.</p>
<h3><span style="color: #333399;">Error 15123 – Root Cause</span></h3>
<p>As we know, there are lot of server level configurations that we can see or change using command <em>sp_configure</em>. Some of the server level configuration options categorized as advanced options and that cannot be viewed or changed if the value of “<strong><em>show advanced options</em></strong>” is set to 0 or disabled.</p>
<p>We can view “<em>show advanced options</em>” value by running <em>sp_configure</em> command. If the run value of this command is set to 0 it means this option is disabled and you cannot see any advanced server configurations.</p>
<p>To see or change the advance server level configurations we need to enable “<em>show advanced options</em>” by setting its value to 1 using <em>sp_configure</em>. Run below command to check the current run value for “<em>show advanced options</em>”. You can also simply type sp_configure command and execute it to get its details along with all other server configuration options.</p>
<pre><strong><span style="color: #0000ff;">exec sp_configure ‘show advanced options’</span></strong></pre>
<p>We can see run value of parameter “<em>show advanced option</em>” is set as zero it means we cannot view or change any advanced server configurations using command <em>sp_configure</em>.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2079" src="http://techyaz.com/wp-content/uploads/2018/04/2-error15123.png" alt="Enable Show Advanced Options" width="571" height="214" srcset="https://techyaz.com/wp-content/uploads/2018/04/2-error15123.png 571w, https://techyaz.com/wp-content/uploads/2018/04/2-error15123-300x112.png 300w" sizes="auto, (max-width: 571px) 100vw, 571px" /></p>
<p>This is the main reason behind getting error 15123 and we can get this error while changing any advance server level parameters. Read below section to enable “<em>show advanced options</em>” and change the values of advanced server configurations.</p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>Generally, we get error 15123 because “<em>show advanced options</em>” is disabled and set to zero and it’s not allow to do anything with advanced server options. As we have seen “<em>show advanced options</em>” is set to zero in above screenshot. Here, we will enable it and then run again same command that we have ran in first screenshot to enable <em>xp_cmdshell</em> extended procedure.</p>
<p>Let’s enable “<em>show advanced options</em>” option to view or change the advance server level configurations by running below command.</p>
<pre><strong><span style="color: #0000ff;">exec sp_configure ‘show advanced options’, 1</span></strong>
<strong><span style="color: #0000ff;"> RECONFIGURE WITH OVERRIDE</span></strong></pre>
<p>Above command has been executed successfully. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2080" src="http://techyaz.com/wp-content/uploads/2018/04/3-error15123.png" alt="Enable show advanced options" width="829" height="191" srcset="https://techyaz.com/wp-content/uploads/2018/04/3-error15123.png 829w, https://techyaz.com/wp-content/uploads/2018/04/3-error15123-300x69.png 300w, https://techyaz.com/wp-content/uploads/2018/04/3-error15123-768x177.png 768w" sizes="auto, (max-width: 829px) 100vw, 829px" /></p>
<p>Now we can go ahead and view any advanced options by running simply <em>sp_configure</em> command. If you need to make any changes on existing values of advanced server options then also you can do it using <em>sp_configure</em> command now. Let’s go ahead and run same command that we had ran in first image to enable <em>xp_cmdshell</em>.</p>
<pre><strong><span style="color: #0000ff;">exec sp_configure 'xp_cmdshell', 1</span></strong>
<strong><span style="color: #0000ff;"> reconfigure with override</span></strong></pre>
<p>We can see this command has been executed successfully this time without any error.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2081" src="http://techyaz.com/wp-content/uploads/2018/04/4-error15123.jpg" alt="enable xp_cmdshell" width="832" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/04/4-error15123.jpg 832w, https://techyaz.com/wp-content/uploads/2018/04/4-error15123-300x63.jpg 300w, https://techyaz.com/wp-content/uploads/2018/04/4-error15123-768x162.jpg 768w" sizes="auto, (max-width: 832px) 100vw, 832px" /></p>
<p>Whenever you get error 15123 while viewing or changing values of any advanced option you should first enable or set the value for option “<em><strong>show advanced options</strong></em>” then you can make your desired changes accordingly.</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><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-administration/change-network-packet-size-sql-server/" target="_blank" rel="noopener">How to change Network Packet size in SQL Server</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">Fix Error 233: How to Set the User Connections Server Configuration option in SQL Server</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-memory-allocation-min-max-server-memory-configuration/" target="_blank" rel="noopener">Understanding SQL Server Memory Allocation</a></strong></li>
<li><strong><a href="http://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server DBA Interview Questions &amp; Answer</a></strong></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-15123/">Fix Error 15123: The configuration option does not exist.</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-15123/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix Error 1418: The server network address cannot be reached or does not exist.</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-error-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-error-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 27 Mar 2018 16:53:07 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Database Mirroring]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[endpoints]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL Server Configuration Manager]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1997</guid>

					<description><![CDATA[<p>We got error 1418 while configuring Database Mirroring on one of the SQL Server database instance. The error details are given below: The server network address “TCP://ServerName.abc.local:5022&#8243; cannot be reached or does not exist. Check the network address name and&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/">Fix Error 1418: The server network address cannot be reached or does not exist.</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We got error 1418 while configuring Database Mirroring on one of the SQL Server database instance. The error details are given below:</p>
<p><em><span style="color: #ff0000;">The server network address <strong>“TCP://ServerName.abc.local:5022&#8243;</strong> cannot be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)</span></em></p>
<h3><span style="color: #333399;">Reason behind Error 1418</span></h3>
<p>Main reason behind database mirroring error 1418 is because the specified server network address cannot be reached or does not exist. The server network address cannot be reached because of multiple reasons. Some of them are given below.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-2000 alignright" src="http://techyaz.com/wp-content/uploads/2018/03/fix-error-1418.png" alt="fix error 1418" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/03/fix-error-1418.png 300w, https://techyaz.com/wp-content/uploads/2018/03/fix-error-1418-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/03/fix-error-1418-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/03/fix-error-1418-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<ul>
<li>Principal, Mirror and Witness servers are not talking to each other.</li>
<li>Wrong network address name, mirror server instance name or port number.</li>
<li>Mirror database is not ready for mirroring.</li>
<li>Principal or mirror server instance is behind a firewall.</li>
<li>You are using local system account to run SQL Server services and not using certificates for authentication.</li>
<li>SQL Server services are running with different domain accounts on Principal and Mirror server and service accounts don&#8217;t have enough permission on endpoints.</li>
<li>Different endpoint encryption value set on Principal, Mirror and Witness server.</li>
<li>Endpoints are not started on the partner servers.</li>
<li>Principal server instance is not listening on the port assigned to its database mirroring endpoint.</li>
</ul>
<p>We need to verify each option mentioned above carefully to fix this error.</p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>The solution of this issue may vary case to case depending on the nature of issue. To fix this issue we need to find out the main root cause behind error 1418. The root cause may be anything that is given in above section. Here I will describe each probable reason given above and its solution to fix this issue. Make sure to go through with each point given in this article.</p>
<h5><span style="color: #993300;">Principal, Mirror and Witness Servers Should be Accessible</span></h5>
<p>Make sure that SQL Server Instances installed on Principal, Mirror &amp; Witness servers are accessible to each other. If remote login for any SQL Server instance is not enabled then you might get this issue. You can enable remote connectivity by <strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-error-40-network-related-instance-specific-error-occurred-establishing-connection/" target="_blank" rel="noopener">enabling TCP/IP and Named Pipes protocols in SQL Server Configuration Manager</a></strong>. Each system must access the ports of the other SQL Server instances over TCP. You can try telnet the SQL Server ports of other partners.</p>
<h5><span style="color: #993300;">Verify Correct System Details </span></h5>
<p>Sometimes we entered wrong details that end up with throwing errors. Make sure to verify the network address name, mirror server instance name and its port numbers are correct. You can recheck all the details whether you have entered them correctly or not.</p>
<h5><span style="color: #993300;">Mirror Database Preparation</span></h5>
<p>Verify that the mirror database is ready for database mirroring. We should prepare mirror database before configuring or during configuring database mirroring. It is suggested to keep identical drive path for mirror database files. Below are the steps you should take care for preparing your mirroring database.</p>
<ul>
<li>Run full backup and subsequent transactional log backup of the Principal database and copy it to the Mirror server.</li>
<li>Restore database with same name in norecovery state on Mirror server with the copied backup files from above step. You must ensure that restored database on mirror server should be in restoring mode before starting database mirroring configuration.</li>
</ul>
<h5><span style="color: #993300;">Firewall/Ports</span></h5>
<p>One of the probable reason to get error 1418 is partner servers are behind firewall. Make sure that the principal server instance and destination mirror server instance is not behind a firewall and they should talk to each other. Principal server, Mirror server and witness server should be accessible to each other.</p>
<p>Verify that SQL Server port and endpoint ports are enabled and accessible via telnet. If not or you are not able to telnet any of the partner instance from any server participating in mirroring then you should ask your network admins to open these ports to establish the connectivity over given port.</p>
<h5><span style="color: #993300;">Endpoints</span></h5>
<p>Make sure that endpoint has been created on principal, mirror and witness servers. Verify that the endpoints are started on each partner server instances. You can check endpoint status by running below T-SQL query on each instance.</p>
<pre><strong><span style="color: #0000ff;">SELECT state_desc FROM sys.database_mirroring_endpoints</span></strong></pre>
<p>If either endpoint is not started, execute below ALTER ENDPOINT statement to start it.</p>
<pre><span style="color: #008000;"><strong>#Change the name of your endpoints. Here endpoint name is Mirroring</strong></span>
<strong><span style="color: #0000ff;">ALTER ENDPOINT Mirroring</span></strong>
<strong><span style="color: #0000ff;">STATE = STARTED</span></strong>
<strong><span style="color: #0000ff;">AS TCP (LISTENER_PORT = &lt;port_number&gt;)</span></strong>
<strong><span style="color: #0000ff;">FOR database_mirroring (ROLE = ALL);</span></strong>
<strong><span style="color: #0000ff;">GO</span></strong></pre>
<p>Recheck that the principal server instance is listening on the port assigned to its database mirroring endpoint and the mirror server instance is listening on its port. If a partner is not listening on its assigned port, modify the database mirroring endpoint to listen on a different port.</p>
<p>Sometimes this issue got fixed by dropping the existing endpoint and recreate it again on partner servers.</p>
<h5><span style="color: #993300;">Service Accounts</span></h5>
<p>Do not use <em>local system</em> account to run SQL Server services. If you don’t have any choice and want to use local system then ensure to use certificates for authentications.</p>
<p>Make sure that service accounts that you are using to run SQL Server services must have CONNECT permission to mirroring endpoints. Also, if you are configuring database mirroring between two domains then the login of one account must be created in <strong>master</strong> database on the other computer, and that login must be granted CONNECT permissions on the endpoint.</p>
<p>It&#8217;s always advisable to use same service accounts to run SQL Server services on all three Instances on Principal, Mirror and Witness server.</p>
<p>You can comment us your experience about fixing this issue. We will update this article with your solution that you have used to fix this issue.</p>
<p>I hope you like this article. Please follow us on 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="http://techyaz.com/sql-server/fix-error-15141-server-principal-owns-one-endpoints-cannot-dropped/" target="_blank" rel="noopener">Fix Error 15141: The server principal owns one or more endpoints and cannot be dropped</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/fix-alwayson-error-35250-joining-database-secondary-replica-resulted-error/" target="_blank" rel="noopener">Fix AOAG Error 35250: Joining database on Secondary Replica resulted in an error</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/upgrade-patch-availability-group-instances/" target="_blank" rel="noopener">How to Upgrade or Patch Availability Group Instances?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/alwayson/sql-server-alwayson-interview-questions-answers/" target="_blank" rel="noopener">SQL Server Always On Interview Questions and Answers</a></strong></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/">Fix Error 1418: The server network address cannot be reached or does not exist.</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-1418-the-server-network-address-cannot-be-reached-or-does-not-exist/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>How to Fix SQL Server Installation Error 1639?</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Nandan]]></dc:creator>
		<pubDate>Sat, 03 Feb 2018 15:58:09 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1730</guid>

					<description><![CDATA[<p>Last week, I was installing SQL Server 2012 on one of the database server. Unfortunately, the installation was failed with the error 1639. I have given below the details of this error code. Product: Microsoft SQL Server Browser – Update&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/">How to Fix SQL Server Installation Error 1639?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Last week, I was installing SQL Server 2012 on one of the database server. Unfortunately, the installation was failed with the error 1639. I have given below the details of this error code.</p>
<p><em><span style="color: #ff0000;">Product: Microsoft SQL Server Browser – Update Service Pack 1 for Microsoft SQL Server Browser (KB-NUMBER)’ could not be installed. Error code 1639.</span></em></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1732 alignright" src="http://techyaz.com/wp-content/uploads/2018/02/error1639-min.png" alt="SQL Server Installation Error 1639" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/error1639-min.png 300w, https://techyaz.com/wp-content/uploads/2018/02/error1639-min-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/error1639-min-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/error1639-min-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<h3><span style="color: #333399;">Root Cause</span></h3>
<p>I was not able to find any reason behind this error because I had followed all prerequisites before starting this installation. I went to some forums to get a root cause of this error 1639 or solution to fix it and what i found is described in this article.</p>
<p>This issue (Error 1639) comes when there is a blank space between your SQL Server setup folder directories. As I found my setup files were placed under a directory named “SQL Server 2012”. You can see there are two blank space between this directory name. This was the main reason or cause behind getting this SQL Server installation error. Read next section to fix this issue and install SQL Server successfully on your database server.</p>
<h3><span style="color: #333399;">Resolution</span></h3>
<p>To fix this issue, we have decided to first uninstall SQL Server instance that was failed to install. I have uninstalled it from “<em>Add and Remove Programs</em>” and deleted all SQL Server folders that was created during the installation. Once failed installation of SQL Server was uninstalled from database server, we have rebooted the machine to proceed with fresh installation.</p>
<p>As I mentioned above, issue was due to blank space between the parent directory of SQL Server setup files. You can see the name of directory in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1733" src="http://techyaz.com/wp-content/uploads/2018/02/1-sql-server-2012-min.jpg" alt="blank space between folder names" width="646" height="67" srcset="https://techyaz.com/wp-content/uploads/2018/02/1-sql-server-2012-min.jpg 646w, https://techyaz.com/wp-content/uploads/2018/02/1-sql-server-2012-min-300x31.jpg 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>Now I have removed the blank space between the words of this folder name and changed it to “SQLServer2012”. You can see the below screenshot of this change.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1734" src="http://techyaz.com/wp-content/uploads/2018/02/2-sqlserver2012-min.jpg" alt="Remove blank space of folder name" width="655" height="71" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-sqlserver2012-min.jpg 655w, https://techyaz.com/wp-content/uploads/2018/02/2-sqlserver2012-min-300x33.jpg 300w" sizes="auto, (max-width: 655px) 100vw, 655px" /></p>
<p>That’s all to fix this issue. Now go ahead and start the installation again for your work.</p>
<p>Once this directory was renamed, I have started the SQL Server installation process. I had launched setup file and proceed for installation. You can also right click on setup file and choose “<em>Run as Administrator</em>” to start the installation. Follow all windows and processes of installation process as you did last time to install it. This time your SQL Server instance will be installed without any issue.</p>
<p>The key takeaway from this issue is to never keep any bank space between files or folders otherwise you will be end up with similar issues.</p>
<p>I hope you like this article. Please Like, Share, Comment &amp; Subscribe to this website to get all new articles directly to your index. You can also 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:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/interview-questions/sql-server-interview-questions-answers-architecture/" target="_blank" rel="noopener">SQL Server Interview Questions &amp; Answers on Architecture</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-interview-questions-answers-indexes/" target="_blank" rel="noopener">SQL Server Interview Questions &amp; Answers on Indexes</a></strong></li>
<li><strong><a href="http://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">Microsoft SQL Server DBA Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/backup-recovery/sql-server-backup-recovery-interview-questions-answers/" target="_blank" rel="noopener">SQL Server Interview Questions &amp; Answers on Backup &amp; Recovery</a></strong></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-sql-server-installation-error-1639/">How to Fix SQL Server Installation Error 1639?</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-server-installation-error-1639/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Msg 5144 and 5145 for long or failed autogrow of data and log files</title>
		<link>https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/</link>
					<comments>https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 24 Jan 2018 16:19:30 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[autogrow]]></category>
		<category><![CDATA[autogrowth setting]]></category>
		<category><![CDATA[data file autogrow]]></category>
		<category><![CDATA[IFI]]></category>
		<category><![CDATA[Instant File Initialization]]></category>
		<category><![CDATA[log_files]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<category><![CDATA[transaction log]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1634</guid>

					<description><![CDATA[<p>Whenever you extend the size of your data or log file with a larger value or your database perform autogrow operation to extend its database files with bigger value then SQL Server takes longer time to perform such activities. SQL&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/">Fix SQL Server Msg 5144 and 5145 for long or failed autogrow of data and log files</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Whenever you extend the size of your data or log file with a larger value or your database perform autogrow operation to extend its database files with bigger value then SQL Server takes longer time to perform such activities. SQL Server reports these messages 5144 and 5145 in to the Application Event Log and ERRORLOG in case autogrow of a database and/or transaction log file has timed out or has taken a long period of time to complete. The details about such logs are given below:</p>
<p><em><span style="color: #ff0000;">Msg 5144</span></em><br />
<em><span style="color: #ff0000;"> Autogrow of file &#8216;Data or Log file name&#8217; in database &#8216;Database&#8217; was cancelled by user or timed out after &lt;n&gt; milliseconds. Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly set a new file size.</span></em></p>
<p>Or you will get below message if autogrow operation or data/log file size increase operation will run for longer duration than expected.</p>
<p><em><span style="color: #ff0000;">Msg 5145</span></em><br />
<em><span style="color: #ff0000;"> Autogrow of file &#8216;Data or Log file name&#8217; in database &#8216;Database&#8217; took &lt;n&gt; milliseconds. Consider using ALTER DATABASE to set a smaller FILEGROWTH for this file.</span></em></p>
<p>Whenever data or log file growth operation is taking lot of time then a wait type <a href="http://techyaz.com/sql-server/reduce-wait-type-preemptive_os_writefilegather/" target="_blank" rel="noopener">PREEMPTIVE_OS_WRITEFILEGATHER</a> will be shown in to SQL Server. If you want to read more about this wait type then click at the attached link.<strong> </strong></p>
<h3><span style="color: #333399;">Root Cause</span></h3>
<p>Data and log file initialization takes lot of time if you have to create large database files or large data or log file growth will be performed. Whenever we allocate or extend space to data or log file, it first fills with zeros. Zeroing operation takes lot of time for bigger size autogrowth operations that causes for longer run to complete. We generally see these messages (5144 or 5145) during either extending the data or transaction log files or during autogrowth operation for data or log files.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1637 alignleft" src="http://techyaz.com/wp-content/uploads/2018/01/Fix-msg-5144-5145-min.png" alt="fix msg 5144 and 5145" width="560" height="315" srcset="https://techyaz.com/wp-content/uploads/2018/01/Fix-msg-5144-5145-min.png 560w, https://techyaz.com/wp-content/uploads/2018/01/Fix-msg-5144-5145-min-300x169.png 300w" sizes="auto, (max-width: 560px) 100vw, 560px" /></p>
<p>Microsoft has given a solution named <a href="http://techyaz.com/sql-server/instant-file-initialization-enable-on-sql-server-instance/" target="_blank" rel="noopener">Instant File Initialization</a> to fix the time consuming file size allocation for data files. Once Instant File Initialization will be enabled, your data files size allocation will be done in faster way but unfortunately Instant File Initialization does not work on transaction log files.  <strong>Instant file initialization</strong> reclaims used disk space without filling that space with zeros. Instead, disk content is overwritten as new data is written to the files. Read below section to overcome these error messages.</p>
<h3><span style="color: #333399;">Solution</span></h3>
<p>To avoid these messages 5144 or 5145 to be logged, we should plan file size growth carefully. We should set maximum size of the database so that it could not perform frequent autogrowth operation. We can enable Instant File Initialization feature to speed up the data file size allocation. It is not recommended to rely on autogrowth of files as standard operation for obtaining more space in a file. Rather, you should plan out the maximum size of your database and/or transaction log file and allow autogrowth to occur only in unplanned situations for space. Follow below points to avoid this error.</p>
<ul>
<li>Enable Instant File Initialization to speed up data file size allocation. Read attached article to <a href="http://techyaz.com/sql-server/instant-file-initialization-enable-on-sql-server-instance/" target="_blank" rel="noopener">enable IFI (Instant File Initialization) on your database server</a>.</li>
<li>As IFI (Instant File Initialization) does not work on log files so we need to set log files in smaller chunks to avoid any time out error or longer runs.</li>
<li>Set database size to the maximum size it could be and allow autogrowth settings to occur only in unplanned situations for space.Read attached article to <a href="http://techyaz.com/sql-server/understanding-database-autogrowth-sql-server/" target="_blank" rel="noopener">understand Autogrowth setting and its perfect value for database files.</a></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><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><span style="color: #0000ff;"><strong><a style="color: #0000ff;" href="http://techyaz.com/sql-server/troubleshooting/manage-transaction-log-file-during-data-load/" target="_blank" rel="noopener">Manage Transaction Log File during Data Load</a></strong></span></li>
<li><span style="color: #0000ff;"><strong><a style="color: #0000ff;" href="http://techyaz.com/sql-server/improve-sql-server-bulk-data-import-performance/" target="_blank" rel="noopener">How to Improve Bulk Data Load Performance?</a></strong></span></li>
<li><span style="color: #0000ff;"><strong><a style="color: #0000ff;" href="http://techyaz.com/sql-server/reduce-wait-type-preemptive_os_writefilegather/" target="_blank" rel="noopener">How to Reduce SQL Server Wait type PREEMPTIVE_OS_WRITEFILEGATHER?</a></strong></span></li>
<li><span style="color: #0000ff;"><strong><a style="color: #0000ff;" href="http://techyaz.com/sql-server/always-turn-off-database-auto-shrink/" target="_blank" rel="noopener">Why Should You Always Turn Off Database Auto Shrink Property?</a></strong></span></li>
<li><span style="color: #0000ff;"><strong><a style="color: #0000ff;" href="http://techyaz.com/sql-server/troubleshooting/fix-error-3023-error-3013-error-3041/" target="_blank" rel="noopener">Fix Error 3023: Shrink failed for Log file</a></strong></span></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/">Fix SQL Server Msg 5144 and 5145 for long or failed autogrow of data and log files</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/troubleshooting/fix-msg-5144-and-5145-for-long-or-failed-autogrow/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
