Hi Everyone,

Is there an option to set up in order to have the logs called something like :
DBNAME_YYYYMMDD_HHMMSS instead of "ie : 20071128 183856 01.log" which is not really a speaking name ?

Thanks in advance for your replies,
Jerome
Dje
0

Comments

2 comments

  • petey
    You can't do that to the default logs that are created. The reason being we need a definitive way to look for those logs. If users start naming them in other ways, we may never get the logs we want.

    Having said that, you can create a secondary set of logs using the LOGTO option e.g.
    EXEC master..sqlbackup '-sql "BACKUP DATABASE ... WITH LOGTO = [e:\dblogs\<database>_<datetime yyyymmdd_hhnnss>.log]"'
    
    Note that minutes are represented by the symbol nn, not mm.
    petey
    0
  • Dje
    Thanks petey.
    It works fine.
    Let's implement this :)
    Dje
    0

Add comment

Please sign in to leave a comment.