データベース・ビューの作成
Microsoft EndPoint Protection は、 SQL Server Management Studio (SSMS) を使用して EndPoint Protection SQL データベースを管理します。
手順
- Microsoft EndPoint Protection SQL データベースをホストするシステムにログインします。
- 「スタート」 メニューから、 「ファイル名を指定して実行」を選択します。
- 以下のコマンドを入力します。
ssms
- 「OK」をクリックします。
- Microsoft Endpoint Protection データベースにログインします。
- 「オブジェクト・エクスプローラー」から、 「データベース」を選択します。
- データベースを選択し、 「ビュー」をクリックします。
- ナビゲーション・メニューから、 「新規照会」をクリックします。
- 「照会」 ペインで、以下の Transact-SQL ステートメントを入力して、データベース・ビューを作成します。
create view dbo.MalwareView as select n.Type , n.RowID , n.Name , n.Description , n.Timestamp , n.SchemaVersion , n.ObserverHost , n.ObserverUser , n.ObserverProductName , n.ObserverProductversion , n.ObserverProtectionType , n.ObserverProtectionVersion , n.ObserverProtectionSignatureVersion , n.ObserverDetection , n.ObserverDetectionTime , n.ActorHost , n.ActorUser , n.ActorProcess , n.ActorResource , n.ActionType , n.TargetHost , n.TargetUser , n.TargetProcess , n.TargetResource , n.ClassificationID , n.ClassificationType , n.ClassificationSeverity , n.ClassificationCategory , n.RemediationType , n.RemediationResult , n.RemediationErrorCode , n.RemediationPendingAction , n.IsActiveMalware , i.IP_Addresses0 as 'SrcAddress'from v_AM_NormalizedDetectionHistory n, System_IP_Address_ARR i, v_RA_System_ResourceNames s, Network_DATA d where n.ObserverHost = s.Resource_Names0 and s.ResourceID = d.MachineID and d.IPEnabled00 = 1 and d.MachineID = i.ItemKey and i.IP_Addresses0 like '%.%.%.%'; - 「照会」 ペインで、右クリックして 「実行」を選択します。
ビューが作成されると、結果ペインに以下のメッセージが表示されます。
Command(s) completed successfully.