Cannot perform a backup or restore operation on a transaction
Hello everyone, I have a problem with an algorithm I developed in Python. Basically it sends a query to the sql server that should backup a particular database, but every time I run it, it returns this error:
('42000', '[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Cannot perform a backup or restore operation on a transaction. (3021) (SQLExecDirectW); [42000] [Microsoft ][ODBC Driver 17 for SQL Server][SQL Server]BACKUP DATABASE is terminating abnormally. (3013)')
With other queries it works normally, except to perform backups or restores. Does anyone know if there is any way around this?