I want to backup and restore the database by using vb.net.I have a problem here.
.This dialogue box appear.
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open backup device 'C:\Documents and Settings\S\My Documents\sales.Bak'. Operating system error 5(Access is denied.).
[Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is terminating abnormally.
Can anyone help me to tell me why it's occur and how to solve it...