الأكواد الديناميكية لمراقبة ومتابعة حلول تزامن البيانات 2/ 3


فى المقالة السابق تم شرح بعض الأكواد الديناميكية التى تقوم بمتابعة حاله تزام البيانات بين الخادم A و الخادم B  ومن ثم ارسال بريد الكتروني الى المسئولين في حال تعطل التزامن و نحن بصدد هذا المقال اليوم سنقوم باضافة المزيد من  الأكواد الديناميكيه من اجل دعم عملية مراقبه ومتابعه  تزامن البيانات SQL Server Replication  في جوانب اخرى غاية في الاهمية كما هو موضح ادناه  :

النقاط التى سوف يتم تناولها وشرحها فى هذا المقال :

  • معلومات كامله عن مكونات تزامن البيانات
  • ايجاد الجداول المستخدمه فى عمليه تزامن البيانات

لقراءه المقال كاملا يجى الذهاب الى هنا  (http://sqlserver-performance-tuning.net/?p=5871)

replica

 لمتابعه الناشر :

View all my tips , LinkedIn Website Slideshare ,Youtube Channel.

أهم بعض الأكواد الديناميكيه المستخدمه فى محرك قواعد بيانات مايكروسوفت 2014


فى المقال السابق تم شرح الصلاحيات الجديده فى محرك قواعد بيانات مايكروسوفت 2014 ولكن فى هذا المقال سوف اقوم بشرح وتحليل ثلاثه اكواد ديناميكيه تعتبر ذو أهميه عاليه لأى مستخدم لمحرك قواعد بيانات مايكروسوفت 2014  , كما نعلم ان محرك قواعد بيانات مايكروسوفت جاء الينا كطفره فى عالم قواعد البيانات وقام بتسجيل آداء ملحوظ فى معدىلات اداء مختلف انواع الاستعلامات  وذلك لأنه جاء بالعديد من المميزات والتطورات الجديده والملحوظه ومن أهم هذه التطورات فى محرك قواعد بيانات مايكروسوفت 2014 الجديد جداول الذاكره

 (In-memory-table or Memory-Optimized-table)

فهيا جداول لها بعض الخصائص ولها بعض الحدود ولكن جداول متميزه جدا فى سرعه تخزين البيانات والأستعلام عنها لانها يتم أنشائها على نوع جديد من أنواع الفهارس وهو

 (Clustered ColumnStore index) وأيضا تعتمد اعتماد كلى على ذاكره محرك البيانات وبناء على ذلك فهذه النوعيه من الجداول تتطلب ذاكره عاليه السرعه ويجب دعم الخادم او محرك قواعد البيانات 2014 بالذاكره الكافيه لكي تتحمل مثل هذه النوعيه من الجداول لذا فانني بصدد هذا المقال سوف اقوم بشرح وعرض بعض الأكواد الديناميكيه التى تقوم بالأستعلام عن بعض البيانات المهمه لهذا النوع من الجداول والفهارس وهيا كالأتى :

قائمه بكل جداول الذاكره الموجوده على قاعده البيانات

List All Memory-Optimized-table in SQL Server 2014.

أيجاد الذاكره المستخدمه لجدول واحد من جداول الذاكره .

Find allocated memory for one Memory-Optimized-Table.

ايجاد الذاكره المستخدمه لجميع جداول الذاكره الموجوده على قاعده البيانات.

Find allocated memory for All Memory-Optimized-Table.

قائمه بكل الفهارس الجديده التى ظهرت فى محرك قواعد بيانات مايكروسوفت 2014 .HASH Index

List on Non-Clustered HASH index in SQL Server 2014.

قائمه بكل الجداول التى يوجد بها فهرس Clustered ColumnStore index

List by all tables have Clustered Column Store index in SQL Server 2014

لأستكمال المقاله يرجى الذهاب الى هذا العنوان من هنا 

To check all my posts you can direct to my personal website or you can download this Excel sheet My Technical POSTS

View all my tips , LinkedIn Website Slideshare ,Youtube Channel

SQL Server DMV Replication Monitoring Part 2


cloud-monitoring

 

Hello my followers  in the previous post i started my new series in (SQL Server DMV Replication Monitoring) and i explained very interested point for any DBA WORKING on replication solutions How we can know the current status of our Publication and subscription is it Active , In Active by simple DMV depend on dynamic Query technique and on SQL Server cursor TECHNOLOGY .

 

Summary of the previous post:
1- Publication Status
2- Subscription Status
3- Send Email by the Current status

 Replication in SQL Server Series  

1     2      3       4 

DMV Replication Monitoring Series  1     2

Today is  will complete this series to be this part is part two and i will add 2 new point very helpful for our daily WORK :

  • Replication information for the Complete setup.
  • Find publication article.

Continue reading “SQL Server DMV Replication Monitoring Part 2”

SQL Server DMV Replication Monitoring Part 1


IC216462

 

Hello My followers  today i will took in very important subject for any DBA How we can monitor our Replications !! for any replication i have publication and subscription , How i can now is it working or it is active or down or what is the status of it now , based on that i created one DMV build with technique of Dynamic Query and using SQL Server cursor but before you go for Monitoring (advanced level) you should know some points at the beginning :

 

 

 

 

Replication in SQL Server Part 1

  • What is SQL Replication?
  • Types of SQL Replication
  • Replication Overview

Replication in SQL Server Part 2

  • How to create Transaction Replication

Replication in SQL Server Part 3

  • How to Add New Publisher Server to the Distributor Server

Replication in SQL Server Part 4

  • Disable Publishing and Distribution Servers

Now after we explained the main highlights for the replication lets see How we can monitor the status of the publication and subscription? and How we can receive email if any one of them is InActive :

  • First i return all databases used in replication
[sql]

SELECT
 MSA.publisher_db AS 'Database Name'
FROM
 distribution.DBO.MSarticles AS MSA
OPEN db_cursor
[/sql]

Continue reading “SQL Server DMV Replication Monitoring Part 1”

Awesome!! DMV and Stored procedure for any DBA


 Untitled Hello every body today no new post today but i will share some amazing and Awesome!!  DMV and stored i created it to help me in my daily work really it is very helpful for any Database Administrator
  • Create Clustered Index on all HEAP Tables by on Single Click.

this one of the best DMV for me because it fast the process for me and it is very helpful by this Stored procedure i sued the technique of   SQL SERVER DYNAMIC QUERY to loop on all databases exists on my SQL SERVER CLUSTER where this databases is not in system databases and it should be with status online to retrieve from it

  1. list by all heap tables.
  2. Loop in this list to retrieve the best column can be Clustered index Based on the criteria that have been developed from my side (Customized option )
  3. build the T-SQL statment of create clustered index

For more information and for download DMV check the (POST &  VIDEO)

  • Index Statistics for all Databases Exists on your Server

NOW any DBA can return all his index Statistics and save it to decide what he need to do shall i should drop some index (UNUSED INDEX) or shall i should check the index size to take A wise decision we should have the information about the index (last user seek data and percentage , user scan , index size , drop index statement if you need to delete index,..ETC)

For more information and for download DMV check the (POST)

Continue reading “Awesome!! DMV and Stored procedure for any DBA”