dbTalk Databases Forums  

Re: How to get filename of log file after backup

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Re: How to get filename of log file after backup in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob Waywell
 
Posts: n/a

Default Re: How to get filename of log file after backup - 04-25-2006 , 09:46 AM






I don't see an obvious way to do this. The BACKUP statement doesn't provide
you the renamed log file name, so you would probably be headed towards an
external function call to check the list of files in the backup directory
before doing the backup and then checking the list of files after the backup
to pick the new log file name out of the difference.

What will you be doing with the file name once you get it?

--
-----------------------------------------------
Robert Waywell
Sybase Adaptive Server Anywhere Developer - Version 8
Sybase Certified Professional

Sybase's iAnywhere Solutions

Please respond ONLY to newsgroup

EBF's and Patches: http://downloads.sybase.com
choose SQL Anywhere Studio >> change 'time frame' to all

To Submit Bug Reports:
http://case-express.sybase.com/cx/cx...c?CASETYPE=Bug

SQL Anywhere Studio Supported Platforms and Support Status
http://my.sybase.com/detail?id=1002288

"Kjetil Valøy" <kjetil.valoy (AT) iticket (DOT) no> wrote

Quote:
When I do a backup and the log file is renamed. Is there any whay to know
what the name of renamed this file actually is from within SQL Anywhere in
a stored procedure?

-- Kjetil --





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.