I have on my azure portal 2 sql databases, which for demonstration purpose I call them database one
and database-two
Using python ODBC Driver 17, I am able to connect to database one and create a simple table. So far no big issues.
Where I am facing a problem, is when I try to make a backup of database-one I am getting this error:
pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Driver 17 for sql Server][SQL Server]Statment 'BACKUP DATABASE' is not supported in this version of SQL Server. (40510) (SQLExecDirectW)"
the line of code I am using to achieve this is as follow:
cursor.execute("BACKUP DATABASE [database-one] TO DISK = N'./backup.bak'")
Is there any solution how I can run the backup from pyodbc?