0% found this document useful (0 votes)
20 views

June-19 Azure Sqlchamp

Uploaded by

khalandar463
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

June-19 Azure Sqlchamp

Uploaded by

khalandar463
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

MS SQL DBA.

This program has well designed and totally focused for SQL Server Database Administrators and
to make them comfortably experts in Microsoft Azure (IaaS and PaaS)

Part1: Below is the topic wise course Part2: (PART2 will publish Soon. Please reach
content: me for more info)

20. Performance Tuning in Azure DB’s


1. What is Infrastructure as model? 21. Azure Calculator
2. What is PASS model? 22. Azure Hybrid Benefit
3. What is SAAS model? 23. Reservations
4. What is single database? 24. Read-scale out option
5. Security (logins& users& Roles) 25. DTU Calculator
6. Backup retention? 26. Automation (how many ways)
7. Restore DB’s from backups 27. Windows Scheduler
8. Restore DB’s from deleted databases 28. On premise SQL Agent
9. Long term backups 29. Runbooks
10. Refresh non- prod’sDBA 30. Elastic Jobs
11. AVG, MIN and MAX DTU usage? 31. Difference between Infrastructure vs pass
12. what is elastic databases? model?
13. Cost saving in elastic databases? 32. Difference among single vs elastic vs
14. External Tables\ Elastic query\cross managed instance?
query\Polybase 33. Infrastructure as a model
15. DTU vs vCore model 34. Managed Instance
16. vCore model types 35. Storage account creation
17. Server less Db’s 36. Storage keys importance
18. HA/DR - Availability Groups 37. Azure Storage Explorer
18. HA/DR - Geo-Replication 38. Online/URL backup example
19. HA/DR- Data sync 39. How many ways we can Migrate
40. Data migration tool (Assessment mainly)
41. Data Migration Service (Offline & Online)
42. Backpack migration
43. Transactional Replication
44. Manual migration (schema script+ Import
and export /Linked Server)
45. Ticket raising with Microsoft
46. Deadlocks in Azure
47. Trace flags
48. Data scoped settings (MAXDOP)
49. Locks
50. Alerts
51. Recovery services vault
52. Cost Analysis
53. Roles in azure portal

Create MASTER KEY

CREATE DATABASE SCOPED CREDENTIAL refresh_credential WITH IDENTITY = 'Userdada',


SECRET = 'Welcome@1234';
GO

EXEC jobs.sp_add_target_group 'devlocaldb1';

EXEC jobs.sp_add_target_group_member
@target_group_name ='devlocaldb1',
@target_type='sqlserver',
@refresh_credential_name='refresh_credential',
@server_name='devlocaldb1.database.windows.net';

Select * from jobs.target_groups WHERE target_group_name = 'devlocaldb1'


Select * from jobs.target_group_members WHERE target_group_name ='devlocaldb1';

EXEC jobs.sp_add_target_group 'DBLocal1';


EXEC [jobs].sp_add_target_group_member
@target_group_name =N'DBLocal1',
@target_type=N'sqldatabase',
--@membership_type = N'Exclude',
--@refresh_credential_name='refresh_credential',
@server_name=N'devlocaldb1.database.windows.net',
@database_name =N'db2';
GO

--Add job for create table


EXEC jobs.sp_add_job @job_name = 'ADDNEWTABLE1', @description = 'Create Table Test';

--Add jobs step for craete table


EXEC jobs.sp_add_jobstep @job_name = 'ADDNEWTABLE1',
@command = N'IF NOT EXISTS (SELECT * FROM sys.tables WHERE object_id = object_id
(''Employee''))
CREATE TABLE [dbo].[Employee]([Id] [int]) NOT NULL,Name varchar(200),Address
varchar(200));',
@credential_name = 'refresh_credential',
@target_group_name='devlocaldb1';

--step 4
EXEC jobs.sp_start_job 'ADDNEWTABLE1'

--
SELECT * FROM jobs.job_executions
WHERE is_active = 1 AND job_name = 'ADDNEWTABLE1'
ORDER BY start_time DESC;
GO

SELECT * FROM jobs.job_executions


WHERE job_name = 'ADDNEWTABLE1'
ORDER BY start_time DESC;
GO

You might also like