After I create this event and I want start it, it throws a error. I create event with following code:
create event session WaitTest on serveradd event sqlos.wait_info(WHERE sqlserver.session_id=61and duration>0)add target package0.asynchronous_file_target(set filename=N'c:\wait_stats.xel')
go
and start it with this:
alter event session WaitTest on server state =start;
and it throws this error:
The target, "CE79811F-1A80-40E1-8F5D-7445A3F375E7.package0.asynchronous_file_target", encountered a configuration error during initialization. Object cannot be added to the event session.
Does anyone know where is the problem and how this problem fix?
Thx.