<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic Backups of ArcSDE on SQL Server Express in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168556#M9491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might help out with the task scheduler part of things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/4437701/run-a-batch-file-with-windows-task-scheduler" title="http://stackoverflow.com/questions/4437701/run-a-batch-file-with-windows-task-scheduler"&gt;Run a batch file with Windows task scheduler - Stack Overflow&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 14:53:47 GMT</pubDate>
    <dc:creator>SamuelTompsett</dc:creator>
    <dc:date>2014-07-11T14:53:47Z</dc:date>
    <item>
      <title>Automatic Backups of ArcSDE on SQL Server Express</title>
      <link>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168553#M9488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to try to create a script so I can automatically backup my ArcSDE data that is stored on SQL Server Express.&amp;nbsp; I am using ArcGIS for Server Workgroup Standard v 10.2.2.&amp;nbsp; My SQL Server is MSSQL Server Express 2008 R2 which is shipped with ArcGIS 10.2.&amp;nbsp; I have create a backup sql and batch script on the server, however when I try to restore the database using ArcGIS Catalog then ArcCatalog crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The batch file looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -i"C:\SQLBackupScripts\LQPMonday.sql" -S "localhost\sqlexpress"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SQL file looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; BACKUP DATABASE [ParcelsLQP] TO&amp;nbsp; DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\Backup\LQPParcelsMonday.bak' WITH NOFORMAT, NOINIT,&amp;nbsp; NAME = N'ParcelsLQP-Full Database Backup', SKIP, NOREWIND, NOUNLOAD,&amp;nbsp; STATS = 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The backup appears to run and it creates a backup file in about four seconds.&amp;nbsp; The file size is about twice as large compared to when I create a backup using ArcCatalog--&amp;gt;Database--&amp;gt;Administration--&amp;gt;Backup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to automate backups for SQL Server Express?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 20:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168553#M9488</guid>
      <dc:creator>MarkVolz</dc:creator>
      <dc:date>2014-07-02T20:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Backups of ArcSDE on SQL Server Express</title>
      <link>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168554#M9489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why the .bak file size varies from ArcCatalog backup compared to SQL Server Express backup. I tested this on my machine, both sizes of the .bak files were the same. There could have been edits made to the database before the second backup was taken? The SQL script could vary from the ArcCatalog execution? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this article from Microsoft. Might help out with automating the backup from SQL Server Express.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.microsoft.com/kb/2019698" title="http://support.microsoft.com/kb/2019698"&gt;How to schedule and automate backups of SQL Server databases in SQL Server Express&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 21:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168554#M9489</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2014-07-10T21:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Backups of ArcSDE on SQL Server Express</title>
      <link>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168555#M9490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am closer to a solution.&amp;nbsp; I figured out that by default the backup for SQL Server appends data instead of deletes data.&amp;nbsp; I fixed that part by deleting the backup file before running the backup script.&amp;nbsp; I still am having trouble as I can manually run the .bat file, but it seems that the task scheduler will not.&amp;nbsp; I will take a closer look at the link that you provided to see if that will help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my batch file looks like now:&lt;/P&gt;&lt;P&gt;cd /d "C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\Backup"&lt;/P&gt;&lt;P&gt;del MyBackupFile.bak&lt;/P&gt;&lt;P&gt;"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -i"C:\SQLBackupScripts\MySQLFile.sql" -S "localhost\sqlexpress"&lt;/P&gt;&lt;P&gt;cd /d "C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\Backup"&lt;/P&gt;&lt;P&gt;copy MyBackupFile.bak \\AnotherServer\AShareOnTheServer$\MyBackupFile.bak /y &lt;/P&gt;&lt;P&gt;cd /d "C:\SQLBackupScripts"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL file has not really changed:&lt;/P&gt;&lt;P&gt;BACKUP DATABASE [MyDatabase] TO&amp;nbsp; DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\Backup\MyBackupFile.bak' WITH NOFORMAT, NOINIT,&amp;nbsp; NAME = N'MyDatabase-Full Database Backup', SKIP, NOREWIND, NOUNLOAD,&amp;nbsp; STATS = 10&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once again, the above code works fine now when I manually run the backup script.&amp;nbsp; Now I need to figure out how to automate the backups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168555#M9490</guid>
      <dc:creator>MarkVolz</dc:creator>
      <dc:date>2014-07-11T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Backups of ArcSDE on SQL Server Express</title>
      <link>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168556#M9491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might help out with the task scheduler part of things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/4437701/run-a-batch-file-with-windows-task-scheduler" title="http://stackoverflow.com/questions/4437701/run-a-batch-file-with-windows-task-scheduler"&gt;Run a batch file with Windows task scheduler - Stack Overflow&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/automatic-backups-of-arcsde-on-sql-server-express/m-p/168556#M9491</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2014-07-11T14:53:47Z</dc:date>
    </item>
  </channel>
</rss>

