Everything went well, but when i tried to restore the V4 database, strange issues showed up (like the picture below).
I’m not sure what caused this, but i tried to reinstall couple times with multiple database names and still no luck.
I also realized that the database state become (restoring…) forever in SQL management.
I tried couple method listed in that page before, but still no luck.
When i tried to recover the database, it says :
"Msg 4333, Level 16, State 1, Line 1 The database cannot be recovered because the log was not restored. Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally."
It’s weird since the backup contains both data and log file.
I did tried to delete and make couple new database with different names. It’s all end the same way with the same error.
I also realized that i couldn’t restore the Backup Settings as well, it says “Sequence contains no elements”
Oh, i mean i also having trouble to restore the setings as well, not only the database.
I also tried to restore on different computer, with different SQL server. But still got the same error
I’m using regular backup module from 4.1.82
Database Backups -> Backup Database
Database Tools -> Tools -> Export to file
@RickH
Wow, that’s strange… Since i also tried to delete the database from management studio multiple times and restored backup with multiple database names and still no luck
Strange it must be something to do with how your SQL server was setup when you ran the backup. You can PM me a copy of your backup and I can test it if you like.
Wow, the database works? That’s weird.
I tried it three times with different database names just now, and still not working
i’m curious, so i tried to restore the database in 4.1.82 (version where i made the backup)
and apparently, i got the same error. So i think it’s related to my SQL server settings (i’m using SQL server 2014).
i’m going to try re-install my SQL server and downgrade it to 2012. I’ll keep update the results here.
I use SQL express 2014. Follow the tutorial I made for installing it the tutorial you linked is old. There is a link to the updated 2014 tutorial in the welcome to v5 post.
UPDATE:
I FINALLY can get this backup to work!
I still couldn’t restore the backup through SAMBAPOS
I use this command to restore the backup file. Just like emre said, unzip and restore via sql management studio
RESTORE DATABASE MyDatabase
FROM DISK = ‘MyDatabase.bak’
WITH REPLACE, RECOVERY
Everything works fine now
PS : Out of curiousity. I made a backup again in SambaPOS 5 and tried to restore it again.
It’s still not working. But again, i can restore it through SQL management studio using above command.