February 26, 2018 at 9:51 am
In this morning, when I tried to check default trace for some info. I get the following error.
Actually, file is right there, and MSSQL has enough permission on it. If I copy the file to other drives or machines, it works well.
Did you ever run into similar issue? Any thought on it?
GASQL.com - Focus on Database and Cloud
February 26, 2018 at 10:02 am
The file is the one currently being written to. When you copy it, that's no longer the case.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
February 26, 2018 at 10:31 am
GilaMonster - Monday, February 26, 2018 10:02 AMThe file is the one currently being written to. When you copy it, that's no longer the case.
There are 5 trace files(Log_631.trc~Log_635.trc) there, on default trace. Got the same error when trying to SELECT from other files.
select * from fn_trace_gettable('F:\MSSQL\MSSQL13.MSSQLSERVER\MSSQL\Log\log_634.trc', default)
After copying them to other drives or machine, it works well.
GASQL.com - Focus on Database and Cloud
February 27, 2018 at 6:04 pm
Have you tried stopping and removing the trace? If it works after the trace has been removed, then it means the trace is holding onto the file(s). I've noticed that stopping the trace alone will not allow me to access the trace file.
February 28, 2018 at 9:58 am
RandomStream - Tuesday, February 27, 2018 6:04 PMHave you tried stopping and removing the trace? If it works after the trace has been removed, then it means the trace is holding onto the file(s). I've noticed that stopping the trace alone will not allow me to access the trace file.
I didn't try to stop or remove it. Since it's default trace, it can not be stopped or modified. We set it on by default as part of standard. Thanks for sharing your thoughts and experience.
GASQL.com - Focus on Database and Cloud
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply