dbTalk Databases Forums  

Specified Database Not Found -- dbbackup

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


Discuss Specified Database Not Found -- dbbackup in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Patrick Wong
 
Posts: n/a

Default Specified Database Not Found -- dbbackup - 08-18-2011 , 05:35 PM






Hello,

I am using Sybase ASA 9.0.0.1108 on a Windows 7 Professional SP1.

When running the following line in a batch file, I receive a "Specified database not found" error message:

dbbackup -c "eng=MyDatabaseSvc;dbn=SampleDb;uid=ABC;pwd=12345; " -x -y- o .\Backup\LogFile.txt .\Backup

I initially created a service (MyDatabaseSvc) and connected to the database(database name=SampleDb; database filename=demolive.db) in Sybase Central. I tried disconnecting the database, stopping the service, creating an ODBC DSN to the database. Nothing would make the message go away.

The Backup Database utility within Sybase Central works flawlessly.

I launch Sybase Central and "Run As Administrator". Same goes for the batchfile.

Am I missing something? What can I do to get the batch file to run?

Regards.

Reply With Quote
  #2  
Old   
Patrick Wong
 
Posts: n/a

Default Re: Specified Database Not Found -- dbbackup - 08-23-2011 , 11:28 AM






Nevermind. After 4 days of zero response, I found the solution on my own. I needed to add the dbf parameter to the connection string. Instead of this:

dbbackup -c "eng=MyDatabaseSvc;dbn=SampleDb;uid=ABC;pwd=12345; " -x -y- o .\Backup\LogFile.txt .\Backup

I write it like this:

dbbackup -c "eng=MyDatabaseSvc;dbn=SampleDb;dbf=.\mydbase.db;u id=ABC;pwd=12345;" -x -y- o .\Backup\LogFile.txt .\Backup

Thanks a lot.

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.