Steps to attach Database during Master DB Corruption:
The steps for attaching the database during corruption are given below -
Click the C:\ drive and open Program Files.
2. Select the Microsoft SQL Server folder.
3. Open the MSSQL.1 folder.
4. Open the MSSQL folder and select the DATA folder..
5. Select the master and mastlog files and delete it.
6. Go back and select the folder Template Data.
7. Select the master and mastlog files and copy the files.
8. Paste the files in the DATA folder again.
9. Close the screen.
Now master db is fresh and you are about to attach the GoFrugal databases to it ,so you can be able to work with POS.
10. Right click on the GoFrugal RPOS6 icon on the desktop
11. Click Properties.
12. The GoFrugal RPOS6 Properties screen is displayed.
13. Click on the Find Target button.
14. The GoFrugal RPOS6 Application path is displayed.
15. Open the DBSurgeon
16. The DBSurgeon screen is displayed.
17. Click the button Attach ldf & mdf.
18. The Attach database data & log files screen is displayed.
Database Name, enter the database name for which the selection is given. For example, now here the database name will be MEDISHOPDB
MDF File, you can use the browse button to browse the mdf file of medishopdb from C:\Program Files\Microsoft SQL Server\DATA.
LDF File, you can use the browse button to browse the log file of medishopdb from C:\Program Files\Microsoft SQL Server\DATA.
19. Click the Attach DB button.
20. In the DBSurgeon screen, a message 'medishop database attached' is displayed. Click OK.
21. Now enter the database name : rposauditdb and click Attach DB button.
Database Name, enter the database name for which the selection is given. For example, now here the database name will be rposauditdb
MDF File, you can use the browse button to browse the mdf file of rposauditdb from C:\Program Files\Microsoft SQL Server\DATA.
LDF File, you can use the browse button to browse the log file of rposauditdb from C:\Program Files\Microsoft SQL Server\DATA.
22. In the DBSurgeon screen, a message 'rposauditdb database attached' is displayed. Click OK.
23. Now enter the database name : rpostracdb and click on Attach DB button.
Database Name, enter the database name for which the selection is given. For example, now here the database name will be rpostracdb.
MDF File, you can use the browse button to browse the mdf file of rpostracdb from C:\Program Files\Microsoft SQL Server\DATA..
LDF File, you can use the browse button to browse the log file of rpostracdb from C:\Program Files\Microsoft SQL Server\DATA.
24. In the DBSurgeon screen, a message 'rpostracdb database attached' is displayed. Click OK.
25. Close the DBSurgeon screen.
Now it is ready to use. You can access and start your work as the fresh one.