Hi @Meunier, Alex ,
> That temp file is not used by anything else even if that message says so, I have check with ProcessExplorer
Could you use Process Explorer to check again no process using this file? Or you can using other method to find out which process is locking a file or folder in Windows.
Method one;
Download Process Explorer and run the program.
• Click the Find menu, and choose Find Handle or DLL...
• Type the file name (name of the file which is locked by some process.)
• After typing the search phrase, click the Search button
Once you know what process has file locked you need to close that process (by closing that program) AND/OR by using KILL in the process explorer terminating that process.
Method two;
You can use the Resource Monitor for this which comes built-in with Windows 7, 8, and 10.
1.Open Resource Monitor, which can be found
•By searching for Resource Monitor or resmon.exe in the start menu, or
•As a button on the Performance tab in your Task Manager
2.Go to the CPU tab
3.Use the search field in the Associated Handles section
•See blue arrow in screen shot below
When you've found the handle, you can identify the process by looking at the Image and/or PID column.
You can then try to close the application as you normally would, or, if that's not possible, just right-click the handle and kill the process directly from there.
Please refer to the thread Find out which process is locking a file or folder in Windows to get more information.
Did any antivirus software enabled on your server? You can try to disable it , then re-enable it after running the report. Did you meet the same issue when you using SSMS 17.9.1? SSMS 17.9.1 and SSMS 18.8 can be installed side by side.
Best regards,
Cathy
If the response is helpful, please click "Accept Answer" and upvote it, thank you.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.