Cannot write an XEL file to my C drive from an Extended Events session

  • CREATE EVENT SESSION query_performance ON SERVER

    ADD EVENT sqlserver.sp_statement_completed(

    ACTION(sqlserver.query_hash)

    WHERE sqlserver.database_id = 13 AND sqlserver.query_hash <> 0),

    ADD EVENT sqlserver.sql_statement_completed(

    ACTION(sqlserver.query_hash)

    WHERE sqlserver.database_id = 13 AND sqlserver.query_hash <> 0)

    ADD TARGET package0.event_file(SET filename = N'C:\Temp\Traces\query_performance.xel');

  • Could it be possible your SQL Server service acct does not have permissions to the folder? (Try checking permissions to verify?)

    --------------------------------------------------
    ...0.05 points per day since registration... slowly crawl up to 1 pt per day hopefully 😀

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply