Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Back up database to a network drive in sybase central

Posted on 2004-09-03
2
Medium Priority
?
1,350 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
2 Comments
 
LVL 14

Accepted Solution

by:
Jan Franek earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
Your business may be under attack from a silent enemy that is hard to detect. It works stealthily in the shadows to access and exploit your critical business information, sensitive confidential data and intellectual property, for commercial gain. T…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

885 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