简体   繁体   中英

How To Backup Microsoft Azure SQL Database Using ASP.NET

Good day, I am trying to backup a Microsoft Azure SQL database using an ASP.Net application programmatically into either a.BACPAC file I can download to a local machine or into an Azure blob storage platform. I know similar questions have been asked before but I have searched the web and cannot find a recent solution that seems to work. A simple "Backup database" SQL query also doesn't seem to be possible as I am constantly thrown with the error message: 'BACKUP DATABASE' is not supported in this version of SQL Server. Any help would be greatly appreciated. Attempt at consuming API

The simplest way i think is to use Databases - Export Rest Api (Exports a database to a bacpac) The rest api provides you with a blobUri which you can use to download or transfer to Azure blob storage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM