<?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>Editorial Staff, Author at Techyaz.com</title>
	<atom:link href="https://techyaz.com/author/techyaz/feed/" rel="self" type="application/rss+xml" />
	<link>https://techyaz.com/author/techyaz/</link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Mon, 04 Oct 2021 07:09: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>Editorial Staff, Author at Techyaz.com</title>
	<link>https://techyaz.com/author/techyaz/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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 fetchpriority="high" 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="(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 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="(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 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="(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>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>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>
	</channel>
</rss>
