October 11, 2007 at 1:06 am
Comments posted to this topic are about the item Take a Cold Backup without shutting down SQL.
July 30, 2009 at 6:15 am
I tried your method and it does not work - for example:
USE ENTERPRISE_SERVERS
GO
EXEC master.dbo.sp_dboption 'ENTERPRISE_SERVERS','autoclose',true
GO
DECLARE @cmd VARCHAR(255)
SET @cmd = 'copy C:\SQLDATA\ENTERPRISE_SERVERS.mdf "C:\BACKUPS\"'
EXEC master.dbo.xp_cmdshell @cmd
EXEC master.dbo.sp_dboption 'ENTERPRISE_SERVERS','autoclose',false
GO
..................returns the folllowing error:
The process cannot access the file because it is being used by another process.
...........which defeats the purpose
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy