<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://theoracle.magentaretail.com.au/index.php?action=history&amp;feed=atom&amp;title=EEPOS%3ASystem_Database_Recovery_with_No_Backup</id>
	<title>EEPOS:System Database Recovery with No Backup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://theoracle.magentaretail.com.au/index.php?action=history&amp;feed=atom&amp;title=EEPOS%3ASystem_Database_Recovery_with_No_Backup"/>
	<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;action=history"/>
	<updated>2026-10-22T01:57:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1495&amp;oldid=prev</id>
		<title>Jake: /* Rebuild System Databases */</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1495&amp;oldid=prev"/>
		<updated>2017-03-15T04:27:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Rebuild System Databases&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:27, 15 March 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MAGENTAPOS /SQLSYSADMINACCOUNTS=Administrator /SAPWD=tempSAPwd /SQLCOLLATION=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Latin1_General_CP1_CI_AS&lt;/del&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MAGENTAPOS /SQLSYSADMINACCOUNTS=Administrator /SAPWD=tempSAPwd /SQLCOLLATION=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Latin1_General_CI_AS&lt;/ins&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;IMPORTANT:&amp;#039;&amp;#039;&amp;#039;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;IMPORTANT:&amp;#039;&amp;#039;&amp;#039;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*  SQLCOLLATION needs to match the collation of EEE and other tills, e.g. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Latin1_General_CP1_CI_AS&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*  SQLCOLLATION needs to match the collation of EEE and other tills, e.g. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Latin1_General_CI_AS&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can find the collation by opening SQL Management Studio on your EEE Server, then right click the server and select Properties&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can find the collation by opening SQL Management Studio on your EEE Server, then right click the server and select Properties&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are unsure what collation you should use, please contact Magenta Support for assistance.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you are unsure what collation you should use, please contact Magenta Support for assistance.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l133&quot;&gt;Line 133:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 133:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== MSDB and Model databases ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== MSDB and Model databases ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1487&amp;oldid=prev</id>
		<title>Jake: /* Review SQL and Event Logs */</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1487&amp;oldid=prev"/>
		<updated>2017-03-08T23:29:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Review SQL and Event Logs&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:29, 8 March 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&lt;/del&gt;Control Panel → Administrative Tools → Event Viewer&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Control Panel → Administrative Tools → Event Viewer&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restore With System Database Backups ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restore With System Database Backups ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1486&amp;oldid=prev</id>
		<title>Jake: Created page with &quot;== System Database Recovery Methods ==  The below instructions show how to recover the EEPOS System databases from a backup and how to rebuild the system databases if no backup e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1486&amp;oldid=prev"/>
		<updated>2017-03-08T23:28:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== System Database Recovery Methods ==  The below instructions show how to recover the EEPOS System databases from a backup and how to rebuild the system databases if no backup e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== System Database Recovery Methods ==&lt;br /&gt;
