I'm trying to create a backup file of a database in SQL 2005. When I try to execute the backup operation I get an error saying "cannot access this file, it is in use by another process". Any advice on what I have to do to get this working?
Thanks!
|
I'm trying to create a backup file of a database in SQL 2005. When I try to execute the backup operation I get an error saying "cannot access this file, it is in use by another process". Any advice on what I have to do to get this working? Thanks!
| ||||
|
feedback
|
|
Are you able to put the database in single-user mode? Try to back it up that way as a test. | |||
|
feedback
|
|
Any chance you have another program running against that database, for example Visual Studio, or have log file open in notepad or something? | |||||
feedback
|
BACKUP DATABASE [yourdatabase] TO DISK='C:\temporarybackup.bak' WITH COPY_ONLY? – adaptr Oct 18 '11 at 15:59