Solved

Back up database to a network drive in sybase central

Posted on 2004-09-03
2
1,280 Views
Last Modified: 2012-06-21
I am trying to back up my database ( I am using sybase central) using ISQL analyzer , I am not able to back up to a network drive, I have no problem if i back up to the local drive. It is showing this error
ASA Error-697:Error during back up : could not create directory R:\Backup\Friday--No such directory or permission denied.
I am trying to do this from the dba account with full permisiions. Can you help me ?
the event handler has this code
begin
  declare day_of_week varchar(20);
  declare backup_stmt long varchar;
  set day_of_week=ucase(dayname(today(*)));
  set backup_stmt='BACKUP DATABASE DIRECTORY ' || '''R:\\Backup\\' || day_of_week || ''' ';
  if day_of_week <> 'SATURDAY' then
    set backup_stmt=backup_stmt || 'TRANSACTION LOG ONLY'
  else
    set backup_stmt=backup_stmt || 'TRANSACTION LOG TRUNCATE'
  end if;
  execute immediate backup_stmt;
  insert into tblEventLog(EVLOG_szOperator,EVLOG_szOption,EVLOG_szMessage) values('System','Backup','Backup Completed')
end
0
Comment
Question by:Umamahez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Jan_Franek earned 500 total points
ID: 11975037
Error message: could not create directory R:\Backup\Friday--No such directory or permission denied

means that either the drive R: is not mapped on database server machine, or user sybase (or user that was used to start database server engine) has no rights on R:\Backup\, or (most probably) you have both these problems.

You can try to use full network path (like \\computername\Backup\) instead of mapped drive letter - this should address the first problem. But even with this you can still have problem with permissions, particularly if you run your database server as Windows service under System Account. I'm not sure about permissions of System Account - try to allow full access to destination computer for everyone. If it will not help, try to use other account to start the database server service.
0
 

Author Comment

by:Umamahez
ID: 11976412
thank u it worked...change services settings
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out this step-by-step guide for asking an anonymous question on Experts Exchange.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question