Attachment of current db to Microsoft SQL Server
Attachment of current db to Microsoft SQL Server
!Discuss with OptimiDoc support before proceeding with following steps!
Before launching Microsoft SQL Server Management Studio, stop OptimiDoc Service in 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 OK button |
|
5. To finish database attachment, click on OK button |
|
6. Right-click on new attached database and rename it to "OptimiDoc" |
|
7. Now proceed with following steps Modification of connection string at web.config |
Notes:
Problem description
When I added database (step 4.), program showrd me an error: "An error occurred when attaching the database(s). Click the hyperlink in the Message column for details."
Solution
Go to OptimiDoc\WebApp\App_Data and right-click on OptimiDoc.mdf and choose properties, click on tab Security, and change permissions by button Edit. Select user who is logged in Microsoft SQL Server Management Studio, and Allow all permissions for him.





