<?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>HowTO - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/howto/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>HowTO - 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>Seven Computer Efficiency Tips for Less Experienced Users</title>
		<link>https://techyaz.com/miscellaneous/seven-computer-efficiency-tips-for-less-experienced-users/</link>
					<comments>https://techyaz.com/miscellaneous/seven-computer-efficiency-tips-for-less-experienced-users/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
		<pubDate>Mon, 04 Oct 2021 07:09:29 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[HowTO]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2755</guid>

					<description><![CDATA[<p>Learn this article to get computer efficiency Tips in case you are less experienced user. As a relatively new computer user, you might find yourself unhappy with how you are using the device. It takes longer to carry out certain&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/miscellaneous/seven-computer-efficiency-tips-for-less-experienced-users/">Seven Computer Efficiency Tips for Less Experienced Users</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" width="2048" height="1365" class="wp-image-2756" src="https://techyaz.com/wp-content/uploads/2021/10/word-image.jpeg" srcset="https://techyaz.com/wp-content/uploads/2021/10/word-image.jpeg 2048w, https://techyaz.com/wp-content/uploads/2021/10/word-image-300x200.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1024x683.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/10/word-image-768x512.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1536x1024.jpeg 1536w" sizes="auto, (max-width: 2048px) 100vw, 2048px" /></p>
<p>Learn this article to get computer efficiency Tips in case you are less experienced user. As a relatively new computer user, you might find yourself unhappy with how you are using the device. It takes longer to carry out certain tasks than you expect, or the computer is not responding to some of your commands.</p>
<p>Some people can afford to learn things at their own pace, but it does not apply to everyone. For others, it is necessary to master the computer as soon as possible because it is one of the work requirements.</p>
<p>Having a solid foundation is a good approach to overcome this issue. If you were to focus on learning some basic things about computer efficiency and build your experience from there, the process should not take as long.</p>
<h3><strong>Remote Usage</strong></h3>
<p>Let’s start with using a computer remotely. There may be a time when you are away and want to check something on your laptop. Or, one of your coworkers might ask for access to the computer.</p>
<p>Figuring out how to <a href="https://setapp.com/how-to/how-to-access-your-mac-remotely">remote connect to mac</a> or another laptop is not that hard. You will need a tool and a device, such as a smartphone or another computer, that you will be using to access the laptop.</p>
<p>Of course, it is also important to grant access to third-party access to a computer and secure the connection so that it does not get intercepted by an unwanted attack. Keep that in mind.</p>
<h3><strong>Keyboard Shortcuts</strong></h3>
<p><img loading="lazy" decoding="async" width="2048" height="1365" class="wp-image-2757" src="https://techyaz.com/wp-content/uploads/2021/10/word-image-1.jpeg" srcset="https://techyaz.com/wp-content/uploads/2021/10/word-image-1.jpeg 2048w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1-300x200.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1-1024x683.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1-768x512.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/10/word-image-1-1536x1024.jpeg 1536w" sizes="auto, (max-width: 2048px) 100vw, 2048px" /></p>
<p>How well one uses keyboard shortcuts is one of the best ways to determine whether they are good at computer efficiency. Sure, the overall keyboard typing speed is also a good metric, but the more shortcuts someone knows, the more well-versed they are.</p>
<p>The problem for newbies is that if they were to look at the list of available keyboard shortcuts for computers, the sheer number would likely overwhelm them.</p>
<p>Having said that, it is still worthwhile to put your finger memory to use and learn some keyboard shortcuts. Focus on sequences you find the most useful and slowly improve your repertoire from there.</p>
<h3><strong>Available Software</strong></h3>
<p>It would be a waste not to use the available software. Whether you are on macOS, Windows, or another operating system, there should be plenty of different tools to make your work and overall computer experience better.</p>
<p>For instance, you might be working with emails and outreach, and managing emails manually is too hard. You can incorporate some automation tools to send or respond to emails. Doing so will help you manage <a href="https://techyaz.com/learning/13-email-management-best-practices-to-manage-inbox-effectively/">email inboxes</a> more efficiently.</p>
<h3><strong>Optimal Performance</strong></h3>
<p>As a rule of thumb, you will not have a good time on a computer that freezes, crashes, or takes a lot of time to launch and load applications.</p>
<p>Figure out what is causing these problems and determine whether you can solve them yourself. If there is not enough free space on the drive, you can delete redundant files and free it up. If there are too many background processes, quit them and If there is too much desktop clutter, remove shortcuts and documents on the computer’s desktop.</p>
<p>Malware and viruses also need attention. A computer needs antivirus software that can detect and delete threats.</p>
<p>More severe issues, such as beeping noises, overheating, a flickering screen, or error messages should be left to someone who knows what they are doing.</p>
<h3><strong>Accessories</strong></h3>
<p><img loading="lazy" decoding="async" width="2048" height="1365" class="wp-image-2758" src="https://techyaz.com/wp-content/uploads/2021/10/word-image-2.jpeg" srcset="https://techyaz.com/wp-content/uploads/2021/10/word-image-2.jpeg 2048w, https://techyaz.com/wp-content/uploads/2021/10/word-image-2-300x200.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/10/word-image-2-1024x683.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/10/word-image-2-768x512.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/10/word-image-2-1536x1024.jpeg 1536w" sizes="auto, (max-width: 2048px) 100vw, 2048px" /></p>
<p>Other than mice and keyboards, computers have other great accessories that can come in handy and help you with efficiency.</p>
<p>Those who have a laptop should appreciate a cooling pad to counter the overheating issue. A laptop stand is also worth a shout.</p>
<p>For desktop computers, it might be difficult to create a comfortable setup without a monitor stand. A microphone and webcam could come in handy as well.</p>
<p>Then you have things like computer chairs. Instead of a cheap chair you have right now, purchase one that properly supports your back and makes the overall computer experience that much better.</p>
<h3><strong>Hardware</strong></h3>
<p>In case you have a somewhat outdated computer with lackluster hardware, you could consider investing some money and getting an upgrade. For example, additional memory or a new GPU would make a significant difference.</p>
<p>Replacing hard drives with <a href="https://www.pcmag.com/news/ssd-vs-hdd-whats-the-difference">solid-state drives</a> is also popular right now. SSDs may not have as much storage as HDDs (not yet, anyway), but they are far superior performance-wise.</p>
<h3><strong>Integrated Features</strong></h3>
<p>Keep an eye on some integrated features that could make a difference. Some computers and operating systems come with dictation features that let you record a text using your voice instead of typing a keyboard.</p>
<p>Another instance of an integrated feature could be digital signatures on macOS. You can create a signature via Preview and use it in PDF documents. A digital signature saves time when you do not have to sign every document yourself.</p>
<p>The post <a href="https://techyaz.com/miscellaneous/seven-computer-efficiency-tips-for-less-experienced-users/">Seven Computer Efficiency Tips for Less Experienced Users</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/miscellaneous/seven-computer-efficiency-tips-for-less-experienced-users/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>How to Change Session Timeout for Availability Group Replica</title>
		<link>https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/</link>
					<comments>https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 17:44:39 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Connection Issue]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[HowTO]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2615</guid>

					<description><![CDATA[<p>Sometimes we get alwayson connection timeout errors on availability group replicas. Always on Connection timeout or alwayson session timeout is same and must be configured as per Microsoft recommendation. SQL Server Session timeout for availability replica is the time (in&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/">How to Change Session Timeout for Availability Group Replica</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Sometimes we get alwayson connection timeout errors on availability group replicas. Always on Connection timeout or alwayson session timeout is same and must be configured as per Microsoft recommendation. SQL Server Session timeout for availability replica is the time (in seconds) an availability replica will wait to get a ping response from connected replica before considering the connection as failed. </p>



<p>The connection timeout setting in AOAG applies only to identified secondary replica and its respective primary replica. Each secondary replica has its different session timeout value which works between the given replica and its primary replica. The default value for session timeout configuration is 10 seconds. Microsoft recommends to keep this setting value to 10 seconds or more to prevent system missing pings and false failure alerts.</p>



<h2 class="wp-block-heading">Change Session Timeout for Availability Replica</h2>



<p>This section will explain how to change or modify connection or session timeout value for an AOAG availability replica. This is needed sometimes if you are frequently getting connection timeout errors for your availability replicas. I will show two ways to modify session timeout in always on availability group. One is by using SQL Server Management Studio and another one by using T-SQL statement.</p>



<h3 class="wp-block-heading">Modify Alwayson Connection Timeout using SQL Server Management Studio</h3>



<p>Make sure you have connected to your SQL Server Instance which is hosting primary replica of always on availability group configuration. Follow below steps to change session timeout or connection timeout for identified availability replica where you are facing connection timeout errors 35206 or 35201.</p>



<ul class="wp-block-list"><li>Launch SQL Server Management Studio and connect to the primary replica</li><li>Expand folders once you connected to the primary replica instance. Click at plus sign to expand Always on High Availability node followed by Availability Groups node.</li><li>Identify and click the availability group for which you have to configure connection timeout for one of its availability replica</li><li>Identify the availability replica for which you have to change this value. Right click at this replica and click at Properties option to launch its properties page</li><li>You can see Session timeout (seconds)&nbsp;option In the&nbsp;Availability Replica Properties&nbsp;dialog box. Use Session timeout (seconds)&nbsp;option to change the number of seconds for the session timeout period on this replica. Always keep it 10 or more as per your specific need. </li></ul>



<p>We have successfully changed alwayson connection timeout for an availability replica using SQL Server management studio in above steps. Now, i will show you T-SQL approach to get this done in below section.</p>



<h3 class="wp-block-heading">Change Alwayson Connection Timeout using T-SQL Statement</h3>



<p>Here, i will show you how to change session timeout for an availability replica using T-SQL statement.</p>



<ul class="wp-block-list"><li>Launch SQL Server Management Studio and connect to the primary replica.</li><li>Open New Query window and run below ALTER AVAILABILITY GROUP statement.</li></ul>



<p class="has-text-align-left has-black-color has-text-color"><strong>ALTER AVAILABILITY GROUP&nbsp;<em>group_name</em></strong></p>



<p class="has-text-align-left has-black-color has-text-color"><strong>MODIFY REPLICA ON &#8216;<em>instance_name</em>&#8216; WITH ( SESSION_TIMEOUT =<em>seconds</em>&nbsp;)</strong></p>



<p>Make sure to replace <em>group_name</em> with your availability group name, <em>instance_name</em> with your secondary replica name for which you want to change session timeout value and <em>seconds</em> with appropriate time in seconds.</p>



<p>Once you will execute above statement, connection timeout value will change as per your specified value for your availability replica. Now, you can go ahead and monitor the connection timeout errors to see whether your issue has been fixed or not.</p>



<p>Here, i have explained how to modify or change session timeout for an always on availability group replica.</p>



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



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/sql-server-alwayson-interview-questions-answers/" target="_blank" rel="noreferrer noopener">SQL Server Alwayson Interview Questions &amp; Answers</a> </strong></li><li><strong><a href="https://techyaz.com/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/understanding-sql-server-backup-databases-availability-group/" target="_blank" rel="noreferrer noopener">Understanding Backup Preferences for AlwaysOn Availability Group Databases</a></strong></li></ul>



<p></p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/">How to Change Session Timeout for Availability Group Replica</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/alwayson/change-session-timeout-for-availability-group-replica/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Data File to Availability Database?</title>
		<link>https://techyaz.com/sql-server/alwayson/how-to-add-data-file-to-availability-database/</link>
					<comments>https://techyaz.com/sql-server/alwayson/how-to-add-data-file-to-availability-database/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 11 Jul 2018 03:49:25 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[availability group]]></category>
		<category><![CDATA[data file]]></category>
		<category><![CDATA[HowTO]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2418</guid>

					<description><![CDATA[<p>Sometimes, we need to add data file to availability database in Always on Availability Group. Adding database file is a straight forward method but if your databases participate in Always on Availability group then you need to take extra care&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/how-to-add-data-file-to-availability-database/">How to Add Data File to Availability Database?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes, we need to add data file to availability database in Always on Availability Group. Adding database file is a straight forward method but if your databases participate in Always on Availability group then you need to take extra care while planning or performing such activity. If you add data file to availability database on primary replica without planning then your secondary databases in availability group might get into “<em>Not Synchronizing</em>” state  irrespective of having identical drives and folder structure on all your replica servers.</p>
<p>If your drive letters or folder structures are identical on all replica servers then most of the time you will not face any issue while adding the database files but sometimes if you mount additional drive on all replicas to make it identical and then add data file in this new drive then you might face the issue. If all replica servers don’t have identical path then adding database file operation on primary replica will not successfully replicate to other replica servers because of different drive and folder structure. This, in turn, causes the secondary replica to enter the NOT SYNCHRONIZING state.</p>
<p><strong>Note:</strong> <em>Always try to keep drive and folder structure identical on all secondary replica servers to the corresponding primary replica.</em></p>
<p>If you have added a data file on primary database of Always on Availability group then you will see multiple errors logged in SQL Server error log on your secondary replica where secondary database is suspended from always on availability group and showing in “Not Synchronizing” state. You might see one of the below error codes in your log file.</p>
<p><span style="color: #ff0000;"><em>Error:5123, Severity:16, State:1.</em></span><br />
<span style="color: #ff0000;"><em>CREATE FILE encountered operating system error 3(The system cannot find the path specified.) while attempting to open or create the physical file ‘E:\MSSQL\Data\Techyaz_Data2.ndf’.</em></span></p>
<p>Or</p>
<p><span style="color: #ff0000;"><em>Error:5183, Severity:16, State:1.</em></span><br />
<span style="color: #ff0000;"><em>Cannot create the file “Techyaz_Data2”. Use WITH MOVE to specify a usable physical file name. Use WITH REPLACE to overwrite an existing file.</em></span></p>
<p>Or</p>
<p><em><span style="color: #ff0000;">Error: 3313, Severity: 21, State: 2.</span></em><br />
<em><span style="color: #ff0000;">During redoing of a logged operation in database ‘Techyaz’, an error occurred at log record ID (76:659:1).</span></em></p>
<p>Now i will describe how to fix such issues or how to plan and add a database file to always on availability databases.</p>
<h3><span style="color: #333399;">Add Data file to Availability Database</span></h3>
<p>If you have already added data file on primary database and your secondary databases are suspended from availability group then we need to fix it to reestablish always on availability group. If you have not added the data file and want to add it then you can keep reading this article as i have described it later in this article. I have described how to plan database file addition to avoid any future synchronization issue.</p>
<p>Let’s go ahead with the first option where you have already added the data file to primary availability database and secondary database status is showing as not synchronizing due to this change. Now we need to fix this issue to reestablish the synchronization between replicas of availability group. To resolve this problem the DBAs  must complete the following steps:</p>
<ol>
<li>Remove the secondary database from the availability group that is showing as &#8220;<em>Not Synchronizing&#8221;</em>. To do this, either you can use GUI method in SSMS or run below T-SQL statement. You can connect to secondary replica then you can expand <strong>Always On High Availability </strong>node followed by <strong>Availability Groups</strong> Now, select the availability group and then expand the <strong>Availability Databases</strong> node. To remove a single database, select it in either the <strong>Object Explorer</strong> pane or the <strong>Object Explorer Details</strong> pane. Right-click the selected database or databases, and select <strong>Remove Secondary Database</strong> in the command menu. If you want to do it using T-SQL statement then you must connect to secondary replica and execute below Alter command.</li>
</ol>
<pre style="padding-left: 60px;"><span style="color: #0000ff;"><strong>ALTER DATABASE Techyaz SET HADR OFF;  </strong></span>
<strong><span style="color: #0000ff;">GO</span> </strong></pre>
<ol start="2">
<li>Once database will be removed from AOAG, restore a full backup of the filegroup that contains the added file to the secondary database, using WITH <em>NORECOVERY</em> and <em>WITH MOVE</em> option. This option is mandatory if you don’t have any log backups. Although sometimes you can do it by only running log backup on primary replica and restore it on secondary replica in norecovery mode as mentioned in next step.</li>
<li>Now, back up the transaction log that contains the add-file operation on the primary database, and manually restore the log backup on the secondary database using WITH <em>NORECOVERY</em> and <em>WITH MOVE</em>.</li>
<li>Prepare the secondary database for re-joining the availability group, by restoring, WITH NO RECOVERY, any other outstanding log backups from the primary database.</li>
<li>Rejoin the secondary database to the availability group. Read this article to get <a href="https://techyaz.com/sql-server/add-database-availability-group/" target="_blank" rel="noopener">step by step method to add a database to availability group</a>.</li>
</ol>
<p>If you havenot added the data file then you can plan it with following steps.</p>
<ol>
<li>Remove the database from secondary replica as described in above section. Now, secondary database will be showing in to restoring state.</li>
<li>Add the data file to your availability database on primary replica.</li>
<li>Take a log backup of this availability database on primary replica.</li>
<li>Copy this log backup to secondary replica and restore it on its corresponding secondary replica using NORECOVERY and WITH MOVE option.</li>
<li>Now add the database back to always on Availability Group.</li>
</ol>
<p>Here, I have shown you step by step process to add data file to availability database. I have also let you know how to fix the issues that might arise due to adding the database files to availability database on primary replica. 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/alwayson/upgrade-or-patch-sql-server-failover-cluster-instance-with-availability-group/" target="_blank" rel="noopener">Upgrade or Patch SQL Server Failover Cluster Instance Running with Availability Group</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/enhanced-database-failover-in-availability-group/" target="_blank" rel="noopener">Understanding Enhanced Database Failover in Always on Availability Group</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/change-failover-mode-of-availability-replica-in-always-on-availability-group/" target="_blank" rel="noopener">How to Change Failover Mode of Availability Replica in AOAG?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/sql-server-alwayson-interview-questions-answers/" target="_blank" rel="noopener">Always ON Availability Group Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/how-to-add-data-file-to-availability-database/">How to Add Data File to Availability Database?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/alwayson/how-to-add-data-file-to-availability-database/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>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>How to Find When SQL Server was Installed?</title>
		<link>https://techyaz.com/sql-server/find-when-sql-server-was-installed/</link>
					<comments>https://techyaz.com/sql-server/find-when-sql-server-was-installed/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sun, 08 Apr 2018 09:36:05 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[logins]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2070</guid>

					<description><![CDATA[<p>Have you ever thought when SQL Server instance was installed on your machine? If you don&#8217;t have idea about finding SQL Server installation date then you should keep reading this article where i have described how to know when SQL&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/find-when-sql-server-was-installed/">How to Find When SQL Server was Installed?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Have you ever thought when SQL Server instance was installed on your machine? If you don&#8217;t have idea about finding SQL Server installation date then you should keep reading this article where i have described how to know when SQL Server was installed on your database server?</p>
<p>There are many ways to check SQL Server installation date on your machine. Here i am going to discuss two popular methods that we can use easily to get install date of SQL Server. Let’s go one by one in step by step process.</p>
<h3><span style="color: #333399;">Method 1</span></h3>
<p>As we know whenever we install SQL Server, a SQL Server Agent job named <strong><em>“syspolicy_purge_history”</em></strong> got created. The install date of SQL Server instance will be same as the create date of this job because this job was created during SQL Server installation. So, if you need to find when SQL Server was installed on your database server then you can get it by create date info of above job. Follow below steps to get the details.</p>
<p>You can expand <em>SQL Server Agent</em> folder in SSMS and then <em>Jobs</em> folder. Here you can see this job. We can launch <em>Properties</em> window of job <strong><em>“syspolicy_purge_history”</em></strong> or you can query msdb database to get the details of this job. Here, I have launched Properties windows of this job and we can see the create date of this job is below screenshot. It means this SQL Server Instance was installed on 27<sup>th</sup> July 2017 as showing as create date of below job.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2071" src="http://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min.jpg" alt="Get SQL Server Installation Date" width="705" height="635" srcset="https://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min.jpg 705w, https://techyaz.com/wp-content/uploads/2018/04/1_agentjob-min-300x270.jpg 300w" sizes="auto, (max-width: 705px) 100vw, 705px" /></p>
<h3><span style="color: #333399;">Method 2</span></h3>
<p>Another method to get SQL Server install date on your database server is by using SQL Server system logins. These system logins get created when we install SQL Server. Some of the system logins are <em>NT SERVICE\SQLWriter, NT Service\MSSQLSERVER, NT AUTHORITY\SYSTEM and NT AUTHORITY\NETWORK SERVICE</em>. You can also see some of the system logins that starts with hash <strong>#</strong> like <em>##MS_Policy*****</em> etc. As I said these logins get created during SQL Server installation so to get SQL Server installation date we can check the create date of any such logins.</p>
<p>You can run below commands to check the create date of any of system logins. I have executed below commands to check create date of three system logins.</p>
<pre><span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT SERVICE\SQLWriter'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span>

<span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT Service\MSSQLSERVER'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span>

<span style="color: #0000ff;"><strong>SELECT name, create_date</strong></span>
<span style="color: #0000ff;"><strong>FROM sys.server_principals</strong></span>
<span style="color: #0000ff;"><strong>WHERE name='NT AUTHORITY\SYSTEM'</strong></span>
<span style="color: #0000ff;"><strong>GO</strong></span></pre>
<p>We can see create date of all above SQL Server system logins are same as the create date of system job &#8220;<strong><em>syspolicy_purge_history&#8221; </em></strong>that is described in method 1. So, SQL Server install date on this database server was 27<sup>th</sup> July 2017 as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2072" src="http://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min.jpg" alt="Get SQL Server Installation date using system logins" width="577" height="418" srcset="https://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min.jpg 559w, https://techyaz.com/wp-content/uploads/2018/04/2-systemaccounts-min-300x217.jpg 300w" sizes="auto, (max-width: 577px) 100vw, 577px" /></p>
<p>You can also get SQL Server install date by getting update date of system account <em><strong>sa</strong></em>. As we have disabled <em><strong>sa</strong> </em>account as part of SQL Server hardening so last update was captured when we disabled this account. But this does not show correct info always because if anybody has enabled this account and again disabled it then this will give you inaccurate information but you can use this information to compare the update date information with the create date of other logins and jobs. This will help you in identifying the install date of SQL Server in more accurate manner.</p>
<pre><strong><span style="color: #0000ff;">SELECT *</span></strong>
<strong><span style="color: #0000ff;">FROM syslogins</span></strong>
<strong><span style="color: #0000ff;">WHERE name='sa'</span></strong>
<strong><span style="color: #0000ff;">GO</span></strong>

<strong><span style="color: #0000ff;">SELECT *</span></strong>
<strong><span style="color: #0000ff;">FROM sys.server_principals</span></strong>
<strong><span style="color: #0000ff;">WHERE name='NT AUTHORITY\SYSTEM'</span></strong>
<strong><span style="color: #0000ff;">GO</span></strong></pre>
<p>You can see the update date of <em><strong>sa</strong></em> account and create date of the another system login shows same date that is also the SQL Server Installation date.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-large wp-image-2073" src="http://techyaz.com/wp-content/uploads/2018/04/3_sa-min-1024x307.jpg" alt="update date of sa account" width="1024" height="307" srcset="https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-1024x307.jpg 1024w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-300x90.jpg 300w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min-768x230.jpg 768w, https://techyaz.com/wp-content/uploads/2018/04/3_sa-min.jpg 1071w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></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:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/troubleshooting/sql-server-evaluation-period-has-expired-and-how-to-upgrade-it/" target="_blank" rel="noopener">SQL Server Evaluation Period has Expired and How to Upgrade it?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/create-logon-trigger-restrict-sysadmin-logins-connect-sql-server-given-time-interval/" target="_blank" rel="noopener">Create a Logon Trigger to Restrict sysadmin logins to Connect to SQL Server during a given time Interval</a></strong></li>
<li><strong><a href="http://techyaz.com/category/interview-questions/sql-server-interview-questions/">SQL Server Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/find-when-sql-server-was-installed/">How to Find When SQL Server was Installed?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/find-when-sql-server-was-installed/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>
	</channel>
</rss>
