<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://theoracle.magentaretail.com.au/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jake</id>
	<title>EnablerWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://theoracle.magentaretail.com.au/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jake"/>
	<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/Special:Contributions/Jake"/>
	<updated>2026-10-22T01:56:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=Change_EEPOS_Machine_Role&amp;diff=1637</id>
		<title>Change EEPOS Machine Role</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=Change_EEPOS_Machine_Role&amp;diff=1637"/>
		<updated>2024-02-11T23:05:46Z</updated>

		<summary type="html">&lt;p&gt;Jake: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The role of a EEPOS installation can be changed using the command line. &lt;br /&gt;
&lt;br /&gt;
This means that a store can be reconfigured without needing to reinstall EEPOS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The command line tool is accessed as follows:&lt;br /&gt;
&lt;br /&gt;
* Ensure EEPOS is closed on the till.&lt;br /&gt;
&lt;br /&gt;
* Open Command Prompt as an administrator.&lt;br /&gt;
&lt;br /&gt;
* Enter the below command to browse to the EEPOS folder.&lt;br /&gt;
cd &amp;quot;c:\Program Files (x86)\Magenta Retail\EEPOS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Run EEE_POS.exe /c storeservername storeserverdatabase replicationsourceiseee&lt;br /&gt;
** Storeservername is the full SQL instance name of the store server including \MAGENTAPOS if necessary.&lt;br /&gt;
** StoreServerdatabase is the store servers database name&lt;br /&gt;
** Replicationsourceiseee is a flag indicating if this machine will replicate from EEE or from the store server (e.g. Y or N)&lt;br /&gt;
** All parameters must be supplied&lt;br /&gt;
* After a few moments it should display the below message indicating the change is&lt;br /&gt;
complete.&lt;br /&gt;
* Once the Process complete text is shown, press Enter to return to the command prompt.&lt;br /&gt;
* Open EEPOS and ensure the till is displaying the green POS Service light.&lt;br /&gt;
* If the POS Service is displaying the orange light, this may indicate the wrong computer name was used in the above command. The command can be run again with the correct computer name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Versions ==&lt;br /&gt;
The table below details which versions contain which functionality&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:left&amp;quot;&lt;br /&gt;
|+ Versions&lt;br /&gt;
|-&lt;br /&gt;
! Function !! EEE Version !! POS Version(s)&lt;br /&gt;
|-&lt;br /&gt;
| Reconfigure POS Role || 1.92.05 || 2.20.16.00&lt;br /&gt;
|-&lt;br /&gt;
| Reconfigure POS Role || 1.88.26 || 2.18.12.00&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Configuration Required ==&lt;br /&gt;
&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
== Detail ==&lt;br /&gt;
Here are some scenarios where this can be used. There are 3 machines at the store in the following scenarios.&lt;br /&gt;
:- MAG1 – Store Server&lt;br /&gt;
:- MAG2 – Till 2&lt;br /&gt;
:- MAG3 – Till 3&lt;br /&gt;
&lt;br /&gt;
== Scenario 1 – Promoting a till to a store server ==&lt;br /&gt;
MAG1 is the existing store server but it has had a hardware failure. &lt;br /&gt;
Whilst MAG1 is being replaced, MAG2 is going to be the store server.&lt;br /&gt;
&lt;br /&gt;
=== Promoting a till to a store server ===&lt;br /&gt;
On MAG2&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG2\magentapos EEPOS Y&lt;br /&gt;
&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Updating tills to communicate with the replacement store server ===&lt;br /&gt;
On MAG3&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG2\magentapos EEPOS N&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Scenario 2 – Store Server replacement ==&lt;br /&gt;
The store server (MAG1) hardware has been replaced and it has had EEPOS re-installed to the correct version (note: the same version as the other tills in the store) and replication from EEE has completed successfully.&lt;br /&gt;
&lt;br /&gt;
=== Install new store server ===&lt;br /&gt;
On MAG1&lt;br /&gt;
* Ensure the hostname on the tills record has been updated to the new machine name (if a new machine name has been assigned)&lt;br /&gt;
* Install EEPOS to replicate from EEE&lt;br /&gt;
* Upgrade EEPOS to the same version that is installed on the existing store tills&lt;br /&gt;
* Replication from EEE must complete prior to completing further steps&lt;br /&gt;
&lt;br /&gt;
=== Demoting the existing store server to a till ===&lt;br /&gt;
On MAG2&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG1\magentapos EEPOS N&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;br /&gt;
&lt;br /&gt;
=== Updating tills to communicate with the new store server ===&lt;br /&gt;
On MAG3&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG1\magentapos EEPOS N&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;br /&gt;
&lt;br /&gt;
== Scenario 3 – All tills replicate from EEE ==&lt;br /&gt;
MAG1 will still be classified as the store server as it will hold stocktake data, suspended transactions, and local journal data however MAG1, MAG2 and MAG3 will replicate master data and transactions directly to and from EEE.&lt;br /&gt;
&lt;br /&gt;
=== Update tills to replicate directly with EEE ===&lt;br /&gt;
MAG1 as the existing store server does not need to be reconfigured.&lt;br /&gt;
&lt;br /&gt;
On MAG2 and MAG3&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG1\magentapos EEPOS Y&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;br /&gt;
&lt;br /&gt;
== Scenario 4 – All tills replicate from a store server ==&lt;br /&gt;
MAG1 will still be classified as the store server and MAG2 and MAG3 will replicate master data and transactions from MAG1&lt;br /&gt;
&lt;br /&gt;
=== Update tills to replicate from the store server ===&lt;br /&gt;
MAG1 as the existing store server does not need to be reconfigured.&lt;br /&gt;
&lt;br /&gt;
On MAG2 and MAG3&lt;br /&gt;
* Close EEPOS&lt;br /&gt;
* Open an Administrator command prompt.&lt;br /&gt;
* Change to the EEPOS installation folder (e.g. C:\Program Files (x86)\Magenta Retail\EEPOS)&lt;br /&gt;
* Run the command&lt;br /&gt;
EEE_POS.exe /c MAG1\magentapos EEPOS N&lt;br /&gt;
* Start EEPOS and ensure the POS Service indicator light is green&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=Change_EEPOS_Machine_Role&amp;diff=1636</id>
		<title>Change EEPOS Machine Role</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=Change_EEPOS_Machine_Role&amp;diff=1636"/>
		<updated>2024-02-08T01:51:38Z</updated>

		<summary type="html">&lt;p&gt;Jake: Created page with &amp;quot;== Overview == The role of a EEPOS installation can be changed using the command line.   This means that a store can be reconfigured without needing to reinstall EEPOS.   The...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The role of a EEPOS installation can be changed using the command line. &lt;br /&gt;
