SlideShare a Scribd company logo
Database Diagram
Store Procedure - uspMonthlyFee RESULTS “ Before” “ After”
Store Procedure - uspNightlyUpdate RESULTS “ Before” “ After”
Inline Table-Valued Function
Create an Indexed View Create a clustered index  on an existing view
Create Views for Reports Result From  View Selection
XML Loading
Configure Merge Replication
Merge Replication
Security Model Managing Security:  login, server scope permission, password police, certificate, symmetric key, asymmetric key database role,  user group,  authentication schemas, views, triggers, store procedure
Code for Encryption
Create BFManager role and add a member to the Role Add Securables and grant execution permission to BFManager
Get Sensitive Data by Authorized User EXECUTE AS USER  =  ‘NingYin'  EXEC sales .uspGetCreditCardNumber 1 REVERT ; GO Result: UnencryptedCCValue ------------------------------ 6598452635478965 (1 row(s) affected)
Schemas and Views Schemas: Inventory, Sales Create a view for inventory search
Triggers   Use DML triggers to enforce data integrity Use DDL trigger to respond object changes in database CREATE TRIGGER AuditOperations ON DATABASE FOR DDL_TABLE_VIEW_EVENTS AS RAISERROR('DDL Database level changes are prevented by  the AuditOperations trigger', 16, 1)  ROLLBACK GO CREATE TRIGGER TransDeleteAuditor ON dbo.Transactions INSTEAD OF DELETE NOT FOR REPLICATION AS BEGIN RAISERROR('Transactions delete is prevented by the MDL trigger', 16, 1)  ROLLBACK END GO  CREATE TRIGGER AuditOperations ON DATABASE FOR DDL_DATABASE_LEVEL_EVENTS AS DECLARE @data xml DECLARE @cmd nvarchar(350) DECLARE @logMsg nvarchar(400) SET @data = eventdata() SET @cmd = @data.value ('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]', 'nvarchar(350)') SET @logMsg = @cmd + ' (' + SYSTEM_USER + ' on ' + HOST_NAME() + ')' RAISERROR (@logMsg, 10, 1) WITH LOG GO
Maintenance Jobs Backup Agent jobs Table partitioning Email notification Other: Performance monitoring and tuning
Backup Strategy Backup Plan: Full Backup:  Once a week Sunday night at 12:00am Differential Backup:  Every night 11:00pm Transaction Log Backup:  Every hour from 6:00am ~ 11:00pm
Schedule Agent Job: Daily Due Fee Update A store procedure is executed every night on SQL Server agent to check all customers and update information.
Table Partition Partition  Transaction table into 3 different file groups CREATE PARTITION FUNCTION pf_TransactionDate (datetime) AS RANGE RIGHT FOR VALUES('01/01/2008','01/01/2009') CREATE PARTITION SCHEME ps_TransactionDate AS PARTITION pf_TransactionDate  TO (fg1, fg2, fg3) CREATE TABLE dbo.TransactionArchive (TransactionID int IDENTITY NOT NULL, TransactionTYpeID int NOT NULL, CustomerID int NOT NULL, CopyID int NOT NULL, MediaID int NOT NULL, StoreID int NOT NULL, TransactionDate datetime NOT NULL) ON ps_TransactionDate(TransactionDate) Implement  partitioning and verify: USE BlockFlix INSERT INTO dbo.MediaArchive(MediaID, Title, GenreID, RatingID, [Year]) SELECT MediaID, Title, GenreID, RatingID, [Year] FROM dbo.Media SELECT MediaID, Title, $Partition.pf_MediaReleaseYear([Year]) PartitionNo FROM dbo.MediaArchive MediaID  Title  PartitionNo ----------- -------------------------------------------------- ----------- 1011  A Great Flick  1 1012  Ba BOO  1 1013  Botle Neck  1 1016  Lefty    1 1017  Looking Down  3 1018  Too Much SQL  3 1019  Moo Money  3 1020  Late For Dinner  3
Table Partition
Configure Database Mail for Notification
Configure Agent to Use Database Mail
System Monitoring
BlockFlix Database Maintenance Plan Backup  Database Task Create Reorganize Index Task Check BlockFlix Database IntegrityTask Resource Error Task Execute SQL Server Agent Job: Check Media Due Process Execute T-SQL statement Task Maintenance cleanup task Rebuild index task History cleanup task Shrink database task Update statistics task
BlockFlix Database Maintenance Plan
Report: Membership
Report: Available Movies
Ad

More Related Content

Viewers also liked (14)

