I been using free version of program to backup SQL Server Express 2019 database to one .sql file, as secondary bakup. Today its only backup i have and when i started to restore i facing with schema recreation problem
13/08/2025 6:11 PM Connecting to “Remote SQL Server”: “SHON3I\SQLEXPRESS”.
13/08/2025 6:11 PM Connected to “SQL RTM Express Edition (64-bit)”.
13/08/2025 6:11 PM Uncompressing “D:\Baze\MFP202508131731.zip” file with Internal archiver.
13/08/2025 6:11 PM Restoring “MFP1” database from files: “MFP202508131731.sql”.
13/08/2025 6:11 PM Failed to restore “MFP1” database. T-SQL command error: ALTER TABLE [dbo].[Serije] WITH NOCHECK ADD CONSTRAINT [Serije_FK00] FOREIGN KEY([ArtikalID])
REFERENCES [dbo].[Artikli] ([ArtikalID])
Foreign key ‘Serije_FK00’ references invalid table ‘dbo.Artikli’.
Could not create constraint or index. See previous errors.
13/08/2025 6:11 PM Job execution error: T-SQL command error: ALTER TABLE [dbo].[Serije] WITH NOCHECK ADD CONSTRAINT [Serije_FK00] FOREIGN KEY([ArtikalID])
REFERENCES [dbo].[Artikli] ([ArtikalID])
Foreign key ‘Serije_FK00’ references invalid table ‘dbo.Artikli’.
Could not create constraint or index. See previous errors. Server name: “SHON3I”.
13/08/2025 6:11 PM Deleting temporary files.
13/08/2025 6:11 PM Job “Restore Job - 2” finished with “2” errors.
To help us investigate the issue, could you please export the database schema only (no data) from SSMS and send it over to support@sqlbackupandftp.com?
Steps in SSMS
Connect to the server → right-click the database → Tasks → Generate Scripts…
Choose Objects: select Script entire database and all database objects (or pick specific ones).
Set Scripting Options:Save as script file, Single file, UTF-8 → Advanced… → set:
Types of data to script:Schema only
Script Indexes:True
Script Primary Keys:True
Script Foreign Keys:True
Script Triggers:True
(optional)Script Extended Properties:True
(optional)Include IF NOT EXISTS:True
Next → Finish. Zip the resulting .sql and send it back.
Thank you. I’m glad you’re working on the fix and I look forward to the update when it’s ready. Somehow i managed to import .sql and restore database via sqlcmd command, so i now not in trouble