Welcome Guest, Login
Image
RSS RSS

Navigation


Quick Search
»



The swapping of databases should only be done by those familiar with SQL commands and aware of all possible issues which may occur. You will need a SQL manager such as Enterprise Manager or Craig’s SQL Manager.

  1. Go to the CW_Setup directory located at C:\CW_Setup.
  2. Run RWCAREWareInstaller.exe.
  3. Select “Custom Install” and press “Next”.
  4. Select the second check box and press “Next”.
  5. Provide a SA password and instance name for the new instance (CAREWare2).
  6. The installer will then create the new database and start the service. Once the service is started, you will see a new window that reads ‘The data tier has been successfully installed.’
  7. The radio button for creating a BusinessTierSettings.xml file will be checked; UNCHECK this button and press "Finish".
  8. Go to the business tier directory located at C:\Program Files\CAREWare\RW CAREWare Business Tier and open the CW Admin.exe.
  9. Click "Stop Server".
  10. Go to the "Services" tab and stop both SQL Server services by highlighting each and pressing "Stop Service".
  11. Go to the old database instance directory (default location: C:\Program Files\Microsoft SQL Server\MSSQL$CAREWARE\Data).
  12. Highlight CW_Data.MDF and CW_Data_log.LDF and then press control (CTRL) + C. This will copy both files.
  13. Go to the new database instance directory located at C:\Program Files\Microsoft SQL Server\MSSQL$CAREWARE2\Data.
  14. Press Control (CTRL) + P. This will paste both files in to this directory. If prompted to overwrite files, click "Yes".
  15. Go back to the CW Admin.exe and start MSSQL$CAREWare2 on the "Services" tab.
  16. Go to the "Server Settings" tab and highlight the tag DatabaseConnectionString and press "Edit".
  17. Change CAREWare2 to CAREWare3 and then press "Save".
  18. Press "Start Server".
  19. Open Craig's SQL Manager and register the new database (Right click on SQL Server Instances and select "Register new instance". Then click "Find BusinessTierSettings.XML" button and browse to the RW CAREWare Business Tier directory where the XML File is located. Select the file and press "Open". Once the path to the business tier is provided click "Connect".)
  20. Expand CAREWare2, then expand CW_Data, then expand Tables.
  21. Select the table CW_Client and right click on it. Then select "Run a query".
  22. Delete any text which may appear in the new query window.
  23. Paste this query into the query box: exec sp_changedbowner 'cwbt'
  24. Click "Run Query".
  25. Go back to the CW Admin.exe and click "Stop Server".
  26. Once the service is stopped click "Start Server".
  27. Open CAREWare and attempt to login.

Back to the Business Tier

Back to Frequently Asked Questions

jProg is a registered trademark of Jeff Murray's Programming Shop, Inc. All other products mentioned are registered trademarks or trademarks of their respective companies. Questions or problems regarding this web site should be directed to JeffMurray@jprog.com.

© 1998- Jeff Murray's Programming Shop, Inc. (jProg) , all rights reserved.