Welcome Guest, Login
Image
RSS RSS

Navigation


Quick Search
»



The change logs contain all changes made to the CAREWare database by users within the Client Tier. These logs are used as part of the audit feature of CAREWare. It is important to keep these logs, but if they are taking up to much space on the hard drive then you can detach and archive the oldest logs.You will need a SQL Manager such as Management Studio Express or Craig's SQL Manager to complete the following process.

NOTE: We recommend that you do not remove or detach the highest numbered change log attached to the database instance.

To detach a change log using Management Studio:

  1. Open Management Studio and expand your CAREWare instance
  2. Expand 'Databases' under your CAREWare database instance
  3. Right click on the first CW_Change_Log_00XX you want to remove
  4. Select "Tasks", then "Detach Database"
  5. Check the checkboxes for Drop Connections and Update Statistics
  6. Click "OK"

This procedure will detach the database. You can then go to the Microsoft SQL Server directory and move the detached change log to your archival destination.

To detach a change log using Craig's SQL Manager:

  1. Open Craig's SQL Manager and register your database instance for CAREWare
  2. Expand the database instance by clicking on the + sign
  3. Right click on the CW_Change_Log_000X, where X is the last digit, and select "Detach Database"
  4. Click "Yes" when prompted to detach the database.

This procedure will detach the database. You can then go to the Microsoft SQL Server directory and move the detached change log to your archival destination.

If you encounter the error "Cannot detach database "cw_change_log_000X because it is currently in use", then run the following query:

USE master; ALTER DATABASE cw_change_log_000X SET SINGLE_USER;

Then run the following query in order to detach the database:

sp_detach_db 'cw_change_log_000X'

Where X is the number of the change log.

Back to the Data 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.