Hi there,

1. i get the following error;
c:\>sqlite.exe 1.db
Unable to open database "1.db": database disk image is malformed

so i can't execute pragma integrity_check.
header: ** This file contains an SQLite 2.1 database **

2. this is the corrupted file:
0000000000: 2A 2A 20 54 68 69 73 20 ? 66 69 6C 65 20 63 6F 6E
0000000010: 74 61 69 6E 73 20 61 6E ? 20 53 51 4C 69 74 65 20
0000000020: 32 2E 31 20 64 61 74 61 ? 62 61 73 65 20 2A 2A 00 0000000030: 28 75 E3 DA 00 00 00 00 ? 00 00 0C 00 00 00 04 00
0000000040: 00 00 D0 07 00 00 02 00 ? 00 00 00 00 00 00 00 00


this is my normal db:
0000000000:  2A 2A 20 54 68 69 73 20 ? 66 69 6C 65 20 63 6F 6E
0000000010:  74 61 69 6E 73 20 61 6E ? 20 53 51 4C 69 74 65 20
0000000020:  32 2E 31 20 64 61 74 61 ? 62 61 73 65 20 2A 2A 00
0000000030:  28 75 E3 DA 00 00 00 00 ? 00 00 00 00 F6 03 00 00
0000000040:  04 00 00 00 D0 07 00 00 ? 02 00 00 00 00 00 00 00

here after 0x34 it seemed to me that there is a 2 bytes shift left so i added 2 null bytes,
but it didn't work.
c:\>sqlite.exe 1.db
Unable to open database 1.db


now what? any suggestions?

Mustafa TUFAN

Reply via email to