QuestionQ61
Monitor, configure, and optimize database resourcesYou have an Azure subscription containing a SQL Server instance on Azure Virtual Machines. The virtual machine hosts a database named DB1.
You need to monitor DB1 by using Extended Events. The solution must meet these requirements:
- Capture raw event data and store it in Azure Storage.
- Minimize the performance impact of capturing extended events.
How should you complete the Transact-SQL statement?
Select
CREATE EVENT SESSION session1 ON DATABASE ADD EVENT sqlserver.sql_statement_starting ( ACTION (sqlserver.sql_text) WHERE statement LIKE 'UPDATE gmTabEmployee%' ) ADD TARGET package0. ( SET filename = 'https://gmstorageaccountexevent.blob.core.windows.net/gmcontainerxevent/anyfilenamexl242b.xel' ) WITH ( MAX_MEMORY = 10 MB, EVENT_RETENTION_MODE = , MAX_DISPATCH_LATENCY = 3 SECONDS )
Community Discussion