﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by bodhayansharma  / Take a Cold Backup without shutting down SQL. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 17 Jun 2013 23:52:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Take a Cold Backup without shutting down SQL.</title><link>http://www.sqlservercentral.com/Forums/Topic409359-729-1.aspx</link><description>I tried your method and it does not work - for example:USE ENTERPRISE_SERVERSGOEXEC master.dbo.sp_dboption 'ENTERPRISE_SERVERS','autoclose',trueGODECLARE @cmd VARCHAR(255)SET @cmd = 'copy C:\SQLDATA\ENTERPRISE_SERVERS.mdf "C:\BACKUPS\"'EXEC master.dbo.xp_cmdshell @cmdEXEC master.dbo.sp_dboption 'ENTERPRISE_SERVERS','autoclose',falseGO..................returns the folllowing error:The process cannot access the file because it is being used by another process............which defeats the purpose</description><pubDate>Thu, 30 Jul 2009 06:15:19 GMT</pubDate><dc:creator>msearnest</dc:creator></item><item><title>Take a Cold Backup without shutting down SQL.</title><link>http://www.sqlservercentral.com/Forums/Topic409359-729-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Backup+%2f+Restore/30292/"&gt;Take a Cold Backup without shutting down SQL.&lt;/A&gt;[/B]</description><pubDate>Thu, 11 Oct 2007 01:06:33 GMT</pubDate><dc:creator>bodhayansharma</dc:creator></item></channel></rss>