DP Database Restore
Turn off services and applications:
- Close all Switchboard and related applications on the host PC and any other PC's with Switchboard modules referencing the database
- For all PC's referencing the base, the 'Mettoni Server Update' service must be stopped, to do this, on each PC go to the Start menu, in the 'Search Programs and Files' box, enter 'services.msc', at the top of the search results, click on 'services'
- The 'Services' window appears, under the right hand 'Services (Local)' section, locate 'Mettoni Server Update', if the 'Status' shows as 'Started', right click on the service and select 'Stop'
- Go to the next section below
Restore database:
- Open SQL Server Management Studio
- The 'Server Type' will be pre-populated with 'Database Engine', 'Server name' should be the PC's network name followed by a '\DATAPULSE' and 'Authentication' should already be populated as 'Windows Authentication', click 'Connect' (if the fields are not populated, the 'Server name' should be the computer's network name followed by '\DATAPULSE' and use 'Windows Authentication' for 'Authentication')
- Left side of screen, under 'Object Explorer', click on '+' symbol next to 'Databases'
- Right click on 'Intuition'
- Select 'Tasks', then 'Restore', then 'Database...'
- In the 'Restore Database - Intuition' window, under 'Source for restore', the 'From device' radio button, then click the '...' button to the right
- The 'Specify Backup' window appears, 'File' should be selected for the 'Backup media', click on the 'Add' button
- In the 'Locate Backup File' window, go to the backup folder in the 'c:\' drive, click on the backup file, the file name should now appear at the bottom of the window in the 'File name' box, click 'OK' for the next two screens
- You return are returned to the 'Restore Database - Intuition' window, in the 'Select the backup sets to restore' section, click the 'Restore' checkbox next to the 'Intuition-Full Database Backup'
- Under 'Select a Page', click on 'Options'
- Under 'Restore options', click the 'Overwrite the existing database' checkbox, then click 'OK'
- The 'Progress' in the lower left should show 100% and a window appears stating 'The restore of the database 'Intuition' completed successfully', click 'OK'
- Close SQL Server Management Studio Express
- Copy this backup to the backup folders of any computers using the same database
Reset Mettoni schema ownership:
- Open SQL Server Management Studio
- Under 'Object Explorer', click on the '+' sign next to 'Databases', click on the '+' sign next to Intuition, click on the '+' sign next to 'Security', click on the '+' sign next to Users, and double click on the 'guest' user
- The 'Database User - guest' window appears, under 'Schemas owned by this user' select the check boxes next to 'db_datareader', 'db_datawriter', 'db_owner', and 'mettoni'
- In the same window, under 'Database role membership' select the check boxes next to 'db_datareader', 'db_datawriter', and 'db_owner', then click 'OK'
- Under 'Users', right click on 'mettoni' and select 'Delete'
- An error box will appear asking if you would like to delete the schema and the user, select 'NO'.
- The 'Delete Object' window appears, click 'OK'
- Right click on ' Users' and select 'New User...'
- The 'Database User - New' window appears, for 'User name' enter 'mettoni' and 'Login Name'
- In the same window, under 'Schemas owned by this user' select the check boxes next to 'db_datareader', 'db_datawriter', 'db_owner', and 'mettoni'
- Then, under 'Database role membership' select the check boxes next to 'db-datareader', 'db_datawriter', and 'db_owner', then click 'OK'
- Under users, you should now see the user 'mettoni' returned to the list
- Close the Microsoft SQL Server Management Studio Express
Turn on services and applications:
- For all PC's referencing the base, the 'Mettoni Server Update' service must be restarted, to do this, on each PC go to the Start menu, in the 'Search Programs and Files box', enter 'services.msc', at the top of the search results, click on 'services'
- The 'Services' window appears, under the right hand 'Services (Local)' section, locate 'Mettoni Server Update', if the 'Status' shows as 'Stopped', right click on the service and select 'Start'
- Close the services window
- You may now resume using the 'Switchboard' and related applications