Created
June 8, 2017 23:40
-
-
Save ichiroku11/b23b78513c8ae04c26c101e014195a7a to your computer and use it in GitHub Desktop.
拡張イベントのターゲットのオプションを確認するクエリ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| xe_p.name as package_name, | |
| xe_o.name as target_name, | |
| xe_oc.name as column_name, | |
| xe_oc.column_type as column_type, | |
| xe_oc.type_name as type_name, | |
| xe_oc.description as column_description, | |
| * | |
| from sys.dm_xe_packages as xe_p | |
| inner join sys.dm_xe_objects as xe_o | |
| on xe_p.guid = xe_o.package_guid | |
| inner join sys.dm_xe_object_columns as xe_oc | |
| on xe_o.package_guid = xe_oc.object_package_guid and | |
| xe_o.name = xe_oc.object_name | |
| where | |
| xe_p.name = N'package0' and | |
| xe_o.name in (N'ring_buffer', N'event_file') and | |
| xe_o.object_type = N'target'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment