- Видео 62
- Просмотров 65 552
ARSLANOV
Добавлен 21 июн 2022
I am a Support Engineer at Microsoft in SQL Server sharing some useful sessions here.
This channel is about internal features of SQL Server as well as installation guides of different components.
In this channel. you will be able to deeply understand how SQL server works internally which can be helpful for maintaining SQL Server as DBA. Furthermore, I will share useful troubleshooting sessions which might be helpful when you face issues in SQL Server.
Please kindly note that the contents of this channel belongs to me only; they do not necessarily reflect the views and recommendations of Microsoft.
Happy learning :)
This channel is about internal features of SQL Server as well as installation guides of different components.
In this channel. you will be able to deeply understand how SQL server works internally which can be helpful for maintaining SQL Server as DBA. Furthermore, I will share useful troubleshooting sessions which might be helpful when you face issues in SQL Server.
Please kindly note that the contents of this channel belongs to me only; they do not necessarily reflect the views and recommendations of Microsoft.
Happy learning :)
Monitor Always On Availability Group (AG) performance and set alerts
In this session, we will learn how to define AG performance metrics and set monitoring for these metrics with alerts.
Agenda:
0:00 - Introduction
0:40 - Data synchronization process in Always On Availability Group (AG)
1:57 - Flow control gates
3:30 - RPO
4:45 - RTO
6:05 - Monitoring metrics for AG: RPO and RTO
🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173
Watch all my playlists here:
🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY
🚀►Full course on Encrypting connections to SQL Server- ruclips.net/p/PLxuuX6jGq7kmqOCqYa1lFxQOKFgTfb8j8&si=bBwHhLsu6m5CjFft
🚀 ►SQL Server replication session: ruclips.net/p/PLx...
Agenda:
0:00 - Introduction
0:40 - Data synchronization process in Always On Availability Group (AG)
1:57 - Flow control gates
3:30 - RPO
4:45 - RTO
6:05 - Monitoring metrics for AG: RPO and RTO
🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173
Watch all my playlists here:
🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY
🚀►Full course on Encrypting connections to SQL Server- ruclips.net/p/PLxuuX6jGq7kmqOCqYa1lFxQOKFgTfb8j8&si=bBwHhLsu6m5CjFft
🚀 ►SQL Server replication session: ruclips.net/p/PLx...
Просмотров: 210
Видео
Cracking data pages in SQL Server (Session 1 on SQL Server page internals)
Просмотров 187Месяц назад
We will dive deep in data pages in SQL Server by learning how data is stored and organized. Furthermore, you will understand how to decode output of DBCC PAGE command in this session. 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 Watch all my playlists here: 🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_...
Troubleshoot high memory utilization in SQL Server
Просмотров 1,3 тыс.3 месяца назад
In this session, we will troubleshoot high memory cases in SQL Server. 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 Watch all my playlists here: 🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY 🚀►Full course on Encrypting connections to SQL Server- ruclips.net/p/PLxuuX6jGq7kmqOCqYa1lFxQOKFgTfb8j8&si=...
Session 12: Data Update Operators: DELETE, INSERT, UPDATE and Halloween problem
Просмотров 963 месяца назад
Let us quickly discuss data update operators in this session. 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 🚀►Github for queries: github.com/Bobirmirzo/Performance/blob/main/Session_3.txt Watch all my playlists here: 🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY 🚀►Full course on Encrypting connecti...
Session 3: Why you should not trust live execution plan in SSMS ?
Просмотров 1063 месяца назад
Many of use might use live execution plan in SSMS for troubleshooting never ending queries. However, there are some points you should know about this plan. We will talk about this in this session. 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 🚀►Github for queries: github.com/Bobirmirzo/Performance/blob/main/Session_3.txt Watch all my playlists here: 🚀►Full course...
Session 11: Spool operator in SQL Server
Просмотров 1623 месяца назад
This session covers spool operators in SQL Server, focusing on their functions and impact on query performance. It explains the physical operator functions (Init(), GetRow(), GetNext(), Close()) and the concepts of rebinds and rewinds, which are relevant when the Nested Loops operator interacts with certain operators like Index Spool and Table Spool. The presentation also discusses different ty...
Session 10: Parallelism in SQL Server
Просмотров 1503 месяца назад
This session provides an overview of parallelism in SQL Server. It covers the basics of parallel query execution, including partitioning data and distributing it among CPUs for simultaneous operations. The presentation highlights the benefits of parallelism for large queries, especially in data warehouse workloads, but also notes the overhead and potential bottlenecks it can introduce. Practica...
Session 9: Join operators in SQL Server
Просмотров 923 месяца назад
Let us deeply understand JOIN operators in SQL Server in this session. Chapters 0:00 - Nested loop join 1:45 - Merge join 3:05 - Hash join 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 Watch all my playlists here: 🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY 🚀►Full course on Encrypting connections...
Session 8: Aggregate operators in SQL Server: Stream and Hash aggregations
Просмотров 843 месяца назад
Stream aggregates are very much crucial aggregates in SQL Server. They are used in computing values, aggregate operations, group by operations and often seen in execution plans. Let us overview this operators and understand how they function in execution plans. Chapters 0:00 - Stream aggregate operator 3:53 - Hash aggregate operator 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-ars...
Session 7: Parameterization and parameter sniffing in SQL Server
Просмотров 1193 месяца назад
In this session, we talk about fundamental but very important topic in SQL Server: Parameterization and parameter sniffing. Many performance related issues can be resolved by simply understanding this topic. Let us master it. Chapters 0:30 - Parameterization in SQL Server 4:00 - Parameter sniffing in SQL Server 6:55 - SET options in SQL Server 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bob...
Session 6: Fine tune queries with Index scan and seek operations
Просмотров 983 месяца назад
Let us see some examples of fine tuning queries with SCAN and SEEK operations in SQL Server. 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 🚀►Github for queries: github.com/Bobirmirzo/Performance/blob/main/Session_2.txt Watch all my playlists here: 🚀►Full course on Troubleshooting sessions: ruclips.net/p/PLxuuX6jGq7kmlUblaWyfIh-iT5r0EWrJX&si=gC5FAhH9i6_b0waY 🚀►Ful...
Session 5: How SQL Server chooses which index and operators (seek, scan) to use for queries
Просмотров 1123 месяца назад
Do you ever wonder how SQL Server chooses which index to use and which operator to perform in execution plans? What factors plan an important role in this decision? Knowing the above is crucial while troubleshooting, fine tuning queries or creating indexes. Let us learn this in this session! 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobirmirzo-arslanov-548960173 🚀►Github for queries: gith...
Session 4: Data access operators in SQL Server: Scans, Seeks and Key/RID Lookup
Просмотров 1423 месяца назад
Let us quickly learn data access operators in SQL Server in this session. Data access operators nearly exist in all the execution plans and you should deeply understand these operators as they can define performance issues in many cases. Chapters 0:20 - Table Scan 1:45 - Non-clustered index-seek with RID lookup 3:55 - Non-clustered index scan, Non-clustered index seek without RID lookup 7:30 - ...
Session 2: SQL Server execution plan overview
Просмотров 2253 месяца назад
In this session, we will briefly go through sql server execution plan by learning types of the plan and how to get the plans. Furthermore, we will go through important parts of the plan. 0:33 - Execution plan formats 1:00 - Estimated and actual plans 4:10 - Inflight execution plan 5:30 - Operator functions: Init(), GetRow(), Submit(), Close() 🧑💼►Follow me on LinkedIn - www.linkedin.com/in/bobi...
Session 1: SQL Server Optimizer: deeper dive!
Просмотров 5123 месяца назад
In this session, we will dive deeper into the sql server optimizer which is responsible for generating execution plans and greatly impact SQL Server performance. Chapters 0:17 - Query execution workflow 4:15 - Parsing, binding and algebraic tree 5:28 - Optimizer internal steps 5:57 - Simplification 8:10 - Trivial plan 9:07 - Statistics loading 9:50 - Join ordering 12:05 - Stage 0, Stage 1 and S...
Understand and troubleshoot latency in AG synchronization in SQL Server
Просмотров 7526 месяцев назад
Understand and troubleshoot latency in AG synchronization in SQL Server
Understand Statistics in SQL Server for better performance troubleshooting
Просмотров 1,4 тыс.7 месяцев назад
Understand Statistics in SQL Server for better performance troubleshooting
Professionally troubleshoot high CPU utilization in SQL Server
Просмотров 2,6 тыс.7 месяцев назад
Professionally troubleshoot high CPU utilization in SQL Server
2. Why SQLOS created? Can Windows Schedular schedule SQL Server process like other processes?
Просмотров 1647 месяцев назад
2. Why SQLOS created? Can Windows Schedular schedule SQL Server process like other processes?
1. Multitasking, multiprocessing and multi-threading in Windows
Просмотров 2127 месяцев назад
1. Multitasking, multiprocessing and multi-threading in Windows
Deeply Understand connectivity to VNN listener and troubleshoot connection failures efficiently
Просмотров 7568 месяцев назад
Deeply Understand connectivity to VNN listener and troubleshoot connection failures efficiently
4. Enable encryption in connections to SQL Server by meeting all certificate requirements
Просмотров 1 тыс.9 месяцев назад
4. Enable encryption in connections to SQL Server by meeting all certificate requirements
3. SSL Certificate types and requirements for SQL Server
Просмотров 1,2 тыс.9 месяцев назад
3. SSL Certificate types and requirements for SQL Server
2. Ways to encrypt connection to SQL Server
Просмотров 7489 месяцев назад
2. Ways to encrypt connection to SQL Server
Apply the execution plan from one server to another in SQL Server
Просмотров 28310 месяцев назад
Apply the execution plan from one server to another in SQL Server
[Detailed/Advanced] Effectively troubleshoot SQL Server transactional replication latency (Part 2)
Просмотров 42610 месяцев назад
[Detailed/Advanced] Effectively troubleshoot SQL Server transactional replication latency (Part 2)
[Detailed/Advanced] Effectively troubleshoot SQL Server transactional replication latency (Part 1)
Просмотров 85010 месяцев назад
[Detailed/Advanced] Effectively troubleshoot SQL Server transactional replication latency (Part 1)
In-detail: Understand and effectively troubleshoot deadlocks in SQL Server
Просмотров 59011 месяцев назад
In-detail: Understand and effectively troubleshoot deadlocks in SQL Server
I have got question again, Automatic failover has happened. SLO's like to which transaction and statement has caused the issue and triggered automatic failover? How to prove it is due to Memory\CPU\IO? and which transaction caused the issue. Is there any video which you already made on this? Thank you Sir for any information.
I will do video on this soon
Good job mate!! 👏🏼👏🏼
Thanks mate!
perfect
Thank you for watching 🙂
Can you do this without a certificate? Thanks.
No you cannot
Can we please have some videos on how to resolve wait issues, such as CX waits.
I have sessions on memory grant wait, io wait, lock wait such as bottlenecks. Have you seen those?
Thank you for this well needed series. What does it mean when your wait_time is negative?
What do you mean? Can you give me more context?
Thanks, you made this very clear. I will continue to watch until I can teach this to a peer!
I'm happy to hear you're finding it useful. Keep practicing!
Hello Sir, Thanks a lot for the video on AO alerting. I have tried setting up the below alerts and started getting thousands of emails. close to 95,000 emails. May I know the best way to handle this? Also, my second question is, Is it possible to alert (send email) the query which has caused the Latency issues ? ('1480' , 'AG Role Change (failover)') , ('976' , 'Database Not Accessible') , ('983' , 'Database Role Resolving') , ('3402' , 'Database Restoring') , ('19406', 'AG Replica Changed States') , ('35206', 'Connection Timeout') , ('35250', 'Connection to Primary Inactive') , ('35264', 'Data Movement Suspended') , ('35273', 'Database Inaccessible') , ('35274', 'Database Recovery Pending') , ('35275', 'Database in Suspect State') , ('35276', 'Database Out of Sync') , ('41091', 'Replica Going Offline') , ('41131', 'Failed to Bring AG Online') , ('41142', 'Replica Cannot Become Primary') , ('41406', 'AG Not Ready for Auto Failover') , ('41414', 'Secondary Not Connected');
I have tried setting up the below alerts and started getting thousands of emails. close to 95,000 emails. May I know the best way to handle this? >> I cannot exactly say cause of the excessive alerts without checking your environment. The below might be possible causes: a. you are setting thresholds very low causing trigger often. In this case, you should increase threshold b. The performance of AG is very slow causing alerts to be fired. In this case, you need to troubleshoot performance. I believe you know my session on this :) c. You set alerts wrongly. Have you set equations correctly? It is difficult for me to give any suggestions without looking at your environment and settings... Sorry
Thank you, its very helpful
Glad it was helpful!
Thanks very helpful
Glad you found it helpful!
I have been working on AO and issues since many years as a DBA. But it is strange that the entire video is completely new for me :-) You have nailed it brother. How do you learn\get this information ? Would you mind sharing the source ? Thanks a ton for this training video. I will try to implement and will see if I can do it.
Glad it was helpful! To be honest, based on mainly experience :) You can also look below docs: techcommunity.microsoft.com/blog/sqlserversupport/troubleshooting-data-movement-latency-between-synchronous-commit-alwayson-availa/319141
Great Brother. ❤
Thank you so much 😀
May I know what is the best way to setup alerts for Always on? I did try using few links in google but I am getting bulk of emails(close to 90000) to my inbox. Can you make any video for that too in your Always Playlist. Also, I need Merge replication issues and trouble shooting in advance level and secondly, stuck on where\how to start performance tuning. I have been following your videos since your first video. Do let me know if you give training too. Thanks a Ton for all the video trainings.
It seems not useful docs for alerts. I will try to give it soon :) For merge replicaion, sorry I do not have that now but I will do my best to do that soon also
@@arslanov1886 Thank you Sir for your responses.
So Latch is on page level?, Lock is on rowlevel?
Lock is at transaction level while latch is on resource level in memory (e.g. pages)
@ thankyou
Hi, I think rebuilding indexes updates the statistics only for the columns that have an index. For example the statistics that were created by "where" statement - they won't be updated when rebuilding indexes.
Good point!! Thanks🙂
@@arslanov1886 You're welcome. I'm not an expert, but I knew this one. Your channel is great by the way. Contains valuable information. Very helpful! 🙂
Thank you. Please keep watching 🙂
hii ... thanks for explaining ... 😊😊
Thank you for watching 🙂
woow.. thank u soo much sir, u explained very well and clear without doubt .. looking for more like this ... 😊😊😊
Thank u for watching🙂
Why is the volume so low?
Sorry for this. Have u tried increasing volume?
I cant hear you speaking even at full volume
This is what I have actually been looking for... More precisely explained.. Thanks a lot...
Hey, Fellow DBA here looking for a person for working toegether and learn more about SQL server If you are okay
I will be glad🙂
@@arslanov1886 how to contact you bud
Nice video, can you make a video of SQL server pages types and working please
I did🙂
Hello sir how did you choose domain name? Is it computer name or else? Please let me know 🙏
Hello. I just chose it randomly. You can chose any domain name you want :)
@arslanov1886 sir is it free ? Please make a complete detail video on it from scratch Please 🙏
@@abhay6276 Since this domain is just internal only, yes it is free and you can choose any name. If you want to make it external also making it available from outside, you should buy and use that name instead
@@arslanov1886 sir i want to build vm server for learning purpose like AOAG ...can you please make detail video from scratch please. Purchasing expensive resources not affordable..😊
Thank you so much sir 😊
You are welcome! 😊
Why forced manual fail over needed sir?
Forced failover is needed when automatic failover does not happen or not possible. Sometimes, customers choose asynchronous type for disaster recovery servers. In this case, if primary replica site fails, automatic failover does not happen and you should do manual failover. Please refer below: learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/perform-a-forced-manual-failover-of-an-availability-group-sql-server?view=sql-server-ver16
very well explained, liked your videos...
Glad you liked it!
very good
Bro your content of this video is awesome but your accent make me difficult to understand even though watching twice same result 😢😢😢
Thanks for your feedback, I will try to improve my clarity in future videos.
😊great job bro
Glad you enjoyed it!
Could you please share your Email id?
Sorry. I saw this late. arslan.bobir@gmail.com
@arslanov1886 Thank you so much, Bro. Love you
No problem bro. Keep great work.
Good view of whole process thanks
Glad you liked it.
Great Bro. I love your videos. Can you please make a video on query performance tunning?
Will try
@arslanov1886 great Arslan Bhai. Love you.
Thank you sir
You are welcome
Thank you!! For this informative video.
You are welcome, glad you liked it.
Thank you!! For sharing it.
You are welcome :)
Thank you for this. Could you please also touch upon LPIM setting and stolen pages perf counter.
Sure. Will do. Allow me sometime :)
Great session. Thank you. If we run backup in SQL server does it utilise buffer pool to copy the files or it reads directly from the disk. Could you please explain
No. Buffer pool is not used for backup
very useful
Glad you liked it
may you please suggest me a good performance tuning live classes from basics to advanced. Its my request
Great
I am glad that you liked it!
Very nice tutorial. Thanks
Glad you liked it
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.
Please increase the voice in these series so that you can hear it more clearly. The voice decreased accidentally while editing.