Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have an production database that is inconsistent. Actually it just affect one table (a big table with about 37kk rows). If I try unload it, I got an error. If I try to select with an order by, I got an error. Using select * from table an then export data, I can get about first 15kk.

On this link, I show you output log this message

I need to recover this data since it holds some government info that I need to store for 5 years. As I know all my backups are corrupted too.

Please, help me!!!

asked 27 Oct '12, 11:36

Zote's gravatar image

accept rate: 43%

edited 27 Oct '12, 11:38


You say that if you try the select with an order you get the error, are there other indexes you can try to order by to get the rows in different orders?

I have had a success in the past with getting almost half the rows by ordering Ascending, and then almost all the rest by ordering Descending.

(28 Oct '12, 09:38) Justin Willey
Comment Text Removed

FWIW: Have your backups been validated? (No, that's no "know-it-all" suggestion, I'm just asking whether that corruption had gone unnoticed through full validation...)

(29 Oct '12, 11:21) Volker Barth

No, unfortunately our backups currently isn't validated, it's an 85gb database used 24x7 and validate slows out system. Any clue?

(29 Oct '12, 20:13) Zote
Replies hidden

Maybe you could run the validation on a copy of the backup (or a backup in read-only mode) on a separate box? - That will take time (and resources), for sure, however, an invalid backup is not much better than none at all...

(30 Oct '12, 06:08) Volker Barth

Sadly, SQL Anywhere doesn't have any tools for dealing with corrupted data.

Since you can run a SELECT * to get the "first 15K", perhaps you can figure out another "SELECT * WHERE some-column > some-value" that will give you the data on the other side of the bad page.

Good luck!

permanent link

answered 27 Oct '12, 17:36

Breck%20Carter's gravatar image

Breck Carter
accept rate: 20%

Place a call with technical support. The support team has some tools that offer at least the possibility of salvaging the data in your database, if they cannot work around the corruption problem in some other way.

permanent link

answered 29 Oct '12, 21:36

Glenn%20Paulley's gravatar image

Glenn Paulley
accept rate: 43%

Try SQL Database Recovery retrieves all data stored within SQL server .MDF files such as tables, triggers, views, stored procedures with damaged unique keys, primary keys and foreign keys. Deleted files are also successfully recovered and saved in a separate batch file for further use.

permanent link

answered 07 Mar '13, 04:21

davegeeit's gravatar image

accept rate: 0%

edited 20 Jun '14, 08:27

Mark%20Culp's gravatar image

Mark Culp


How does this answer apply to the question? Zote is not using SQL Server, he is using SQL Anywhere!

(07 Mar '13, 08:03) Mark Culp
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 27 Oct '12, 11:36

question was seen: 4,095 times

last updated: 24 May '16, 08:22