<?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>Techyaz.com</title>
	<atom:link href="https://techyaz.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://techyaz.com/</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</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>Techyaz.com</title>
	<link>https://techyaz.com/</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>How to fix SQL Error 1064: You have an error in your SQL syntax</title>
		<link>https://techyaz.com/sql/fix-sql-error-1064/</link>
					<comments>https://techyaz.com/sql/fix-sql-error-1064/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Sat, 08 Apr 2023 08:44:15 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2767</guid>

					<description><![CDATA[<p>Are you struggling with SQL Error 1064 while working with MySQL or other SQL statements? Don&#8217;t worry, you&#8217;re not alone! SQL Error 1064 is one of the most common errors encountered by developers and database administrators when working with MySQL&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql/fix-sql-error-1064/">How to fix SQL Error 1064: You have an error in your SQL syntax</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Are you struggling with SQL Error 1064 while working with MySQL or other SQL statements? Don&#8217;t worry, you&#8217;re not alone! SQL Error 1064 is one of the most common errors encountered by developers and database administrators when working with MySQL databases. But fear not, in this comprehensive guide, we will walk you through the process of fixing this error step-by-step, so you can get your database back up and running in no time.</p>



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



<p>SQL Error 1064 is a syntax error that occurs when you execute an SQL query with incorrect syntax. It&#8217;s a common mistake that can happen to anyone, regardless of their level of expertise in SQL or MySQL. The error message typically looks something like this:</p>



<p><em>&#8220;Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;&#8230;&#8217; at line &#8230;&#8221;</em></p>



<p>Next, we will understand why we get this SQL syntax error and what steps we can take to fix or avoid it.</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/fix-sql-error-1064.jpg" alt="Fix sql syntax error: SQL error 1064" class="wp-image-2770" width="324" height="218" srcset="https://techyaz.com/wp-content/uploads/2023/04/fix-sql-error-1064.jpg 781w, https://techyaz.com/wp-content/uploads/2023/04/fix-sql-error-1064-300x202.jpg 300w, https://techyaz.com/wp-content/uploads/2023/04/fix-sql-error-1064-768x516.jpg 768w" sizes="auto, (max-width: 324px) 100vw, 324px" /></figure></div>


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



<p>This error can be frustrating, but the good news is that it&#8217;s usually easy to fix once you identify the cause. Here&#8217;s how you can go about fixing SQL Error 1064:</p>



<ol class="wp-block-list" type="1">
<li><strong>Double-check your SQL query: </strong>The first step in fixing SQL Error 1064 is to thoroughly review your SQL query. Check for any typographical errors, missing or misplaced keywords, and incorrect syntax. Make sure that all the SQL statements in your query are properly terminated with semicolons, and that you have used the correct quotation marks (single or double) for string literals.</li>



<li><strong>Review reserved keywords: </strong>MySQL has reserved keywords that have special meanings in SQL queries. If you inadvertently use a reserved keyword as a column or table name in your query without properly escaping it, you may encounter SQL Error 1064. To fix this, either choose a different name for your column or table, or enclose the reserved keyword in backticks (`) to escape it.</li>



<li><strong>Check for mismatched parentheses or quotes:</strong> Another common cause of SQL Error 1064 is mismatched parentheses or quotes. Make sure that all opening and closing parentheses and quotes in your query are properly balanced. If you have multiple levels of nested parentheses, it&#8217;s easy to miss a closing parenthesis, causing a syntax error. Similarly, ensure that all quotes used in your query are properly paired, whether they are single or double quotes.</li>



<li><strong>Verify table and column names: </strong>Check that you have used the correct table and column names in your query. Make sure that the names are spelled correctly, and that they match the actual names of your database objects. If you are using aliases for table or column names, ensure that they are used consistently throughout your query.</li>



<li><strong>Validate data types and values: </strong>If you are inserting or updating data in your MySQL database, verify that you are using the correct data types and values for your columns. For example, if you are inserting a string value into a numeric column, or vice versa, you may encounter this SQL Syntax Error 1064. Make sure that the data types of your columns match the values you are trying to insert or update.</li>



<li><strong>Use a SQL editor or IDE: </strong>Working with a SQL editor or Integrated Development Environment (IDE) can greatly help in identifying syntax errors. These tools often provide syntax highlighting, code completion, and error checking features that can help you spot and fix SQL errors more easily.</li>



<li><strong>Consult the MySQL documentation: </strong>If you&#8217;re still unable to identify the cause of this SQL syntax error, consult the official SQL documentation in case you are using MySQL database. MySQL has extensive documentation that provides comprehensive information on SQL syntax, reserved keywords, data types, and other topics. You can search the documentation for specific keywords or browse through the documentation to learn more about SQL syntax and best practices</li>



<li><strong>Test your SQL query:</strong> If you are still encountering SQL error 1064, try executing your query in a controlled test environment, such as a local development server or a database sandbox, to isolate and identify the issue. You can also try breaking down your query into smaller parts and testing them individually to identify the specific portion of the query that is causing the error.</li>
</ol>



<p>If you are unable to fix the SQL error 1064 on your own, you may need to seek assistance from a database administrator (DBA) or a knowledgeable colleague who has experience with SQL queries and SQL syntax errors.</p>



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



<ul class="wp-block-list">
<li><a href="https://techyaz.com/learning/prepare-for-job-interview/" target="_blank" rel="noreferrer noopener">How to Prepare for a Job Interview?</a></li>



<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>
</ul>
<p>The post <a href="https://techyaz.com/sql/fix-sql-error-1064/">How to fix SQL Error 1064: You have an error in your SQL syntax</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql/fix-sql-error-1064/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>Managing iCloud Storage More Efficiently</title>
		<link>https://techyaz.com/miscellaneous/managing-icloud-storage-more-efficiently/</link>
					<comments>https://techyaz.com/miscellaneous/managing-icloud-storage-more-efficiently/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 09:36:27 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[icloud storage]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2741</guid>

					<description><![CDATA[<p>Most cloud storage services offer a certain amount of free space. Managing iCloud Storage can be rather difficult. On the surface, 5GB that Apple offers for free seems pretty decent, right? Well, user stance changes once they realize that these&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/miscellaneous/managing-icloud-storage-more-efficiently/">Managing iCloud Storage More Efficiently</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone wp-image-2742" src="https://techyaz.com/wp-content/uploads/2021/08/word-image-3.jpeg" alt="Managing iCloud Storage" width="1600" height="1000" srcset="https://techyaz.com/wp-content/uploads/2021/08/word-image-3.jpeg 1600w, https://techyaz.com/wp-content/uploads/2021/08/word-image-3-300x188.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/08/word-image-3-1024x640.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/08/word-image-3-768x480.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/08/word-image-3-1536x960.jpeg 1536w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></p>
<p>Most cloud storage services offer a certain amount of free space. Managing iCloud Storage can be rather difficult. On the surface, 5GB that Apple offers for free seems pretty decent, right? Well, user stance changes once they realize that these 5 gigabytes are per account rather than the device.</p>
<p>If you own multiple Apple devices, including a MacBook, iPhone, and iPad, you might run out of available iCloud storage sooner than you expect.</p>
<p>Sure, there is an option to pick a different <a href="https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/">cloud storage</a> provider in addition to already having iCloud, but managing files on different services can be pretty difficult.</p>
<p>As for signing up for a monthly plan that gives extra storage, that is not a possibility for everyone because not all can afford to pay a fee every month for iCloud storage.</p>
<p>Thankfully, there are ways to manage your iCloud account more efficiently, even if you are stuck with those 5 gigabytes of storage.</p>
<p><strong>Method #1 – Avoid Backing Up Data Too Often</strong></p>
<p>Let’s start with an obvious one—<a href="https://gizmodo.com/all-the-best-ways-to-back-up-your-data-1796291120">backing up data</a>. Whether you are on your Mac, iPhone, or iPad, you should get in the habit of backing up device files regularly. And since using Time Machine and other backup tools is time-consuming, people are looking for simpler options. And cloud storage is one of these options.</p>
<p>It is also worth mentioning that non-digital data backups require a storage device, such as an external HDD or a USB flash drive. Another reason to use clouds and focus on managing iCloud storage.</p>
<p>So when there are only 5 gigabytes of iCloud storage, backing up the system or individual applications will lead to a lack of storage in no time. If there are important files you want to copy for safekeeping, iCloud is probably not an option unless the number of files is not that large.</p>
<p><strong>Method #2 – Minimize Your Photo Library</strong></p>
<p><img loading="lazy" decoding="async" width="1600" height="1066" class="wp-image-2743" src="https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall.jpeg" alt="A person holding a phone

Description automatically generated with low confidence" srcset="https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall.jpeg 1600w, https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall-300x200.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall-1024x682.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall-768x512.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/08/a-person-holding-a-phone-description-automaticall-1536x1023.jpeg 1536w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></p>
<p>It is no secret that taking photos with an iPhone or iPad is popular. Moreover, the picture quality continues to improve with new and improved mobile devices. And as the quality improves, the photo quality increases as well.</p>
<p>Syncing photos with iCloud and transferring them there after you take the photos is a common practice. Over time, the number of photos can grow and take a significant amount of iCloud storage, which makes managing iCloud storage difficult. You also have to consider duplicate photos you might take accidentally.</p>
<p><strong>Method #3 – Delete Old Messages</strong></p>
<p>One would not expect that texts take a lot of space, right? Well, you might be surprised, especially if you are an avid texter who exchanges messages with friends and family often.</p>
<p>It is not just the text itself that requires storage. Attachments, such as photos one includes in a message, are also part of it. Keep it in mind the next time you are about to exchange messages with someone on your iPhone.</p>
<p><strong>Method #4 – Manage Mail Attachments</strong></p>
<p>The Mail app is another example of how a seemingly insignificant application you use on your devices might cause more problems than expected.</p>
<p>If you connect iCloud with Mail, the emails you receive might take a lot of iCloud space—another hindrance for managing iCloud storage properly. But it is not just emails themselves. Attachments are the biggest source of the issue in this case. Be it work emails, spam, exchanges with friends, and newsletters you are subscribed to are just a few examples.</p>
<p><strong>Method #5 – Delete Unnecessary iCloud Junk</strong></p>
<p>If you have been using iCloud for a while, you should take a closer look into your account. Scan through different folders, and you are bound to discover files that are no longer of use to you.</p>
<p>For instance, if you have been keeping information about websites that you want to visit later and wrote the list in a text document, you can simply bookmark pages on your computer’s internet browser instead.</p>
<p>There might be video game save files you forgot about. If you have already finished a video game, keeping these save files makes little sense. If you remove them, it will do good for managing iCloud storage.</p>
<p>Go through the iCloud account thoroughly and remove any files that you deem unnecessary. And when you finish removing the junk, you should notice an increase in the overall free storage.</p>
<p><strong>Method #6 – Transfer Some Files Back to Apple Devices</strong></p>
<p><img loading="lazy" decoding="async" width="1600" height="1066" class="wp-image-2744" src="https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic.jpeg" alt="A picture containing indoor

Description automatically generated" srcset="https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic.jpeg 1600w, https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic-300x200.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic-1024x682.jpeg 1024w, https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic-768x512.jpeg 768w, https://techyaz.com/wp-content/uploads/2021/08/a-picture-containing-indoor-description-automatic-1536x1023.jpeg 1536w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></p>
<p>The last bit of advice is about taking a different approach. Instead of keeping up some files on iCloud, you should transfer certain data to your Apple devices.</p>
<p>It is true that looking at <a href="https://macpaw.com/how-to/clean-up-mac">the tips</a> to clean Mac’s or iPhone’s storage, you will find that one of the recommendations is to transfer data to iCloud rather than vice-versa. However, if there is an issue with iCloud storage, you can do the opposite, which should help with managing iCloud storage efficiently.</p>
<p>Most recent MacBooks, iPhones, or iPads have decent storage themselves, so sacrificing a bit of that to not have as much clutter on your iCloud account should not be that much of an issue.</p>
<p>The post <a href="https://techyaz.com/miscellaneous/managing-icloud-storage-more-efficiently/">Managing iCloud Storage More Efficiently</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/miscellaneous/managing-icloud-storage-more-efficiently/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cloud Secrets Management Tool &#8211; HashiCorp Vault</title>
		<link>https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/</link>
					<comments>https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/#respond</comments>
		
		<dc:creator><![CDATA[Kiran Mehta]]></dc:creator>
		<pubDate>Wed, 28 Jul 2021 11:17:05 +0000</pubDate>
				<category><![CDATA[Cloud Security]]></category>
		<category><![CDATA[cloud security]]></category>
		<category><![CDATA[cloud technology]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2718</guid>

					<description><![CDATA[<p>Today, we will talk about cloud secrets management tool Hashicorp vault in this article. As we know, cloud services providers have presented numerous inherent features and tools to protect the cloud environment. We have seen cloud tools for monitoring, audit,&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/">Cloud Secrets Management Tool &#8211; HashiCorp Vault</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, we will talk about cloud secrets management tool Hashicorp vault in this article. As we know, cloud services providers have presented numerous inherent features and tools to protect the cloud environment. We have seen cloud tools for monitoring, audit, access, authentication, encryption etc. in AWS, Azure and GCP any top Cloud Service providers. These features and tools can provide basic line of defense that can protect the cloud infrastructure against some of the security threats. However, there’s also the vision of organizations to have specific protection layer for privilege information and sensitive data. This year we have seen unexpected surge in cyberattacks across all industries. Hence across industry we have noticed a more focused approach to maintain Privilege Access solution in order to protect their environment.</p>
<p>Privilege /Secrets maintenance is most crucial requirement in Identity and Access management services. The secrets/passwords are everywhere however in cloud environment these number are 4x times as compares to on premise solution with static secrets. The Secrets could be any form of digital credentials and sensitive information which could lead to breach!</p>
<h2>What are Secrets?</h2>
<p>A secret can be any sensitive information for e.g.</p>
<ul>
<li>User password</li>
<li>Application and Database and other system-to-system passwords.</li>
<li>auto-generated passwords /encryption keys</li>
<li>Private encryption keys</li>
<li>API Key and other application keys/credentials inside containers</li>
<li>SSH Keys</li>
<li>authorization tokens</li>
<li>Private certificates for secure communication, transmitting and receiving of data (TLS, SSL etc.)</li>
<li>One-time password devices</li>
</ul>
<h2>Why we need to manage Secrets?</h2>
<p>The Secret management is imperative in today scenarios as this has been most affected sector and primary target for any Hackers. The emerging threat in digital environment and highly equipped hackers with self-learning abilities to classify, assess and exploit any vulnerability in the environment</p>
<p>Whether we are using secrets in different cloud services or within a particular cloud-based application, unorganized secrets management procedures can bring serious threat to entire security of platform for example: &#8211;</p>
<ul>
<li>Hard-coded and default credentials</li>
<li>Managing passwords manually</li>
<li>Sharing passwords</li>
<li>Regular rotations</li>
<li>Weak password and storing it in plain text files</li>
<li>Hardcoded and embedded live scripts</li>
</ul>
<h2>Secrets Management Tools</h2>
<p>In Cloud security it is imperative that primary focus should be on access control and circulation of dynamic secrets. There are various tools features provided by Cloud service provider and third-party vendors in Market for secret keys management however the most flexible and easy tool trending these days in the cloud industry is <strong>Hashicorp Vault</strong>. It comes with two products to provide cloud security services the Vault and boundary</p>
<p><img loading="lazy" decoding="async" width="734" height="543" class="wp-image-2719" src="http://techyaz.com/wp-content/uploads/2021/07/word-image.png" srcset="https://techyaz.com/wp-content/uploads/2021/07/word-image.png 734w, https://techyaz.com/wp-content/uploads/2021/07/word-image-300x222.png 300w" sizes="auto, (max-width: 734px) 100vw, 734px" /></p>
<p>Hashicorp is a software company with a <strong>Freemium Business Model.</strong> They provide various products to fully managed platform to automate infrastructure on any cloud.</p>
<p>The Hashicorp is based on open-source tools and marketable harvests that enable developers, operators, and security experts to secure, run, provision, and connect cloud-computing they basically provide infrastructure as code which is very flexible and mature. The products prevalent for cloud security are secrets management tool Hashicorp Vault and Boundary.</p>
<h2>What is HashiCorp Vault?</h2>
<p>HashiCorp Vault is a is a secrets management tool for securely accessing <em>secrets</em>. It is used to accomplish secrets keys management in distributed systems across cloud platforms. Vault empowers cloud security players to control access to tokens, passwords, encryption keys, and certificates to defend any potentially sensitive data. The contemporary “zero trust” model is used to harden inside the HashiCorp vault. The Vault can be easily integrated with applications to be explicitly authenticated, authorized to fetch secrets, rotating secrets and perform sensitive operations, along with catering audit requirements.</p>
<p>HashiCorp <a href="https://www.hashicorp.com/cloud-operating-model">Vault</a> solution is widely used across many industries including large financial organizations, hospitality, and everything in between to provide security in the cloud operating model.</p>
<p><img loading="lazy" decoding="async" width="378" height="384" class="wp-image-2720" src="http://techyaz.com/wp-content/uploads/2021/07/word-image-1.png" srcset="https://techyaz.com/wp-content/uploads/2021/07/word-image-1.png 378w, https://techyaz.com/wp-content/uploads/2021/07/word-image-1-295x300.png 295w, https://techyaz.com/wp-content/uploads/2021/07/word-image-1-80x80.png 80w" sizes="auto, (max-width: 378px) 100vw, 378px" /></p>
<p><strong>Secrets Management tool HashiCorp Vault</strong> allows steady control access to encryption keys, passwords, certificates etc. for shielding technologies and applications. This delivers an extensive secrets management solution for enterprises looking for securing cloud environment</p>
<p><strong>1</strong>&#8211; Vault helps protect data at rest and data in transit.</p>
<p><strong>2</strong>&#8211; Vault exposes a high-level API for cryptography for developers to secure sensitive data without revealing encryption keys.</p>
<p><strong>3-</strong> Vault also can act like a certificate authority, to provide dynamic short-lived certificates to secure communications with SSL/TLS.</p>
<p><strong>4- </strong>Vault enables a brokering of identity between different platforms, such as AD on premises and AWS IAM to permit applications to work across platform borders. Vaults provide: &#8211;</p>
<ul>
<li>Storage Backends for Encrypted</li>
<li>Isolated Namespaces</li>
<li>Secure plugins</li>
<li>Detailed Historical Audit logs</li>
<li>Tenancy, rotating and revoking of secrets</li>
</ul>
<ol>
<li>Vault provides a master key and generates encryption keys to protect data. The master key is split into five parts. Any three of the five parts are required to reconstruct the master key.</li>
</ol>
<h2>HashiCorp Vault Architecture</h2>
<p>The below <a href="https://www.vaultproject.io/docs/internals/architecture">architectural diagram</a> of secrets management tool HashiCorp vault can explain the workflow of the vault process and services.</p>
<ul>
<li>Storage Backend</li>
<li>Barrier</li>
<li>Secrets Engine</li>
<li>Audit Device</li>
<li>Auth Method</li>
<li>Client Token</li>
<li>Token Store</li>
<li>Root Tokens</li>
<li>Rollback Manager</li>
<li>Core</li>
<li>Audit Broker</li>
<li>Expiration Manager</li>
</ul>
<p><img loading="lazy" decoding="async" width="917" height="527" class="wp-image-2721" src="http://techyaz.com/wp-content/uploads/2021/07/word-image-2.png" srcset="https://techyaz.com/wp-content/uploads/2021/07/word-image-2.png 917w, https://techyaz.com/wp-content/uploads/2021/07/word-image-2-300x172.png 300w, https://techyaz.com/wp-content/uploads/2021/07/word-image-2-768x441.png 768w" sizes="auto, (max-width: 917px) 100vw, 917px" /></p>
<p><strong>Storage Backend</strong> &#8211; A storage backend is used for robust storage of encrypted<strong> </strong>data. The storage is placed at bottom of Architecture stack as it is non trusted components for the vault and chosen as per client requirement, the considered factors for the same are like High availability/Disaster recovery/Recovery time Objective. When the Vault is started the storage backend must be declared and configured well in advance.</p>
<p><strong>HTTP API &#8211;</strong> The HTTP API is used to interact with clients, and it is also non-trusted component for the vault hence placed outside the Barrier</p>
<p><strong>Barrier</strong> &#8211; The barrier is strong cryptographic components which creates an un-penetrable protection layer around the Vault. The barrier ensures data is validated and decrypted as it goes inside the Vault and all data gets encrypted as it goes out from the vault. The barrier by default stays in sealed state and must be unlocked before requesting any access operation to the vault.</p>
<p>The Unlocking of the vault is possible only using combination of Unseal Keys. When the vault is initialized it generate encryption keys. This key is in turn protected by Master key which gets divided into 5 parts and combination of any 3 keys of which are required to rebuild the master key. For protection purpose all data that flows between Vault and the storage backend passes through the barrier.</p>
<p><img loading="lazy" decoding="async" width="921" height="626" class="wp-image-2722" src="http://techyaz.com/wp-content/uploads/2021/07/word-image-3.png" srcset="https://techyaz.com/wp-content/uploads/2021/07/word-image-3.png 921w, https://techyaz.com/wp-content/uploads/2021/07/word-image-3-300x204.png 300w, https://techyaz.com/wp-content/uploads/2021/07/word-image-3-768x522.png 768w" sizes="auto, (max-width: 921px) 100vw, 921px" /></p>
<p><em>Image &#8211; <a href="https://www.vaultproject.io/docs/internals/architecture">Vault Architectures</a></em></p>
<p><strong>Secrets Engine</strong> – Secrets engines are components which store, generate, or encrypt data. Secret Engine is like virtual file system supporting operations like read, write, delete, generate dynamic credentials, encryptions etc. In Vault when a secrets engine is enabled, a random UUID is generated. This becomes the data root for that engine. As Secret engine writes to the physical storage layer, it is prefixed with that UUID folder as relative access is not supported by the vault hence the secrets engine cannot access other data.</p>
<p><strong>Audit Device</strong> – are leveraged to keep comprehensive record of logs for all requests and response inside the vault. As all the operations executed inside the vault are API request and response, thus audit log contains all authenticated communication with Vault, as well all generated errors.</p>
<p><strong>Auth Method</strong> – Authentication is used to validate access to vault. The auth method are responsible for conveying identity and a set of policies to a user. Vaults validate a user and returns a client token that can be used for future requests.</p>
<p><strong>Client Token /Vault token</strong>&#8211; Tokens are the method for authentication within Vault. Token can be generated leveraging authentication methods they can also be used dynamically to generate tokens based on external identities. Inside the Vault tokens record to information like Access control list policies. These policies control directs what access are allowed to the user inside the Vault these tokens also carried meta data which is used for Audit logs such as creation time, last renewal time etc.</p>
<p><strong>Token Store</strong> &#8211; Are token authentication backend that it is responsible for creating and storing tokens, the token store has no login capability and all actions require existing authenticated tokens.</p>
<p><strong>Root Tokens &#8211;</strong> are tokens that have the root policy committed to them.</p>
<p><strong>Rollback Manager</strong> &#8211; This is internal component of Vault to control partial failure cases by using write ahead logging.</p>
<p><strong>Core &#8211;</strong> The core is used to manage the flow of requests through the system, it enforces Access control Lists and ensure audit logging is done.</p>
<p><strong>Audit Broker</strong> – is leveraged to distribute the request out to all the configured audit devices.</p>
<p><strong>Expiration Manager &#8211;</strong> is used to automatically revokes the secret on Lease expire if allowed by the client</p>
<h2>HashiCorp Vaults Pricing</h2>
<p>Let&#8217;s discuss about Hashicorp vaults pricing. There are 3 options to use this tool from pricing stand point.</p>
<ol>
<li>Open Source</li>
<li>Cloud – Managed Vault</li>
<li>Enterprise Vault Premium editions.</li>
</ol>
<p><img loading="lazy" decoding="async" width="771" height="343" class="wp-image-2723" src="http://techyaz.com/wp-content/uploads/2021/07/word-image.jpeg" srcset="https://techyaz.com/wp-content/uploads/2021/07/word-image.jpeg 771w, https://techyaz.com/wp-content/uploads/2021/07/word-image-300x133.jpeg 300w, https://techyaz.com/wp-content/uploads/2021/07/word-image-768x342.jpeg 768w" sizes="auto, (max-width: 771px) 100vw, 771px" /></p>
<p>The Vault Open-source freeware version has limitation of ~50 users only and to leverage all features and functionality it is highly recommended to use Cloud or Enterprise version. You can visit attached link for all <a href="https://www.hashicorp.com/products/vault/pricing">Vault Pricing Options.</a></p>
<h2>Conclusion</h2>
<p>In this Article we have covered What are Secrets? Why we need Secrets Management? and Secrets Management tool offered by Hashicorp Vault. There are several other tools available for secrets management in the market as mentioned below. As per the client requirement and existing infrastructure we can propose appropriate tools to our clients as long it serves the purpose of underline security with future integration possibilities</p>
<ul>
<li><strong>Conjur Secrets Manager</strong> (Open Source) &#8211; CyberArk</li>
<li><strong>Dynamic Access Provider</strong> (DAP) Enterprise &#8211; CyberArk</li>
<li><strong>AWS Secrets Manager</strong> &#8211; Rotate, manage, and retrieve database credentials, API keys, and other secrets through their lifecycle</li>
<li><strong>Azure Key Vault &#8211; </strong>securely storing and accessing secrets</li>
<li><strong>Akeyless Vault </strong>for <a href="https://www.akeyless.io/">Secrets Management and Secure Remote Access</a></li>
<li><strong>Docker secrets management </strong></li>
</ul>
<p>The Security trend seen in last 5 years has shown paradigm shift towards <strong>Identify and Access management</strong> domain. IAM plays vital role in preventing Cyberattacks due to leak credentials and hence many organizations are moving towards taking proactive steps by adding more secrets tools and technology to protect their sensitive information. As these organization moves towards more flexible, scalable, secure and cloud agnostic environment.</p>
<p>The Hashicorp suits of products are outstanding in terms of ease of use, integration, and configurations. The can flawlessly assimilates with all offerings of major cloud vendors. The Hashicorp products carry solution to full scale infrastructure security management.</p>
<p>For the next topics we will cover about other HashiCorp product in security and its comparison to Other traditional Privilege Access Management tools in the market. Stay tuned for upcoming topics on <strong>Boundary</strong> and <strong>CyberArk PAM</strong> solution offerings.</p>
<p><span style="color: #0000ff;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/cloud/understanding-cloud-security-data-protection/" target="_blank" rel="noopener">Understanding Cloud Security &amp; Data Protection</a></strong></li>
<li><strong><a href="https://techyaz.com/cloud/cloud-security/cloud-security-how-to-secure-cloud-environment/" target="_blank" rel="noopener">Cloud Security – How to Secure Cloud Environment?</a></strong></li>
<li><strong><a href="https://techyaz.com/cloud/top-5-cloud-service-provider-accreditations-third-party-auditor-reports/" target="_blank" rel="noopener">Top 5 Cloud Service Provider Accreditations and Third-Party Auditor Reports</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/">Cloud Secrets Management Tool &#8211; HashiCorp Vault</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/cloud/cloud-security/cloud-secrets-management-tool-hashicorp-vault/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix Always ON Connection Timeout Error 35206 in SQL Server</title>
		<link>https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/</link>
					<comments>https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Fri, 23 Jul 2021 09:01:25 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2613</guid>

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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<p></p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/">Fix Always ON Connection Timeout Error 35206 in SQL Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/alwayson/always-on-connection-timeout-error-35206/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>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>Learn How to use SQL Server BETWEEN Operator</title>
		<link>https://techyaz.com/sql-server/t-sql/learn-how-to-use-sql-server-between-operator/</link>
					<comments>https://techyaz.com/sql-server/t-sql/learn-how-to-use-sql-server-between-operator/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
		<pubDate>Sat, 17 Jul 2021 16:06:06 +0000</pubDate>
				<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[T-SQL Operators]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2563</guid>

					<description><![CDATA[<p>SQL BETWEEN operator is used to get values between a range of data inputs. We can use SQL BETWEEN operator with SELECT, UPDATE, INSERT and DELETE statements. Range can be defined based on text, date or numbers values. Here i&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/t-sql/learn-how-to-use-sql-server-between-operator/">Learn How to use SQL Server BETWEEN Operator</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>SQL BETWEEN operator is used to get values between a range of data inputs. We can use SQL BETWEEN operator with SELECT, UPDATE, INSERT and DELETE statements. Range can be defined based on text, date or numbers values. Here i will show you multiple use cases of this operator like get values between two date ranges using SQL BETWEEN operator, get details between two numbers using SQL Server operator BETWEEN etc.</p>



<h2 class="wp-block-heading">Get Values between Two Dates using SQL BETWEEN</h2>



<p>Let&#8217;s say you have a requirement to get all values between two date ranges or specific date time ranges. You can use SQL BETWEEN operator to get this done. Here is the example to get all values between date 19th March 2021 and 20th March 2021. Below example is also an use case of how to use BETWEEN operator in WHERE clause. You can remove &#8216;-&#8216; from date ranges if you want and you can directly mention date ranges as <em>&#8216;20210319&#8217; AND &#8216;20210320&#8217;.</em></p>



<p class="has-text-color" style="color:#0a43eb"><strong>SELECT name, type_desc,create_date, modify_date<br>FROM sys.objects<br>WHERE modify_date BETWEEN &#8216;2021-03-19&#8217; AND &#8216;2021-03-20&#8217;</strong></p>



<p>Here, i have fetched all modified objects on my SQL Server between given date range. Here is the output. We can see there are more than 730 rows returned. You can compare the dates in modify_date column whether output has returned correct data or not. </p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="609" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/1-BETWEEN-Operator-1024x609.jpg" alt="SQL BETWEEN Operator with Date ranges" class="wp-image-2580" srcset="https://techyaz.com/wp-content/uploads/2021/07/1-BETWEEN-Operator-1024x609.jpg 1024w, https://techyaz.com/wp-content/uploads/2021/07/1-BETWEEN-Operator-300x178.jpg 300w, https://techyaz.com/wp-content/uploads/2021/07/1-BETWEEN-Operator-768x456.jpg 768w, https://techyaz.com/wp-content/uploads/2021/07/1-BETWEEN-Operator.jpg 1489w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, Next requirement could be to retrieve some data between two date time ranges like you want details between specific time of dates. I will take same above query to show case this example as well. When we don&#8217;t specify the time along with date range then it defaults to 12:00 A.M. </p>



<p class="has-text-color" style="color:#0a43eb"><strong>SELECT name, type_desc,create_date, modify_date<br>FROM sys.objects<br>WHERE modify_date BETWEEN &#8216;2021-03-19 4:38:00&#8217; AND &#8216;2021-03-19 4:38:30&#8217;</strong></p>



<p>Here, i have retrieved all modified objects between 30 seconds of above given time (Time 4:38:00 to 4:38:30). Here is the output and it is showing only 35 rows.</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="608" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/2-BETWEEN-Operator-1024x608.jpg" alt="SQL BETWEEN Operator with two date time ranges" class="wp-image-2581" srcset="https://techyaz.com/wp-content/uploads/2021/07/2-BETWEEN-Operator-1024x608.jpg 1024w, https://techyaz.com/wp-content/uploads/2021/07/2-BETWEEN-Operator-300x178.jpg 300w, https://techyaz.com/wp-content/uploads/2021/07/2-BETWEEN-Operator-768x456.jpg 768w, https://techyaz.com/wp-content/uploads/2021/07/2-BETWEEN-Operator.jpg 1485w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can use this SQL between two date ranges or datetime ranges to fetch your data. You can use this operator in INSERT, UPDATE or DELETE statements as well.</p>



<h2 class="wp-block-heading">Get Values between Two Numbers</h2>



<p>This section will explain about getting details between two number ranges. Let me take same table which we have taken for above section sys.objects. Now, i want to get all objects having object id between 25 to 30 or you can mention any range. This is just an example to showcase. These number ranges will change as per your need and nature of data. </p>



<p class="has-text-color" style="color:#0a43eb"><strong>SELECT name, object_id, type_desc, create_date<br>FROM sys.objects<br>WHERE object_id BETWEEN &#8217;25&#8217; AND &#8217;30&#8217;</strong></p>



<p>Note, above object_id is column name and not the T-SQL function. Have a look at its output in below image. We have got only rows which are assigned with these object ids.</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="500" height="305" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/3-BETWEEN-Operator.jpg" alt="SQL BETWEEN Operator with number ranges" class="wp-image-2582" srcset="https://techyaz.com/wp-content/uploads/2021/07/3-BETWEEN-Operator.jpg 500w, https://techyaz.com/wp-content/uploads/2021/07/3-BETWEEN-Operator-300x183.jpg 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /></figure>



<h2 class="wp-block-heading">Use BETWEEN with NOT Operator</h2>



<p>Above all examples shows how to get data between two ranges but we can use NOT operator with BETWEEN to return all values which is not between specified two ranges. Let&#8217;s take above example where BETWEEN operator has returned only 5 rows based on their specified two ranges. Now if i will use NOT operator in above T-SQL statement then output will return all rows of table sys.objects except above 4 rows which will be prevented by NOT operator. Let me show you this example.</p>



<p class="has-text-color" style="color:#0a43eb"><strong>SELECT name, object_id, type_desc, create_date<br>FROM sys.objects<br>WHERE object_id NOT BETWEEN &#8217;25&#8217; AND &#8217;30&#8217;</strong></p>



<p>Have  a look at below highlighted are where objects ids between 25 to 30 are missing.</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="547" height="597" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/4-BETWEEN-Operator.jpg" alt="SQL BETWEEN Operator with NOT operator" class="wp-image-2583" srcset="https://techyaz.com/wp-content/uploads/2021/07/4-BETWEEN-Operator.jpg 547w, https://techyaz.com/wp-content/uploads/2021/07/4-BETWEEN-Operator-275x300.jpg 275w" sizes="auto, (max-width: 547px) 100vw, 547px" /></figure>



<p>Here, i have shown you few use cases of SQL Server T-SQL operator BETWEEN statement. You can go head and try this operator for your business needs. For more information on this operator, visit <a href="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/between-transact-sql?view=sql-server-ver15" target="_blank" rel="noreferrer noopener">MSDN</a> article.</p>



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



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fixview-server-state-permission-was-denied-on-object-server-database-master/" target="_blank" rel="noreferrer noopener">Fix:VIEW SERVER STATE permission was denied on object ‘server’, database ‘master’</a></strong></li><li><strong><a href="https://techyaz.com/sql-server/t-sql/difference-between-union-and-union-all-operators/" target="_blank" rel="noreferrer noopener">Difference between UNION and UNION ALL T-SQL Operators</a></strong></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></p>
<p>The post <a href="https://techyaz.com/sql-server/t-sql/learn-how-to-use-sql-server-between-operator/">Learn How to use SQL Server BETWEEN Operator</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/t-sql/learn-how-to-use-sql-server-between-operator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Enable Preview Features in Azure Data Studio</title>
		<link>https://techyaz.com/cloud/azure/enable-preview-features-in-azure-data-studio/</link>
					<comments>https://techyaz.com/cloud/azure/enable-preview-features-in-azure-data-studio/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 11:29:08 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Azure cloud]]></category>
		<category><![CDATA[Azure Data Studio]]></category>
		<category><![CDATA[cloud]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2556</guid>

					<description><![CDATA[<p>Microsoft always releases new features and enhancements as part of preview features in Azure Data Studio before making it publicly available for general use. Users can go ahead and check these features, give their feedback to Microsoft and based on&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/cloud/azure/enable-preview-features-in-azure-data-studio/">How to Enable Preview Features in Azure Data Studio</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Microsoft always releases new features and enhancements as part of preview features in Azure Data Studio before making it publicly available for general use. Users can go ahead and check these features, give their feedback to Microsoft and based on these feedbacks Microsoft makes changes or release that feature under General Availability. Users can only use them if preview features will be enabled in Azure Data Studio. I will explain how to enable preview features in Azure Data Studio in this article.</p>



<p><a href="https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio?view=sql-server-ver15" target="_blank" rel="noreferrer noopener">Azure Data Studio</a> is cross-platform database management tool to manage on prem as well as cloud based SQL Server deployments on windows, Linux and MacOS platforms. This tool offers a modern editor experience with IntelliSense, code snippets, source control integration, and an integrated terminal.</p>



<p>When you launch Azure Data Studio first time, it will show you a popup window and ask you to enable the preview features. You can choose &#8220;Yes&#8221; to use preview features and &#8220;No&#8221; to disable this feature. If this settings is disabled in your Azure Data studio then you can enable it anytime by accessing settings tab given bottom left of the Azure Data Studio screen. Below is the list of preview features for SQL Server in Azure Data Studio.</p>



<ul class="wp-block-list"><li>Azure portal integration</li><li>SQL Server Backup and Restore</li><li>Deployments of SQL Edge, SQL Server Big Data Cluster, SQL Server container image &amp; SQL Server on Windows</li><li>SQLCMD mode</li><li>Admin Pack for SQL Server</li><li>Azure Synapse Analytics Insights</li><li>Central Management Servers</li><li>Database Administration Tool Extensions for Windows</li><li>Kusto</li><li>Language packs</li><li>PostgreSQL</li><li>PowerShell</li><li>Query History</li><li>SandDance for Azure Data Studio</li><li>Server Reports</li><li>SQL Assessment</li><li>SQL Server Agent</li><li>SQL Server Profiler</li><li>Machine Learning</li><li>Managed Instance Dashboard</li><li>Visual Studio IntelliCode</li><li>whoisactive</li></ul>



<p>Above list is not limited to only given features. I was restoring a database using Azure Data Studio. When i tried to click at restore button, another popup window came and suggested to enable preview features for this restore as shown in below image. When you try to preform any above activity in Azure Data studio, you will get similar popup window.  </p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1018" height="320" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/PreviewFeature1.jpg" alt="Preview Features in Azure Data Studio" class="wp-image-2586" srcset="https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature1.jpg 1018w, https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature1-300x94.jpg 300w, https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature1-768x241.jpg 768w" sizes="auto, (max-width: 1018px) 100vw, 1018px" /></figure>



<p>I will show you step by step process to enable or disable preview feature in Azure Data Studio.</p>



<h2 class="wp-block-heading">Enable Preview Features</h2>



<p>I was trying to perform a database restore using Azure Data Studio and got a popup which was saying &#8221; You must enable preview features in order to use restore &#8220;.  Follow below steps to get it done.</p>



<ul class="wp-block-list"><li>Launch Azure Data Studio</li><li>Click at the setting button given bottom left of the screen, then again click at the setting options from displayed menu.</li></ul>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="503" height="707" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS2.jpg" alt="Click at Settings" class="wp-image-2587" srcset="https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS2.jpg 503w, https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS2-213x300.jpg 213w" sizes="auto, (max-width: 503px) 100vw, 503px" /></figure>



<ul class="wp-block-list"><li>Type Enable Preview Features from search bar given on the screen.</li><li>You will get few options in drop down. Click at checkbox for&nbsp;<strong>Enable unreleased preview features</strong>&nbsp;under&nbsp;<strong>Workbench: Enable Preview Features</strong>.</li></ul>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1018" height="730" src="//i0.wp.com/techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS3.jpg" alt="Click at check box to enable preview features" class="wp-image-2588" srcset="https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS3.jpg 1018w, https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS3-300x215.jpg 300w, https://techyaz.com/wp-content/uploads/2021/07/PreviewFeature-in-ADS3-768x551.jpg 768w" sizes="auto, (max-width: 1018px) 100vw, 1018px" /></figure>



<ul class="wp-block-list"><li>This change will automatically been saved in Azure Data Studio.</li></ul>



<p>Now, you are good to go ahead and use all features which are in preview as per your need.</p>



<h2 class="wp-block-heading">Disable Preview Features</h2>



<p>Disabling preview features in Azure Data Studio is similar to above steps. You just need to uncheck the checkbox which you have checked in above step. Follow below steps to get it disabled.</p>



<ul class="wp-block-list" id="block-874fb66d-f001-4a35-9850-84f9c8eb249a"><li>Launch Azure Data Studio</li><li>Click at the setting button given bottom left of the screen. You will get a list of options from which you need to click at the settings options again.</li><li>Type &#8220;Enable Preview Features&#8221; from search bar given on the screen.</li><li>You will get few options in drop down. Uncheck the checkbox for&nbsp;<strong>Enable unreleased preview features</strong></li><li>This change will automatically been saved in Azure Data Studio.</li></ul>



<p>You have learnt preview features enablement and how to disable it in Azure Data Studio.</p>



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



<ul class="wp-block-list"><li><strong><a href="https://techyaz.com/cloud/cloud-security/cloud-security-how-to-secure-cloud-environment/" target="_blank" rel="noreferrer noopener">Cloud Security – How to Secure Cloud Environment?</a></strong></li><li><strong><a href="https://techyaz.com/interview-questions/sql-server-interview-questions/sql-server-interview-questions-answers-indexes/" target="_blank" rel="noreferrer noopener">SQL Server Interview Questions &amp; Answers on Indexes</a></strong></li><li><strong><a href="https://techyaz.com/learning/how-to-learn-cloud-computing/" target="_blank" rel="noreferrer noopener">How to Learn Cloud Computing?</a></strong></li><li><strong><a href="https://techyaz.com/cloud/what-is-cloud-computing/" target="_blank" rel="noreferrer noopener">What is Cloud Computing</a></strong></li></ul>
<p>The post <a href="https://techyaz.com/cloud/azure/enable-preview-features-in-azure-data-studio/">How to Enable Preview Features in Azure Data Studio</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/cloud/azure/enable-preview-features-in-azure-data-studio/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 121 &#8211; The Semaphore Timeout Period Has Expired</title>
		<link>https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/</link>
					<comments>https://techyaz.com/sql-server/fix-sql-server-error-121-semaphore-timeout-period-has-expired/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 15 Jun 2021 14:15:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2549</guid>

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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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

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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



<p></p>
<p>The post <a href="https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/">How to Change Authentication Mode in SQL Server?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/change-authentication-mode-in-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
