Results 1 to 3 of 3

Thread: To find archive log

  1. #1
    Join Date
    Sep 2005
    Posts
    1

    To find archive log

    Hi,

    how do you find if the archive log option is set in MS SQL.
    In oracle, we can use the set of code:


    select log_mode from v$database into :'workspace name'

    The Parameter has values ‘NOARCHIVELOG’ (switched off’) and ‘ARCHIVELOG’ (logging is on)


    do we have a similar statement For the MS SQL???

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    There is no archive log option in ms sql, it calls db recovery model (full, bulk-logged or simple). You can find it in enterprise manager -> db properties -> options tab, or with 'select DATABASEPROPERTYEX('db_name', 'recovery')' in query analyzer. And you can change db recovery model in em or with 'alter database db_name set recovery ...'.
    Last edited by rmiao; 09-13-2005 at 08:43 AM.

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Noarchive log is similar to simple recovery model.
    Full recovery mode keeps the transaction log but you have to run transaction log backup to truncate it otherwise transaction log grows (if you have auto extend set). There is no separate redo log and archive log in sql server it's only transaction log.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •