For my school project I need to send .mdf file to my teacher. I'm trying to copy .mdf file of my database witch is saved in "C:\Program Files\Microsoft SQL Server\MSSQL15.SQL2019\MSSQL\DATA" folder. But windows doesn't let me do that. It gives me an error
Open Error: Access id denied.
I tried to change folder permissions but it didn't works. I don't want backup file or script file, because my teacher said to send .mdf file. Is there any way to copy that?
Since it was restricted by windows, I made a bootable flash drive with linux and run it on startup and use it to copy mdf file. It seems to be the only way which works for me.