Below is the query that I am using to backup (create a .bak) my database.
.bak
However, whenever I run it, I always get this error message:
In my case, I forgot to name the backup file and it kept giving me the same permission error :/
TO DISK N'{path}\WRITE_YOUR_BACKUP_FILENAME_HERE.bak'