Bonus pelajaran bahasa arab
Bonus pelajaran bahasa arabBonus pelajaran bahasa arab
Bonus pelajaran bahasa arab
Muhammad Idris
 
Tugas kewarganegaraan x ap 1
Tugas kewarganegaraan  x ap 1Tugas kewarganegaraan  x ap 1
Tugas kewarganegaraan x ap 1
sutawidyarta
 
Context and culture in language teaching
Context and culture in language teachingContext and culture in language teaching
Context and culture in language teaching
Asniem CA
 
Social Housing and the New Urban Agenda
Social Housing and the New Urban AgendaSocial Housing and the New Urban Agenda
Social Housing and the New Urban Agenda
Stefanos Fotiou, UNESCAP
 
Preparing the new urban agenda
Preparing the new urban agendaPreparing the new urban agenda
Preparing the new urban agenda
IIED
 
Bab 6 rpp ppkn sma kls xi menyibak kasus pelanggaran hak dan pengingkaran ke...
Bab 6 rpp ppkn sma kls xi  menyibak kasus pelanggaran hak dan pengingkaran ke...Bab 6 rpp ppkn sma kls xi  menyibak kasus pelanggaran hak dan pengingkaran ke...
Bab 6 rpp ppkn sma kls xi menyibak kasus pelanggaran hak dan pengingkaran ke...
eli priyatna laidan
 
Propulsion
PropulsionPropulsion
Propulsion
deep dave
 
Perbandingan pancasila dengan ideologi ideologi lainnya
Perbandingan pancasila dengan ideologi ideologi lainnyaPerbandingan pancasila dengan ideologi ideologi lainnya
Perbandingan pancasila dengan ideologi ideologi lainnya
Adrian Ekstrada
 
Powertrain and suspension layout of Nissan GTR
Powertrain and suspension layout of Nissan GTRPowertrain and suspension layout of Nissan GTR
Powertrain and suspension layout of Nissan GTR
Gowtham Subramanian
 
Makalah indonesia dan perdamaian dunia
Makalah indonesia dan perdamaian duniaMakalah indonesia dan perdamaian dunia
Makalah indonesia dan perdamaian dunia
Yudha Irawan
 
Revisando o quinhentismo, 01
Revisando o quinhentismo, 01Revisando o quinhentismo, 01
Revisando o quinhentismo, 01
ma.no.el.ne.ves
 
Hukum Hukum Dasar Kimia
Hukum Hukum Dasar KimiaHukum Hukum Dasar Kimia
Hukum Hukum Dasar Kimia
Puswita Septia Usman
 
Surat pemulangan buku teks 2015
Surat pemulangan buku teks 2015Surat pemulangan buku teks 2015
Surat pemulangan buku teks 2015
Aidah Ja'afar
 
Visual Resume (Draft)
Visual Resume (Draft)Visual Resume (Draft)
Visual Resume (Draft)
Corbin Otwell
 
Bonus pelajaran bahasa arab
Bonus pelajaran bahasa arabBonus pelajaran bahasa arab
Bonus pelajaran bahasa arab
Muhammad Idris
 
Tugas kewarganegaraan x ap 1
Tugas kewarganegaraan  x ap 1Tugas kewarganegaraan  x ap 1
Tugas kewarganegaraan x ap 1
sutawidyarta
 
Context and culture in language teaching
Context and culture in language teachingContext and culture in language teaching
Context and culture in language teaching
Asniem CA
 
Preparing the new urban agenda
Preparing the new urban agendaPreparing the new urban agenda
Preparing the new urban agenda
IIED
 
Bab 6 rpp ppkn sma kls xi menyibak kasus pelanggaran hak dan pengingkaran ke...
Bab 6 rpp ppkn sma kls xi  menyibak kasus pelanggaran hak dan pengingkaran ke...Bab 6 rpp ppkn sma kls xi  menyibak kasus pelanggaran hak dan pengingkaran ke...
Bab 6 rpp ppkn sma kls xi menyibak kasus pelanggaran hak dan pengingkaran ke...
eli priyatna laidan
 
Perbandingan pancasila dengan ideologi ideologi lainnya
Perbandingan pancasila dengan ideologi ideologi lainnyaPerbandingan pancasila dengan ideologi ideologi lainnya
Perbandingan pancasila dengan ideologi ideologi lainnya
Adrian Ekstrada
 
Powertrain and suspension layout of Nissan GTR
Powertrain and suspension layout of Nissan GTRPowertrain and suspension layout of Nissan GTR
Powertrain and suspension layout of Nissan GTR
Gowtham Subramanian
 
