I am trying to import SQL Server Database from AWS SQL Server to Azure SQL Server. Below are the steps I am doing for the import process :
- Backing up the database from AWS SQL Server to AWS S3 bucket.
- Copying the .bacpac file from S3 bucket to local file path.
- Uploading the .bacpac file from local file path to Azure blob storage.
After the upload process, when I am restoring the .bacpac file from Azure blob storage to Azure SQL Server, I am getting the below exception.
*Cannot use the backup file 'https://sqlmigrateassistant.blob.core.windows.net/sql2005backup/demodatabase.bacpac' because it was originally formatted with sector size 512 and is now on a device with sector size 65536. RESTORE FILELIST is terminating abnormally *
After step 2 above , I had also tried importing the .bacpac file from the local file path manually into Azure SQL Server from the SQL Server Management studio(SSMS).At that time I am getting the below exception.
*File contains corrupted data. (Microsoft.Data.Tools.Schema.Sql) *
Can anyone provide any information on how I can restore the database to Azure SQL Server ?
Any information is greatly appreciated.