c# Backup sql server database, error Operating system error 5(Access is denied.)
You can find the account that your SQL service runs as through the services dialog on the server. That's the account that needs write permission to the directory that you've specified.