Solved

Sybase DBBackup not supporting over 8 character dbnames

Posted on 2008-06-11
4
901 Views
Last Modified: 2012-05-05
I am trying to perform an online backup of a Sybase SQL Anywhere 5.0 database. I have about 20 databases to backup, however some of the databases are short names and some are long names.  The short named databases will backup fine with the dbbackup command, but the long named databases give an error saying the specified database not found.  renaming the databases would be something that i'd like to avoid if possible, firstly because the databases used are being replaced shortly and i dont want to spend excess time on them and secondly because the whole process of renaming the databases would require an outtage that is unacceptable.  Here is the command im using that isnt working.
dbbackup -y -c "eng=servername;dbn=company_payroll_new_test;uid=care;pwd=sql;dbf=d:\database\company_payroll_new\test\database.db;" d:\backup\database\company_payroll_new\test

is there anyway to get around the 8 character limit or is there an updated version?
0
Comment
Question by:LakesGrammar
[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
4 Comments
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 125 total points
ID: 21766800
I didn't think you needed to specify the database filename...

You should be able to get by just specifying the engine and database names, I'm pretty sure you don't need the DBF in the connection string:

dbbackup -y -c "eng=servername;dbn=company_payroll_new_test;uid=care;pwd=sql;" d:\backup\database\company_payroll_new\test
0
 
LVL 51

Assisted Solution

by:Mark Wills
Mark Wills earned 125 total points
ID: 21781876
There is always a newer version :)  goto Sybase and have a look for the latest versions...

Being lateral for a second, you could try to create a backup script in SQL and run that :

BACKUP DATABASE DIRECTORY backup-directory
  [ WAIT BEFORE START ]
  [ DBFILE ONLY ]
  [ TRANSACTION LOG ONLY ]
  [ TRANSACTION LOG RENAME [ MATCH ] ]
  [ TRANSACTION LOG TRUNCATE ]

Or,

Can you perform the back up (as a once off - just to confirm long names) using Sybase Central to manually / interactively create a database...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

726 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