SQL Server - IT Tutorial https://ittutorial.org IT Tutorial | Oracle DBA | SQL Server, Goldengate, Exadata, Big Data, Data ScienceTutorial Thu, 30 Jun 2022 10:01:16 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.5 https://ittutorial.org/wp-content/uploads/2019/12/cropped-IT-Tutorial-Logo-1-1-32x32.jpg SQL Server - IT Tutorial https://ittutorial.org 32 32 158763170 4 Common Indicators That Signal Database Performance Issues https://ittutorial.org/common-indicators-that-signal-database-performance-issues/?utm_source=rss&utm_medium=rss&utm_campaign=common-indicators-that-signal-database-performance-issues https://ittutorial.org/common-indicators-that-signal-database-performance-issues/?noamp=mobile#comments Thu, 30 Jun 2022 10:01:16 +0000 https://ittutorial.org/?p=36594 Dealing with database performance issues has to be a priority, regardless of the scope or scale of your server infrastructure. Of course, if you don’t know what to look for, you might not appreciate that performance is suboptimal in the first place. To avoid this scenario persists, here are some thoughts on how your database …

The post 4 Common Indicators That Signal Database Performance Issues first appeared on IT Tutorial.

]]>
https://ittutorial.org/common-indicators-that-signal-database-performance-issues/feed/ 5 36594
How to Avoid Activity Monitor Hurting Your SQL Server’s Performance https://ittutorial.org/how-to-avoid-activity-monitor-hurting-your-sql-servers-performance/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-avoid-activity-monitor-hurting-your-sql-servers-performance https://ittutorial.org/how-to-avoid-activity-monitor-hurting-your-sql-servers-performance/?noamp=mobile#comments Mon, 22 Nov 2021 12:59:14 +0000 https://ittutorial.org/?p=35874 There is no question that monitoring the performance of your SQL Server deployment is an important part of any DBA’s maintenance and troubleshooting responsibilities. However, the integrated tool provided by Microsoft to achieve this, unambiguously known as Activity Monitor, could actually be the culprit in causing performance dips. Here is a look at why this …

The post How to Avoid Activity Monitor Hurting Your SQL Server’s Performance first appeared on IT Tutorial.

]]>
https://ittutorial.org/how-to-avoid-activity-monitor-hurting-your-sql-servers-performance/feed/ 1 35874
Random value for DATETIME column https://ittutorial.org/random-value-for-datetime-column/?utm_source=rss&utm_medium=rss&utm_campaign=random-value-for-datetime-column https://ittutorial.org/random-value-for-datetime-column/?noamp=mobile#respond Mon, 30 Aug 2021 18:40:46 +0000 https://ittutorial.org/?p=35539 Today, I am going to describe how to generate random value for DATETIME field within a given range. This is very useful specially for generating test data. For this, we will use couple of built-in functions like: DATEDIFF DATEADD RAND ROUND Random DATETIME Value DECLARE @startDate DATETIME -- start date DECLARE @endDate DATETIME -- end …

The post Random value for DATETIME column first appeared on IT Tutorial.

]]>
https://ittutorial.org/random-value-for-datetime-column/feed/ 0 35539
Free Methods to Repair SQL Server Index Corruption https://ittutorial.org/free-methods-to-repair-sql-server-index-corruption/?utm_source=rss&utm_medium=rss&utm_campaign=free-methods-to-repair-sql-server-index-corruption https://ittutorial.org/free-methods-to-repair-sql-server-index-corruption/?noamp=mobile#respond Thu, 29 Jul 2021 07:42:32 +0000 https://ittutorial.org/?p=35242 This article shares the importance of indexes in a SQL database. Also, it provides a brief overview of the clustered and nonclustered indexes. Further, the article discusses reasons for SQL Server index corruption, factors to identify any corrupted index, and methods to fix it. Indexes in SQL Server help speed up the process of retrieving …

The post Free Methods to Repair SQL Server Index Corruption first appeared on IT Tutorial.

]]>
https://ittutorial.org/free-methods-to-repair-sql-server-index-corruption/feed/ 0 35242
Fill In Missing Dates for SQL Server Query Output using CTE https://ittutorial.org/fill-in-missing-dates-for-sql-server-query-output-using-cte/?utm_source=rss&utm_medium=rss&utm_campaign=fill-in-missing-dates-for-sql-server-query-output-using-cte https://ittutorial.org/fill-in-missing-dates-for-sql-server-query-output-using-cte/?noamp=mobile#respond Thu, 24 Jun 2021 20:38:33 +0000 https://ittutorial.org/?p=34905 Last week one of my colleagues requested me to help him write a query to fill in missing dates in query output. I came across couple of solutions, neither seemed convenient to me. So, I compiled my own using recursive CTE or Common Table Expression. Problem Statement Let’s say we have a table which contains …

