Backup Database is terminating abnormally

Ransford Graham 1 Reputation point
2022-11-02T03:56:17.677+00:00

Backup Database is terminating abnormally

When I run the backup script from SSMS Query window it completes successfully.

If I call the procedure from FoxPro SQL Pass Through SQLEXEC function I get the message: Backup Database is terminating abnormally.

Why is this happening?

Developer technologies | Transact-SQL
SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Peter Groft 106 Reputation points
    2022-11-02T05:51:52.833+00:00

    Step 1. Download Launch SQL BAK File Repair Tool
    Step 2. Open and Browse to load the .bak file
    Step 3. Select the version of the SQL Server backup file
    Step 4. Click on the Multiple Backup File Options to recover and restore multiple .bak files
    Step 5. Click on the Recover option and once the recovery process is done, the tool displays a preview of all recovered data items
    Step 6. Now, click on the Export option to restore .bak in SQL Server Database
    Step 7. Choose the Export option between Export to SQL Server Database and SQL Server Compatible Scripts. After that fill in all the required details
    Step 8. If you want to restore the SQL BAK file to the new database, then select Create New Database option. Otherwise, select the Export to Existing Database option
    Step 9. Choose Export with only schema or Export with schema & data option as per your requirement
    Step 10. Click on the Export button to start the process of restoring the SQL Server database from the BAK file.

    Hope You Find This Useful,
    Peter


  2. Bjoern Peters 8,921 Reputation points
    2022-11-02T12:23:48.377+00:00

    Hi @Ransford Graham

    Are you aware of the different techniques that are used by FoxPro to execute a SQL statement on a SQL Server?

    As Erland and Cathy already stated in the other thread... this issue is not related to SQL Server; it is more related to FoxPro and how it handles SQL statements to a SQL Server.
    Maybe it is running in a (connection) timeout and kills the command, or maybe the user that holds the connects has not had the correct permissions.

    Maybe you have more details on the error message; in SQL Server, there should be at least (as Erland stated) two lines of error messages in the SQL Server log about this error.
    And maybe it is also interesting to know, when this error happens... is it immediately after executing the statement or after a few moments that the command is stuck in the middle of a backup?

    Maybe you can give us more information on this error?!

    Thank you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.