&lt;br /&gt;
The below instructions show how to recover the EEPOS System databases from a backup and how to rebuild the system databases if no backup exists.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Review SQL and Event Logs ==&lt;br /&gt;
Before commencing, the SQL error log and Event Viewer logs should be reviewed as these may indicate the original cause of the database problems. &lt;br /&gt;
Any problems indicated in these logs should be resolved before proceeding with the below steps.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;(Control Panel → Administrative Tools → Event Viewer)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Restore With System Database Backups ==&lt;br /&gt;
&lt;br /&gt;
Ensure EEPOS is closed before performing the below steps.&lt;br /&gt;
&lt;br /&gt;
1.	Browse to &amp;#039;&amp;#039;&amp;#039;C:\Program Files (x86)\Magenta Retail\EEPOS\Support\SystemDBFiles&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If the machine is using 32bit Windows, browse to - C:\Program Files (x86)\Magenta Retail\EEPOS\Support\SystemDBFiles&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	Check that the system database backups exist.&lt;br /&gt;
&lt;br /&gt;
These files are named with a date stamp and the database name at the end (eg: 20170125.EEPOS, 20170125.master, 20170125.model and 20170125.msdb)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If the above files do not exist, please follow the Restore Without System Database Backups instructions further below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Once the backups are confirmed to exist, open &amp;#039;&amp;#039;&amp;#039;Command Prompt&amp;#039;&amp;#039;&amp;#039; as &amp;#039;&amp;#039;&amp;#039;Administrator&amp;#039;&amp;#039;&amp;#039; (Right click command prompt → Run as administrator)&lt;br /&gt;
&lt;br /&gt;
4.	Execute the below command to change the directory&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;CD C:\Program Files (x86)\Magenta Retail\EEPOS\&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If the machine is using 32bit Windows, use the below command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;CD C:\Program Files\Magenta Retail\EEPOS\&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	Execute the below command to Recover the System Database Backups.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SysDbRecovery.cmd RECOVER&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.	The SystemDbRecovery should detect the system backup files.&lt;br /&gt;
Press any key to begin the restore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:SystemDBRecovery.jpg|SystemDBRecovery]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This process may take over 10 minutes to recover the system databases. Once completed it should display as per the below screenshot.&lt;br /&gt;
Once complete please perform the tests shown at the end of this document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:SystemDBRecoveryComplete.jpg|SystemDBRecoveryComplete]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Restore Without System Database Backups ==&lt;br /&gt;
&lt;br /&gt;
The below instructions show how to recreate the system databases when there is no existing backups.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Backup Database Files ===&lt;br /&gt;
&lt;br /&gt;
Before proceeding with the below instructions a backup of the SQL Database files should be performed.&lt;br /&gt;
&lt;br /&gt;
1.	Browse to &amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
2.	Copy of &amp;#039;&amp;#039;&amp;#039;ALL&amp;#039;&amp;#039;&amp;#039; files in this folder to a backup folder.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If a prompt appears saying that the files are currently in use you will need to temporarily stop the SQL Service using the below steps&lt;br /&gt;
&lt;br /&gt;
3.	Open the Windows Services screen (Control Panel →  Administrative Tools → Services)&lt;br /&gt;
&lt;br /&gt;
4.	Stop the SQL Server (Magentapos) service.&lt;br /&gt;
&lt;br /&gt;
5.	Attempt to copy the files again.&lt;br /&gt;
&lt;br /&gt;
6.	Start the SQL Server (Magentapos) service again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Stop EEPOS Service ===&lt;br /&gt;
&lt;br /&gt;
EEPOS and the POS Service need to be closed before performing the steps to rebuild the system database.&lt;br /&gt;
&lt;br /&gt;
1.	Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2.	Open the Windows Services screen &amp;#039;&amp;#039;&amp;#039;(Control Panel →  Administrative Tools → Services)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
3.	Stop the &amp;#039;&amp;#039;&amp;#039;EEPOS Service – MAGENTAPOS&amp;#039;&amp;#039;&amp;#039; service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Rebuild System Databases ===&lt;br /&gt;
&lt;br /&gt;
1.	Open &amp;#039;&amp;#039;&amp;#039;Command Prompt&amp;#039;&amp;#039;&amp;#039; as &amp;#039;&amp;#039;&amp;#039;Administrator&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
2.	Change the Command Prompt directory to the SQL Installation folder using the below command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;CD C:\Program Files\Microsoft Sql Server\110\Setup Bootstrap\SqlServer2012\&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3.	Execute the below command to re-build the system databases&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MAGENTAPOS /SQLSYSADMINACCOUNTS=Administrator /SAPWD=tempSAPwd /SQLCOLLATION=Latin1_General_CP1_CI_AS&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;IMPORTANT:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
*  SQLCOLLATION needs to match the collation of EEE and other tills, e.g. Latin1_General_CP1_CI_AS.&lt;br /&gt;
You can find the collation by opening SQL Management Studio on your EEE Server, then right click the server and select Properties&lt;br /&gt;
If you are unsure what collation you should use, please contact Magenta Support for assistance.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTES:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*   Sys Admin account needs to be an account currently logged in so that access to the EEPOS database can be achieved.&lt;br /&gt;
&lt;br /&gt;
*   Ensure SA password is provided. This SA user will need to be used later to connect to the instance.&lt;br /&gt;
&lt;br /&gt;
This process can take some time to complete, there is no indication of progress and it will go back to command prompt when done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MSDB and Model databases ===&lt;br /&gt;
Copy back any database files (e.g. MSDBdata.mdf, tempdb.mdf, modellog.ldf etc) that you did not need rebuilt (from your backups). You may need to turn off the “SQL Server (MAGENTAPOS)” service to allow access to the files again. Please ensure the service is restarted after this is completed.&lt;br /&gt;
&lt;br /&gt;
The system database files are located in the below folder.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Re-attach EEPOS Database ===&lt;br /&gt;
&lt;br /&gt;
Due to EEPOS using a FileStream for image resources, FileStream access needs to be set against the database before re-attaching the EEPOS database.&lt;br /&gt;
1.	Open a new &amp;#039;&amp;#039;&amp;#039;Command Prompt&amp;#039;&amp;#039;&amp;#039; window as &amp;#039;&amp;#039;&amp;#039;Administrator.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
2.	Run the below command to connect to the Magenta SQL Instance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SQLCMD –S .\MAGENTAPOS –U SA&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3.	When prompted for a password enter &amp;#039;&amp;#039;&amp;#039;tempSAPwd&amp;#039;&amp;#039;&amp;#039; as the password. Please note that the password is case sensitive.&lt;br /&gt;
&lt;br /&gt;
4.	Execute the below commands&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; You will need to run each command separately in Command Prompt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EXEC sp_configure filestream_access_level, 1&lt;br /&gt;
GO&lt;br /&gt;
RECONFIGURE&lt;br /&gt;
GO&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FileStreamAccess.jpg|FileStreamAccess]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. The EEPOS Database can now be re-attached using the below command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EXEC sp_attach_db @dbname=&amp;#039;EEPOS&amp;#039;, @filename1=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSdat.mdf&amp;#039;, @filename2=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSlog.ldf&amp;#039;&lt;br /&gt;
GO&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:ReAttachDB.jpg|ReAttachDB]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Re-create Logins, Linked Servers and Synonyms ===&lt;br /&gt;
&lt;br /&gt;
Please contact Magenta Support to re-create the SQL users, linked server connections and Synonyms.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
&lt;br /&gt;
Start the &amp;#039;&amp;#039;&amp;#039;EEPOS Service – MAGENTAPOS&amp;#039;&amp;#039;&amp;#039; service and review the log to ensure it starts up correctly and there are no errors.&lt;br /&gt;
&lt;br /&gt;
The Service log can be found under - &amp;#039;&amp;#039;&amp;#039;C:\ProgramData\MagentaPOS\c-program files (x86)-magenta retail-eepos\PosServiceLog.txt&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
1.	Open EEPOS and ensure there are no errors on start up, then test the following:&lt;br /&gt;
&lt;br /&gt;
2.	Create a transaction, ensure the transaction is replicated to the EEE Server. &lt;br /&gt;
&lt;br /&gt;
In EEE browse to &amp;#039;&amp;#039;&amp;#039;Analysis → Queries → Journal&amp;#039;&amp;#039;&amp;#039; to check that the transaction appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Perform return of the same transaction, this tests communication with EEE, broker queue in EEPOS database and replication of HOS records to EEE.&lt;br /&gt;
&lt;br /&gt;
4.	Review journals (either Journal search from the main menu or from Reprint, Control + R), this tests stored server linked server connection.&lt;br /&gt;
&lt;br /&gt;
5.	Search for a customer. This can be done by pressing F12 to bring up the customer search screen.&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
</feed>