Makalah indonesia dan perdamaian dunia
Makalah indonesia dan perdamaian duniaMakalah indonesia dan perdamaian dunia
Makalah indonesia dan perdamaian dunia
Yudha Irawan
 
Revisando o quinhentismo, 01
Revisando o quinhentismo, 01Revisando o quinhentismo, 01
Revisando o quinhentismo, 01
ma.no.el.ne.ves
 
Surat pemulangan buku teks 2015
Surat pemulangan buku teks 2015Surat pemulangan buku teks 2015
Surat pemulangan buku teks 2015
Aidah Ja'afar
 
Visual Resume (Draft)
Visual Resume (Draft)Visual Resume (Draft)
Visual Resume (Draft)
Corbin Otwell
 

Similar to Database Development Replication Security Maintenance Report (20)

Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
Kbengt521
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
MariaDB plc
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
MariaDB plc
 
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Bob Ward
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21
Stamatis Zampetakis
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
Jürgen Ambrosi
 
Training on Microsoft SQL Server(older version).pptx
Training on Microsoft SQL Server(older version).pptxTraining on Microsoft SQL Server(older version).pptx
Training on Microsoft SQL Server(older version).pptx
naibedyakar00
 
New Features of SQL Server 2016
New Features of SQL Server 2016New Features of SQL Server 2016
New Features of SQL Server 2016
Mir Mahmood
 
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
MariaDB plc
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19c
RachelBarker26
 
Oracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILMOracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILM
Monowar Mukul
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development
Open Party
 
IBM Informix dynamic server 11 10 Cheetah Sql Features
IBM Informix dynamic server 11 10 Cheetah Sql FeaturesIBM Informix dynamic server 11 10 Cheetah Sql Features
IBM Informix dynamic server 11 10 Cheetah Sql Features
Keshav Murthy
 
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Altinity Ltd
 
What’s New in MariaDB Server 10.2
What’s New in MariaDB Server 10.2What’s New in MariaDB Server 10.2
What’s New in MariaDB Server 10.2
MariaDB plc
 
PHP tips by a MYSQL DBA
PHP tips by a MYSQL DBAPHP tips by a MYSQL DBA
PHP tips by a MYSQL DBA
Amit Kumar Singh
 
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Guatemala User Group
 
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
HostedbyConfluent
 
Streaming SQL for Data Engineers: The Next Big Thing?
Streaming SQL for Data Engineers: The Next Big Thing?Streaming SQL for Data Engineers: The Next Big Thing?
Streaming SQL for Data Engineers: The Next Big Thing?
Yaroslav Tkachenko
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation Training
Franky Lao
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
Kbengt521
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
MariaDB plc
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
MariaDB plc
 
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017Enhancements that will make your sql database roar sp1 edition sql bits 2017
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Bob Ward
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21
Stamatis Zampetakis
 
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
Jürgen Ambrosi
 
Training on Microsoft SQL Server(older version).pptx
Training on Microsoft SQL Server(older version).pptxTraining on Microsoft SQL Server(older version).pptx
Training on Microsoft SQL Server(older version).pptx
naibedyakar00
 
New Features of SQL Server 2016
New Features of SQL Server 2016New Features of SQL Server 2016
New Features of SQL Server 2016
Mir Mahmood
 
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
Die Neuheiten in MariaDB 10.2 und MaxScale 2.1
MariaDB plc
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19c
RachelBarker26
 
Oracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILMOracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILM
Monowar Mukul
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development
Open Party
 
IBM Informix dynamic server 11 10 Cheetah Sql Features
IBM Informix dynamic server 11 10 Cheetah Sql FeaturesIBM Informix dynamic server 11 10 Cheetah Sql Features
IBM Informix dynamic server 11 10 Cheetah Sql Features
Keshav Murthy
 
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Polyglot ClickHouse -- ClickHouse SF Meetup Sept 10
Altinity Ltd
 
What’s New in MariaDB Server 10.2
What’s New in MariaDB Server 10.2What’s New in MariaDB Server 10.2
What’s New in MariaDB Server 10.2
MariaDB plc
 
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Guatemala User Group
 
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
Streaming SQL for Data Engineers: The Next Big Thing? With Yaroslav Tkachenko...
HostedbyConfluent
 
Streaming SQL for Data Engineers: The Next Big Thing?
Streaming SQL for Data Engineers: The Next Big Thing?Streaming SQL for Data Engineers: The Next Big Thing?
Streaming SQL for Data Engineers: The Next Big Thing?
Yaroslav Tkachenko
 
