2019年5月28日 星期二

【MS-SQL】Can't open .trc file generated by SQLDiag

想直接雙擊打開 SQLDiag 錄的 trc 但會碰到

SQL Server Profiler
Failed to open a file. Access is denied.
的錯誤視窗

似乎是因為 SQL Server Service 用 NT 帳號跑起來它做出來的檔案不會繼承權限(尤其你是 domain account 進電腦沒有本機 admin)。

trc 檔右鍵
Properties > Security > Advanced > Permissions > Continue > Enable inheritance > OK
再跑就可以了。

ref: MSDN

沒有留言:

張貼留言