Attachment of current DB to Microsoft SQL Server
|
Caution |
Please contact OptimiDoc support before proceeding with following steps |
Before launching Microsoft SQL Server Management Studio, stop OptimiDoc Service in the Task Manager (in Services) and OptimiDoc in ISS Manager.


1. Launch Microsoft SQL Server Management Studio

2. Right-click on Database and choose Attach...

3. Click on Add

4. Select OptimiDoc.mdf in OptimiDoc\WebApp\App_Data and click on the OK button

5. To finish the database attachment, click on the OK button

6. Right-click on the new attached database and rename it as "OptimiDoc"

7. Now proceed with the following steps Modification of connection string at web.config
🖧🖹 |
Example |
Problem description When I added database (step 4.), program showed me an error: "An error occurred when attaching the database(s). Click the hyperlink in the Message column for details." Solution Among others there is one frequent cause. Go to OptimiDoc\WebApp\App_Data and right-click on OptimiDoc.mdf and choose properties, click on the Security tab and change permissions by button the Edit. Select the user who is logged in Microsoft SQL Server Management Studio, and Allow all permissions. |