The post Fill In Missing Dates for SQL Server Query Output using CTE first appeared on IT Tutorial.

]]>
https://ittutorial.org/fill-in-missing-dates-for-sql-server-query-output-using-cte/feed/ 0 34905
Cannot shrink ‘read only’ database | Shrink Transaction Log While Using AlwaysOn Availability Group https://ittutorial.org/cannot-shrink-read-only-database-shrink-transaction-log-while-using-alwayson-availability-group/?utm_source=rss&utm_medium=rss&utm_campaign=cannot-shrink-read-only-database-shrink-transaction-log-while-using-alwayson-availability-group https://ittutorial.org/cannot-shrink-read-only-database-shrink-transaction-log-while-using-alwayson-availability-group/?noamp=mobile#respond Thu, 25 Feb 2021 11:55:24 +0000 https://ittutorial.org/?p=33003 I got ” Cannot shrink ‘read only’ database ” error during Shrink Transaction Log While Using AlwaysOn Availability Group.   Shrink Transaction Log While Using AlwaysOn Availability Group Transaction log of SQL Server size was very big, I need to shrink it to decrease its size. But My database is using AlwaysOn Availability Group, so …

The post Cannot shrink ‘read only’ database | Shrink Transaction Log While Using AlwaysOn Availability Group first appeared on IT Tutorial.

]]>
https://ittutorial.org/cannot-shrink-read-only-database-shrink-transaction-log-while-using-alwayson-availability-group/feed/ 0 33003
Azure SQL Database administration Tips and Hints Exam (DP-300) https://ittutorial.org/azure-sql-database-administration-tips-and-hints-exam-dp-300/?utm_source=rss&utm_medium=rss&utm_campaign=azure-sql-database-administration-tips-and-hints-exam-dp-300 https://ittutorial.org/azure-sql-database-administration-tips-and-hints-exam-dp-300/?noamp=mobile#respond Sat, 31 Oct 2020 22:16:31 +0000 https://ittutorial.org/?p=26086 Finally, I got my certification Azure Database administrator Associate for Exam (DP-300) after two times failure, during the journey of study I watched many courses, videos, and articles, and this post of today is for spreading what I have from the knowledge and what I learned during the journey, and I do two things during my study …

The post Azure SQL Database administration Tips and Hints Exam (DP-300) first appeared on IT Tutorial.

]]>
https://ittutorial.org/azure-sql-database-administration-tips-and-hints-exam-dp-300/feed/ 0 26086
JSON in SQL Server https://ittutorial.org/json-in-sql-server/?utm_source=rss&utm_medium=rss&utm_campaign=json-in-sql-server https://ittutorial.org/json-in-sql-server/?noamp=mobile#respond Sun, 25 Oct 2020 20:18:00 +0000 https://ittutorial.org/?p=25997 JSON (JavaScript Object Notation) is very popular standard for exchanging data specially in REST API. Almost all modern websites, android or iOS app use this for exchanging data with server. From SQL Server 2016, Microsoft extends its support for JSON through couple of built-in functions. This way SQL Server supports NOSQL features in traditional relational …

The post JSON in SQL Server first appeared on IT Tutorial.

]]>
https://ittutorial.org/json-in-sql-server/feed/ 0 25997
SQL CASE Statement https://ittutorial.org/sql-case-statement/?utm_source=rss&utm_medium=rss&utm_campaign=sql-case-statement https://ittutorial.org/sql-case-statement/?noamp=mobile#comments Fri, 23 Oct 2020 19:03:23 +0000 https://ittutorial.org/?p=25958 SQL CASE statement is very powerful and versatile. It can be used in SELECT, UPDATE and INSERT statement. Even it can be used in ORDER BY and GROUP BY clause. Let’s examine them one by one. Syntax First check out the syntax of CASE statement: CASE WHEN condition1 THEN result1 WHEN condition2 THEN result2 ... WHEN conditionN THEN resultN ELSE result END; Data Preparation First …

The post SQL CASE Statement first appeared on IT Tutorial.

]]>
https://ittutorial.org/sql-case-statement/feed/ 1 25958
Software Review – Stellar Repair for MS SQL https://ittutorial.org/software-review-stellar-repair-for-ms-sql/?utm_source=rss&utm_medium=rss&utm_campaign=software-review-stellar-repair-for-ms-sql https://ittutorial.org/software-review-stellar-repair-for-ms-sql/?noamp=mobile#comments Tue, 13 Oct 2020 11:01:48 +0000 https://ittutorial.org/?p=20301 I am going to share my experience about how I was able to recover my SQL database from SUSPECT mode. Problem at hand About a week ago, I was inserting some entries in the SQL database. However, the process was halted due to power failure and returned with the SQL server database in SUSPECT mode. …

The post Software Review – Stellar Repair for MS SQL first appeared on IT Tutorial.

]]>
https://ittutorial.org/software-review-stellar-repair-for-ms-sql/feed/ 2 20301