Database Foundation Training
Database Foundation TrainingDatabase Foundation Training
Database Foundation Training
Franky Lao
 
Ad

Recently uploaded (20)

How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Ad

Database Development Replication Security Maintenance Report

  • 2. Store Procedure - uspMonthlyFee RESULTS “ Before” “ After”
  • 3. Store Procedure - uspNightlyUpdate RESULTS “ Before” “ After”
  • 5. Create an Indexed View Create a clustered index on an existing view
  • 6. Create Views for Reports Result From View Selection
  • 10. Security Model Managing Security: login, server scope permission, password police, certificate, symmetric key, asymmetric key database role, user group, authentication schemas, views, triggers, store procedure
  • 12. Create BFManager role and add a member to the Role Add Securables and grant execution permission to BFManager
  • 13. Get Sensitive Data by Authorized User EXECUTE AS USER = ‘NingYin' EXEC sales .uspGetCreditCardNumber 1 REVERT ; GO Result: UnencryptedCCValue ------------------------------ 6598452635478965 (1 row(s) affected)
  • 14. Schemas and Views Schemas: Inventory, Sales Create a view for inventory search
  • 15. Triggers Use DML triggers to enforce data integrity Use DDL trigger to respond object changes in database CREATE TRIGGER AuditOperations ON DATABASE FOR DDL_TABLE_VIEW_EVENTS AS RAISERROR('DDL Database level changes are prevented by the AuditOperations trigger', 16, 1) ROLLBACK GO CREATE TRIGGER TransDeleteAuditor ON dbo.Transactions INSTEAD OF DELETE NOT FOR REPLICATION AS BEGIN RAISERROR('Transactions delete is prevented by the MDL trigger', 16, 1) ROLLBACK END GO CREATE TRIGGER AuditOperations ON DATABASE FOR DDL_DATABASE_LEVEL_EVENTS AS DECLARE @data xml DECLARE @cmd nvarchar(350) DECLARE @logMsg nvarchar(400) SET @data = eventdata() SET @cmd = @data.value ('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]', 'nvarchar(350)') SET @logMsg = @cmd + ' (' + SYSTEM_USER + ' on ' + HOST_NAME() + ')' RAISERROR (@logMsg, 10, 1) WITH LOG GO
  • 16. Maintenance Jobs Backup Agent jobs Table partitioning Email notification Other: Performance monitoring and tuning
  • 17. Backup Strategy Backup Plan: Full Backup: Once a week Sunday night at 12:00am Differential Backup: Every night 11:00pm Transaction Log Backup: Every hour from 6:00am ~ 11:00pm
  • 18. Schedule Agent Job: Daily Due Fee Update A store procedure is executed every night on SQL Server agent to check all customers and update information.
  • 19. Table Partition Partition Transaction table into 3 different file groups CREATE PARTITION FUNCTION pf_TransactionDate (datetime) AS RANGE RIGHT FOR VALUES('01/01/2008','01/01/2009') CREATE PARTITION SCHEME ps_TransactionDate AS PARTITION pf_TransactionDate TO (fg1, fg2, fg3) CREATE TABLE dbo.TransactionArchive (TransactionID int IDENTITY NOT NULL, TransactionTYpeID int NOT NULL, CustomerID int NOT NULL, CopyID int NOT NULL, MediaID int NOT NULL, StoreID int NOT NULL, TransactionDate datetime NOT NULL) ON ps_TransactionDate(TransactionDate) Implement partitioning and verify: USE BlockFlix INSERT INTO dbo.MediaArchive(MediaID, Title, GenreID, RatingID, [Year]) SELECT MediaID, Title, GenreID, RatingID, [Year] FROM dbo.Media SELECT MediaID, Title, $Partition.pf_MediaReleaseYear([Year]) PartitionNo FROM dbo.MediaArchive MediaID Title PartitionNo ----------- -------------------------------------------------- ----------- 1011 A Great Flick 1 1012 Ba BOO 1 1013 Botle Neck 1 1016 Lefty 1 1017 Looking Down 3 1018 Too Much SQL 3 1019 Moo Money 3 1020 Late For Dinner 3
  • 21. Configure Database Mail for Notification
  • 22. Configure Agent to Use Database Mail
  • 24. BlockFlix Database Maintenance Plan Backup Database Task Create Reorganize Index Task Check BlockFlix Database IntegrityTask Resource Error Task Execute SQL Server Agent Job: Check Media Due Process Execute T-SQL statement Task Maintenance cleanup task Rebuild index task History cleanup task Shrink database task Update statistics task