&lt;br /&gt;
This means that a store can be reconfigured without needing to reinstall EEPOS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The command line tool is accessed as follows:&lt;br /&gt;
&lt;br /&gt;
• Ensure EEPOS is closed on the till.&lt;br /&gt;
&lt;br /&gt;
• Open Command Prompt as an administrator.&lt;br /&gt;
&lt;br /&gt;
• Enter the below command to browse to the EEPOS folder.&lt;br /&gt;
cd &amp;quot;c:\Program Files (x86)\Magenta Retail\EEPOS&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=Network_Testing&amp;diff=1545</id>
		<title>Network Testing</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=Network_Testing&amp;diff=1545"/>
		<updated>2019-03-21T02:27:36Z</updated>

		<summary type="html">&lt;p&gt;Jake: Created page with &amp;quot;= .Net Remoting Port Testing =   The below steps can be used to troubleshoot remoting connectivity problems.   You can check if a port is open and accessible from Windows powersh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= .Net Remoting Port Testing =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The below steps can be used to troubleshoot remoting connectivity problems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can check if a port is open and accessible from Windows powershell (at least on Windows 10).  Windows 7 you may need to use Telnet client or curl.  tnc should work in Powershell on modern WinServer machines too.&lt;br /&gt;
&lt;br /&gt;
In Windows 10:  This is an example of a successful test:  The EEPOS Service (OR SOMETHING) is running, listening on port 8080 and server BH is reachable.&lt;br /&gt;
&lt;br /&gt;
[[File:PortSuccess.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now the firewall port has been closed to block incoming connections to port 8080:&lt;br /&gt;
&lt;br /&gt;
[[File:PortFailed.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If it fails, possible reasons are:&lt;br /&gt;
&lt;br /&gt;
1.  Connection blocked by a firewall, internet security package (e.g. combined AV and firewall etc)&lt;br /&gt;
&lt;br /&gt;
2.  POS Service not running&lt;br /&gt;
&lt;br /&gt;
3.  POS Service not listening on the port you think it is (check POS settings):&lt;br /&gt;
&lt;br /&gt;
[[File:EEPOSPortConfig.png]]&lt;br /&gt;
&lt;br /&gt;
4.  Another problem on the clients network?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can determine if it is (1) vs 2, 3, or 4 by repeating the tnc test on the store server itself.  If the tnc test succeeds when run locally on the store server but fails when run remotely, then it is a network or firewall issue.&lt;br /&gt;
&lt;br /&gt;
When running locally, make sure it runs against the LAN/WAN IP address and not LOCALHOST or 127.0.0.1.  Best to use ipconfig to obtain the local machine&#039;s network IP address and test that explicitly:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;tnc 192.168.2.53 -port 8080.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also check that the till is correctly represented in the EEE database in ReplicationClientLogins:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;select * from ReplicationClientLogins where TillCode = &#039;078201&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ReplicationClientLogins.png]]&lt;br /&gt;
&lt;br /&gt;
Make sure the HostName and Port are correct.  Use the hostname exactly as it appears in ReplicationClientLogins in the tnc test:&lt;br /&gt;
&lt;br /&gt;
[[File:PortTest2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another possibility is something else running on the machine using port 8080.  If this is the case, reconfigure the pos service to use a different port.  Note that port 8080 is sometimes used for http proxies.&lt;br /&gt;
You can try moving the PosService to a different port and test again.&lt;br /&gt;
&lt;br /&gt;
You can use netstat -a -b to check what is running on port 80 (and what IP address(es) it is bound to).  If netstat output is too fast to read, redirect it to a file and review later.  netstat -a -b &amp;gt; ns.txt.  Note netstat can take a minute or two to complete - be patient!&lt;br /&gt;
&lt;br /&gt;
This is the expected netstat output bound to my LAN ip address:&lt;br /&gt;
&lt;br /&gt;
  TCP    192.168.2.53:8080      bh:0                   LISTENING  [PosService.exe]&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:PortTest2.png&amp;diff=1544</id>
		<title>File:PortTest2.png</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:PortTest2.png&amp;diff=1544"/>
		<updated>2019-03-21T02:19:05Z</updated>

		<summary type="html">&lt;p&gt;Jake: PortTest2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PortTest2&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:ReplicationClientLogins.png&amp;diff=1543</id>
		<title>File:ReplicationClientLogins.png</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:ReplicationClientLogins.png&amp;diff=1543"/>
		<updated>2019-03-21T02:17:22Z</updated>

		<summary type="html">&lt;p&gt;Jake: ReplicationClientLogins&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReplicationClientLogins&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSPortConfig.png&amp;diff=1542</id>
		<title>File:EEPOSPortConfig.png</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSPortConfig.png&amp;diff=1542"/>
		<updated>2019-03-21T02:12:06Z</updated>

		<summary type="html">&lt;p&gt;Jake: EEPOS Port Config&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;EEPOS Port Config&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:PortFailed.png&amp;diff=1541</id>
		<title>File:PortFailed.png</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:PortFailed.png&amp;diff=1541"/>
		<updated>2019-03-21T02:08:07Z</updated>

		<summary type="html">&lt;p&gt;Jake: Port Test Failed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Port Test Failed&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:PortSuccess.png&amp;diff=1540</id>
		<title>File:PortSuccess.png</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:PortSuccess.png&amp;diff=1540"/>
		<updated>2019-03-21T02:03:22Z</updated>

		<summary type="html">&lt;p&gt;Jake: Successful Test&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Successful Test&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1503</id>
		<title>EEPOS:Database Suspect</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1503"/>
		<updated>2017-03-27T00:52:27Z</updated>

		<summary type="html">&lt;p&gt;Jake: /* Repairing Suspect Database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Suspect EEPOS Database Recovery ==&lt;br /&gt;
&lt;br /&gt;
It is possible for a database to become ‘Suspect’ for many reasons, such as: &lt;br /&gt;
* There was an unexpected SQL Server Shutdown, power failure or a hardware failure.&lt;br /&gt;
&lt;br /&gt;
* The database could have become corrupted. &lt;br /&gt;
&lt;br /&gt;
* The database cannot be opened due to inaccessible files or insufficient memory or disk space.&lt;br /&gt;
&lt;br /&gt;
* The database files are being held by operating system, third party backup software etc.&lt;br /&gt;
&lt;br /&gt;
The below instructions show how to recover a Suspect database.&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 resolve the suspect database.&lt;br /&gt;
&lt;br /&gt;
1. Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3. Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Backup EEPOS Database Files ===&lt;br /&gt;
&lt;br /&gt;
Perform a backup of the EEPOS Database files.&lt;br /&gt;
&lt;br /&gt;
1. Browse to &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
2. Make a copy of the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If a prompt appears saying that the files are currently in use you will need to temporarily stop the SQL Service.&lt;br /&gt;
&lt;br /&gt;
3. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
4.	Stop the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
5.	Attempt to copy the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files again.&lt;br /&gt;
&lt;br /&gt;
6.	Start the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Connect to Magentapos SQL Instance ===&lt;br /&gt;
&lt;br /&gt;
Open SQL Management Studio on your EEE Server. Then connect to the tills local SQL Database over the network using the below details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Server Name&#039;&#039;&#039; – Hostname\magentapos&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; If hostname of machine is Server40, then Server name should be Server40\magentapos&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Authentication&#039;&#039;&#039; – SQL Server Authentication&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Login&#039;&#039;&#039; – Magentasupport&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Password&#039;&#039;&#039; – Please contact Magenta Support for the SQL Database Password.&lt;br /&gt;
&lt;br /&gt;
[[File:SSMSLogin.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Repairing Suspect Database ===&lt;br /&gt;
&lt;br /&gt;
Once connected to the Tills SQL Database, follow the below steps to check and repair and corrupt data on the EEPOS Database.&lt;br /&gt;
&lt;br /&gt;
1. Begin a new query by selecting &#039;&#039;&#039;New Query (CTRL+N)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
2. Copy the below SQL command into the new query window.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EXEC sp_resetstatus EEPOS;&lt;br /&gt;
ALTER DATABASE EEPOS SET EMERGENCY&lt;br /&gt;
DBCC checkdb(EEPOS)&lt;br /&gt;
ALTER DATABASE EEPOS SET SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;br /&gt;
DBCC CheckDB (EEPOS, REPAIR_ALLOW_DATA_LOSS)&lt;br /&gt;
ALTER DATABASE EEPOS SET MULTI_USER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Select &#039;&#039;&#039;Execute (F5)&#039;&#039;&#039; to run the command.&lt;br /&gt;
&lt;br /&gt;
This command should bring the database out of suspect mode and repair any corrupt data if possible.&lt;br /&gt;
&lt;br /&gt;
4. Once completed, the EEPOS database should no longer be marked as suspect and should be accessible.&lt;br /&gt;
&lt;br /&gt;
5. Remove the previous command and copy in the below command.&lt;br /&gt;
&lt;br /&gt;
This command will replicate all data from EEE down to the till again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EXEC usp_ReplicateMasterTablesLoop 1,10000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: It may take some time to complete this command as the EEPOS database is replicating all data from EEE over the network again.&lt;br /&gt;
&lt;br /&gt;
6. Remove the previous command and copy the below command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;USE EEPOS&lt;br /&gt;
EXEC usp_ReplicateUpstreamData&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the above command fails, this indicates that the EEPOS database was unable to send its data up to the store server or EEE Server.&lt;br /&gt;
Please contact Magenta Support if this occurs.&lt;br /&gt;
&lt;br /&gt;
Once replication is complete the EEPOS Database should now be repaired and ready for use again.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
&lt;br /&gt;
Perform the below steps to ensure EEPOS is working correctly.&lt;br /&gt;
&lt;br /&gt;
1. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2. Start the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
3. Open EEPOS and check that you can search for products (F4.&lt;br /&gt;
&lt;br /&gt;
4. Search for a customer (F12).&lt;br /&gt;
&lt;br /&gt;
Once EEPOS is running again, we recommend reviewing the SQL Server logs to check for what caused the database to become suspect, to ensure the problem does not re-occur.&lt;br /&gt;
&lt;br /&gt;
The SQL Server logs can be found under - &lt;br /&gt;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Connect_To_Remote_SQL_Server&amp;diff=1502</id>
		<title>EEPOS:Connect To Remote SQL Server</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Connect_To_Remote_SQL_Server&amp;diff=1502"/>
		<updated>2017-03-17T03:00:34Z</updated>

		<summary type="html">&lt;p&gt;Jake: Created page with &amp;quot;== Unable to Connect to Remote Database ==  This error indicates that a network problem is preventing the EEPOS database from communicating with the store server or vice versa.  ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unable to Connect to Remote Database ==&lt;br /&gt;
&lt;br /&gt;
This error indicates that a network problem is preventing the EEPOS database from communicating with the store server or vice versa.&lt;br /&gt;
&lt;br /&gt;
If the affected machine is a store server, this indicates it cannot communicate with the EEE SQL Server.&lt;br /&gt;
&lt;br /&gt;
Please see the below instructions which cover possible causes and solutions for this problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* Try restarting the machine. Sometimes a simple restart can resolve network connectivity problems&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Using Command Prompt, attempt to ping to the store server using the store server’s hostname.&lt;br /&gt;
&lt;br /&gt;
From the store server machine, attempt to ping with the till’s hostname also.&lt;br /&gt;
&lt;br /&gt;
If the ping fails this indicates network connectivity problems. Please see the below possible fixes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039;  If the affected machine is a store server, you will need to ping to the EEE SQL Server and attempt to ping from the EEE SQL Server back to the Store Server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* On the store server right-click on the network icon on the task bar and select &#039;&#039;&#039;Open Network and Sharing Center&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Check whether the machine is set to a Domain network or private/public/work network group.&lt;br /&gt;
&lt;br /&gt;
The till should have the same network configuration setup.&lt;br /&gt;
&lt;br /&gt;
The computer should be restarted if changes are made to this configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Check that the firewall on the store server and till allows the below inbound ports.&lt;br /&gt;
** SQL Server – TCP Port 1433&lt;br /&gt;
** SQL Server – TCP Port 1434&lt;br /&gt;
** MSDTC Port – TCP 135&lt;br /&gt;
** MSDTC Port – TCP 137&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Ensure that any antivirus on the machine has exceptions added for the below folders and applications.&lt;br /&gt;
** &#039;&#039;&#039;Folder Exception&#039;&#039;&#039; - C:\Program Files (x86)\Magenta Retail\EEPOS&lt;br /&gt;
** &#039;&#039;&#039;EEPOS Service Exception&#039;&#039;&#039; - C:\Program Files (x86)\Magenta Retail\EEPOS\PosService.exe&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Check Microsoft Distributed Transaction Coordinator (MSDTC) is configured correctly.&lt;br /&gt;
** From the start menu select Control Panel → Administrative Tools → Component Services. Then select My Computer → Distributed Transaction Coordinator. Right-click Local DTC then select the Security tab on the Local DTC Properties window.&lt;br /&gt;
** The security settings should match the below screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:DTCSettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Check that SQL TCP/IP is enabled on the till and store server.&lt;br /&gt;
** From the start menu browse to &#039;&#039;&#039;All Programs → Microsoft SQL Server 2012 → Configuration Tools → SQL Server Configuration Manager&#039;&#039;&#039;.&lt;br /&gt;
** Expand &#039;&#039;&#039;SQL Server Network Configuration&#039;&#039;&#039; then highlight &#039;&#039;&#039;Protocols for MAGENTAPOS&#039;&#039;&#039;.&lt;br /&gt;
** Check that &#039;&#039;&#039;TCP/IP&#039;&#039;&#039; is enabled.&lt;br /&gt;
&lt;br /&gt;
[[File:TCPIP.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Check that SQL Native Client hasn’t become corrupted. This can occur due to failed\interrupted windows updates.&lt;br /&gt;
** Create a new empty text file anywhere on the machine and rename it to test.udl&lt;br /&gt;
[[File:TestUDL.jpg]]&lt;br /&gt;
*    Double click the new test.udl shortcut.&lt;br /&gt;
** In the Data Link Properties window, select the Provider tab and select SQL Server Native Client 11.0 then select Next&lt;br /&gt;
[[File:Datalink.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you receive the below error when selecting Next, this indicates a problem in SQL Native Client.&lt;br /&gt;
&lt;br /&gt;
If this error occurs, perform a &#039;&#039;&#039;Repair&#039;&#039;&#039; installation of SQL Native Client from &#039;&#039;&#039;Control Panel → Programs and Features&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:DatalinkError.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* If the machine is still unable to communicate with the store server\EEE please contact Magenta Support for additional assistance.&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:DatalinkError.jpg&amp;diff=1501</id>
		<title>File:DatalinkError.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:DatalinkError.jpg&amp;diff=1501"/>
		<updated>2017-03-17T02:56:32Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:Datalink.jpg&amp;diff=1500</id>
		<title>File:Datalink.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:Datalink.jpg&amp;diff=1500"/>
		<updated>2017-03-17T02:54:49Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:TestUDL.jpg&amp;diff=1499</id>
		<title>File:TestUDL.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:TestUDL.jpg&amp;diff=1499"/>
		<updated>2017-03-17T02:51:16Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:TCPIP.jpg&amp;diff=1498</id>
		<title>File:TCPIP.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:TCPIP.jpg&amp;diff=1498"/>
		<updated>2017-03-17T02:50:00Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:DTCSettings.jpg&amp;diff=1497</id>
		<title>File:DTCSettings.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:DTCSettings.jpg&amp;diff=1497"/>
		<updated>2017-03-17T02:47:48Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1496</id>
		<title>EEPOS:Database Suspect</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1496"/>
		<updated>2017-03-17T02:32:28Z</updated>

		<summary type="html">&lt;p&gt;Jake: Created page with &amp;quot;== Suspect EEPOS Database Recovery ==  It is possible for a database to become ‘Suspect’ for many reasons, such as:  * There was an unexpected SQL Server Shutdown, power fail...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Suspect EEPOS Database Recovery ==&lt;br /&gt;
&lt;br /&gt;
It is possible for a database to become ‘Suspect’ for many reasons, such as: &lt;br /&gt;
* There was an unexpected SQL Server Shutdown, power failure or a hardware failure.&lt;br /&gt;
&lt;br /&gt;
* The database could have become corrupted. &lt;br /&gt;
&lt;br /&gt;
* The database cannot be opened due to inaccessible files or insufficient memory or disk space.&lt;br /&gt;
&lt;br /&gt;
* The database files are being held by operating system, third party backup software etc.&lt;br /&gt;
&lt;br /&gt;
The below instructions show how to recover a Suspect database.&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 resolve the suspect database.&lt;br /&gt;
&lt;br /&gt;
1. Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3. Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Backup EEPOS Database Files ===&lt;br /&gt;
&lt;br /&gt;
Perform a backup of the EEPOS Database files.&lt;br /&gt;
&lt;br /&gt;
1. Browse to &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
2. Make a copy of the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If a prompt appears saying that the files are currently in use you will need to temporarily stop the SQL Service.&lt;br /&gt;
&lt;br /&gt;
3. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
4.	Stop the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
5.	Attempt to copy the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files again.&lt;br /&gt;
&lt;br /&gt;
6.	Start the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Connect to Magentapos SQL Instance ===&lt;br /&gt;
&lt;br /&gt;
Open SQL Management Studio on your EEE Server. Then connect to the tills local SQL Database over the network using the below details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Server Name&#039;&#039;&#039; – Hostname\magentapos&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; If hostname of machine is Server40, then Server name should be Server40\magentapos&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Authentication&#039;&#039;&#039; – SQL Server Authentication&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Login&#039;&#039;&#039; – Magentasupport&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Password&#039;&#039;&#039; – Please contact Magenta Support for the SQL Database Password.&lt;br /&gt;
&lt;br /&gt;
[[File:SSMSLogin.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Repairing Suspect Database ===&lt;br /&gt;
&lt;br /&gt;
Once connected to the Tills SQL Database, follow the below steps to check and repair and corrupt data on the EEPOS Database.&lt;br /&gt;
&lt;br /&gt;
1. Begin a new query by selecting &#039;&#039;&#039;New Query (CTRL+N)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
2. Copy the below SQL command into the new query window.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EXEC sp_resetstatus EEPOS;&lt;br /&gt;
ALTER DATABASE EEPOS SET EMERGENCY&lt;br /&gt;
DBCC checkdb(EEPOS)&lt;br /&gt;
ALTER DATABASE EEPOS SET SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;br /&gt;
DBCC CheckDB (EEPOS, REPAIR_ALLOW_DATA_LOSS)&lt;br /&gt;
ALTER DATABASE EEPOS SET MULTI_USER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Select &#039;&#039;&#039;Execute (F5)&#039;&#039;&#039; to run the command.&lt;br /&gt;
&lt;br /&gt;
This command should bring the database out of suspect mode and repair any corrupt data if possible.&lt;br /&gt;
&lt;br /&gt;
4. Once completed, the EEPOS database should no longer be marked as suspect and should be accessible.&lt;br /&gt;
&lt;br /&gt;
5. Remove the previous command and copy in the below command.&lt;br /&gt;
&lt;br /&gt;
This command will replicate all data from EEE down to the till again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EXEC usp_ReplicateMasterTablesLoop 1,10000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: It may take some time to complete this command as the EEPOS database is replicating all data from EEE over the network again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once replication is complete the EEPOS Database should now be repaired and ready for use again.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
&lt;br /&gt;
Perform the below steps to ensure EEPOS is working correctly.&lt;br /&gt;
&lt;br /&gt;
1. Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2. Start the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
3. Open EEPOS and check that you can search for products (F4.&lt;br /&gt;
&lt;br /&gt;
4. Search for a customer (F12).&lt;br /&gt;
&lt;br /&gt;
Once EEPOS is running again, we recommend reviewing the SQL Server logs to check for what caused the database to become suspect, to ensure the problem does not re-occur.&lt;br /&gt;
&lt;br /&gt;
The SQL Server logs can be found under - &lt;br /&gt;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&#039;&#039;&#039;&lt;/div&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=1495</id>
		<title>EEPOS:System Database Recovery with No Backup</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"/>
		<updated>2017-03-15T04:27:18Z</updated>

		<summary type="html">&lt;p&gt;Jake: /* Rebuild System Databases */&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Control Panel → Administrative Tools → Event Viewer&#039;&#039;&#039;&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 &#039;&#039;&#039;C:\Program Files (x86)\Magenta Retail\EEPOS\Support\SystemDBFiles&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2.	Copy of &#039;&#039;&#039;ALL&#039;&#039;&#039; files in this folder to a backup folder.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3.	Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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_CI_AS&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
*  SQLCOLLATION needs to match the collation of EEE and other tills, e.g. Latin1_General_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;
&#039;&#039;&#039;NOTES:&#039;&#039;&#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;
=== 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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; window as &#039;&#039;&#039;Administrator.&#039;&#039;&#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 &#039;&#039;&#039;tempSAPwd&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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=&#039;EEPOS&#039;, @filename1=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSdat.mdf&#039;, @filename2=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSlog.ldf&#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 &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 - &#039;&#039;&#039;C:\ProgramData\MagentaPOS\c-program files (x86)-magenta retail-eepos\PosServiceLog.txt&#039;&#039;&#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 &#039;&#039;&#039;Analysis → Queries → Journal&#039;&#039;&#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>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Not_Online_and_Multi-User&amp;diff=1494</id>
		<title>EEPOS:Database Not Online and Multi-User</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Not_Online_and_Multi-User&amp;diff=1494"/>
		<updated>2017-03-09T05:40:52Z</updated>

		<summary type="html">&lt;p&gt;Jake: Created page with &amp;quot;== Database Offline or in Single-User Mode ==  The database may be put into ‘offline’ or single user mode due to a failed\interrupted windows update or unexpected shutdown.  ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Database Offline or in Single-User Mode ==&lt;br /&gt;
&lt;br /&gt;
The database may be put into ‘offline’ or single user mode due to a failed\interrupted windows update or unexpected shutdown.&lt;br /&gt;
&lt;br /&gt;
Perform the below steps to mark the database as online or to mark the database as multi-user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bring EEPOS Database Online ==&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 bring the database online or set to multi-user.&lt;br /&gt;
&lt;br /&gt;
1.	Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2.	Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3.	Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Backup EEPOS Database Files ===&lt;br /&gt;
&lt;br /&gt;
Perform a backup of the EEPOS Database files.&lt;br /&gt;
&lt;br /&gt;
1.	Browse to &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2.	Make a copy of the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; If a prompt appears saying that the files are currently in use you will need to temporarily stop the SQL Service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Open the Windows Services screen &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
4.	Stop the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service.&lt;br /&gt;
&lt;br /&gt;
5.	Attempt to copy the &#039;&#039;&#039;EEPOSdat.mdf&#039;&#039;&#039; and &#039;&#039;&#039;EEPOSlog.ldf&#039;&#039;&#039; files again.&lt;br /&gt;
&lt;br /&gt;
6.	Start the &#039;&#039;&#039;SQL Server (Magentapos)&#039;&#039;&#039; service again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Connect to Magentapos SQL Instance ===&lt;br /&gt;
&lt;br /&gt;
Open SQL Management Studio on your EEE Server. Then connect to the tills local SQL Database over the network using the below details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Server Name&#039;&#039;&#039; – Hostname\magentapos&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; If hostname of till is Server40, then Server name should be Server40\magentapos&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Authentication&#039;&#039;&#039; – SQL Server Authentication&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Login&#039;&#039;&#039; – Magentasupport&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Password&#039;&#039;&#039; – Please contact Magenta Support for the SQL Database Password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:SSMSLogin.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bringing Database Online ===&lt;br /&gt;
Once connected to the till’s Magentapos SQL Instance you will notice that the EEPOS database is shown as offline as per the screenshot below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:EEPOSOffline.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow the below steps to bring the database back online.&lt;br /&gt;
&lt;br /&gt;
1.	Begin a new query by selecting &#039;&#039;&#039;New Query (CTRL+N)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
2.	Copy the below SQL command into the new query window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;ALTER DATABASE EEPOS SET ONLINE&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3.	Select &#039;&#039;&#039;Execute (F5)&#039;&#039;&#039; to run the command.&lt;br /&gt;
&lt;br /&gt;
4.	Once this command has been run, select refresh in the Object Explorer (Red square below).&lt;br /&gt;
The EEPOS database should show as online.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:EEPOSOnline.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Set Database Multi-User ==&lt;br /&gt;
If your database was diagnosed as being in Single-User mode, please follow the steps below.&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 bring the database online or set to multi-user.&lt;br /&gt;
&lt;br /&gt;
1.	Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2.	Open the Windows Services screen (Control Panel →  Administrative Tools → Services)&lt;br /&gt;
&lt;br /&gt;
3.	Stop the EEPOS Service – MAGENTAPOS service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Set Database as Multi-User ===&lt;br /&gt;
&lt;br /&gt;
1.	Connect to the SQL Instance using the above [http://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Not_Online_and_Multi-User&amp;amp;action=submit#Connect_to_Magentapos_SQL_Instance Connect to Magentapos SQL Instance] instructions.&lt;br /&gt;
&lt;br /&gt;
2.	Begin a new query by selecting &#039;&#039;&#039;New Query (CTRL+N)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
3.	Copy the below SQL command into the new query window.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE master&lt;br /&gt;
ALTER DATABASE EEPOS&lt;br /&gt;
SET MULTI_USER;&lt;br /&gt;
GO&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4.	Select &#039;&#039;&#039;Execute (F5)&#039;&#039;&#039; to run the command.&lt;br /&gt;
&lt;br /&gt;
5.	Once completed the results windows should show &#039;&#039;&#039;Command(s) completed successfully&#039;&#039;&#039; message as per the below screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:CommandComplete.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the command fails to complete, please contact Magenta Support for additional assistance.&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:CommandComplete.jpg&amp;diff=1493</id>
		<title>File:CommandComplete.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:CommandComplete.jpg&amp;diff=1493"/>
		<updated>2017-03-09T05:34:07Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSOnline.jpg&amp;diff=1492</id>
		<title>File:EEPOSOnline.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSOnline.jpg&amp;diff=1492"/>
		<updated>2017-03-09T05:31:42Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSOffline.jpg&amp;diff=1491</id>
		<title>File:EEPOSOffline.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:EEPOSOffline.jpg&amp;diff=1491"/>
		<updated>2017-03-09T05:30:00Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:SSMSLogin.jpg&amp;diff=1490</id>
		<title>File:SSMSLogin.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:SSMSLogin.jpg&amp;diff=1490"/>
		<updated>2017-03-09T05:28:20Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:SSMS.jpg&amp;diff=1489</id>
		<title>File:SSMS.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:SSMS.jpg&amp;diff=1489"/>
		<updated>2017-03-09T05:27:31Z</updated>

		<summary type="html">&lt;p&gt;Jake: uploaded a new version of &amp;amp;quot;File:SSMS.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:SSMS.jpg&amp;diff=1488</id>
		<title>File:SSMS.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:SSMS.jpg&amp;diff=1488"/>
		<updated>2017-03-09T05:23:33Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&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</id>
		<title>EEPOS:System Database Recovery with No Backup</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"/>
		<updated>2017-03-08T23:29:16Z</updated>

		<summary type="html">&lt;p&gt;Jake: /* Review SQL and Event Logs */&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Control Panel → Administrative Tools → Event Viewer&#039;&#039;&#039;&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 &#039;&#039;&#039;C:\Program Files (x86)\Magenta Retail\EEPOS\Support\SystemDBFiles&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2.	Copy of &#039;&#039;&#039;ALL&#039;&#039;&#039; files in this folder to a backup folder.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3.	Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#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;
&#039;&#039;&#039;NOTES:&#039;&#039;&#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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; window as &#039;&#039;&#039;Administrator.&#039;&#039;&#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 &#039;&#039;&#039;tempSAPwd&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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=&#039;EEPOS&#039;, @filename1=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSdat.mdf&#039;, @filename2=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSlog.ldf&#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 &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 - &#039;&#039;&#039;C:\ProgramData\MagentaPOS\c-program files (x86)-magenta retail-eepos\PosServiceLog.txt&#039;&#039;&#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 &#039;&#039;&#039;Analysis → Queries → Journal&#039;&#039;&#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>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:System_Database_Recovery_with_No_Backup&amp;diff=1486</id>
		<title>EEPOS:System Database Recovery with No Backup</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"/>
		<updated>2017-03-08T23:28:38Z</updated>

		<summary type="html">&lt;p&gt;Jake: 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;hr /&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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(Control Panel → Administrative Tools → Event Viewer)&#039;&#039;&#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 &#039;&#039;&#039;C:\Program Files (x86)\Magenta Retail\EEPOS\Support\SystemDBFiles&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
2.	Copy of &#039;&#039;&#039;ALL&#039;&#039;&#039; files in this folder to a backup folder.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#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 &#039;&#039;&#039;(Control Panel →  Administrative Tools → Services)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3.	Stop the &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; as &#039;&#039;&#039;Administrator&#039;&#039;&#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;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#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;
&#039;&#039;&#039;NOTES:&#039;&#039;&#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;
&#039;&#039;&#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&#039;&#039;&#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 &#039;&#039;&#039;Command Prompt&#039;&#039;&#039; window as &#039;&#039;&#039;Administrator.&#039;&#039;&#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 &#039;&#039;&#039;tempSAPwd&#039;&#039;&#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;
&#039;&#039;&#039;Note:&#039;&#039;&#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=&#039;EEPOS&#039;, @filename1=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSdat.mdf&#039;, @filename2=’C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA\EEPOSlog.ldf&#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 &#039;&#039;&#039;EEPOS Service – MAGENTAPOS&#039;&#039;&#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 - &#039;&#039;&#039;C:\ProgramData\MagentaPOS\c-program files (x86)-magenta retail-eepos\PosServiceLog.txt&#039;&#039;&#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 &#039;&#039;&#039;Analysis → Queries → Journal&#039;&#039;&#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>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:ReAttachDB.jpg&amp;diff=1485</id>
		<title>File:ReAttachDB.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:ReAttachDB.jpg&amp;diff=1485"/>
		<updated>2017-03-08T23:02:40Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:FileStreamAccess.jpg&amp;diff=1484</id>
		<title>File:FileStreamAccess.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:FileStreamAccess.jpg&amp;diff=1484"/>
		<updated>2017-03-08T23:02:31Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:SystemDBRecoveryComplete.jpg&amp;diff=1483</id>
		<title>File:SystemDBRecoveryComplete.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:SystemDBRecoveryComplete.jpg&amp;diff=1483"/>
		<updated>2017-03-08T22:58:47Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=File:SystemDBRecovery.jpg&amp;diff=1482</id>
		<title>File:SystemDBRecovery.jpg</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=File:SystemDBRecovery.jpg&amp;diff=1482"/>
		<updated>2017-03-08T22:56:46Z</updated>

		<summary type="html">&lt;p&gt;Jake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
</feed>