hi all
i have a sql 2016 server which i can backup to azure issue free, i provide access key via a credential and all works as expected.
i now want to do the same on a sql 2014 server, but with the same configuration and access keys i get an error
Msg 3271, Level 16, State 1, Line 1
A nonrecoverable I/O error occurred on file "https://name.blob.core.windows.net/sql/dbname.bak:" Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: (400) Bad Request..
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
November 25, 2021 at 3:43 pm
Have you review this article: https://docs.microsoft.com/en-us/previous-versions/sql/2014/relational-databases/backup-restore/sql-server-backup-to-url?view=sql-server-2014
It appears that 2014 and prior versions require a different setup and configuration for backing up to Azure blob storage.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
November 25, 2021 at 4:48 pm
hi Jeffrey
yea i did see this, but with updates to 2014 the backup to url option is now in 2014
i did try using straight up sql script as the link above suggests, but i get the exact same error!
mal
November 26, 2021 at 5:40 pm
The backup to URL functionality was introduced in SQL Server 2012 - what appears to be different is the methodology.
It appears that for 2014 and prior you need to specify the credential in the backup command, where for 2016 and later - that is not needed and the method of setting up the credential is different.
2014 and prior also have other limitations - for example, cannot backup to premium storage - cannot define MAXTRANSFERSIZE or BLOCKSIZE.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
November 29, 2021 at 8:54 am
i am using the below command as advised on the link, but having no luck at all!
BACKUP DATABASE [ShopFloorDataSystemE10Live]
TO URL = 'https://name.blob.core.windows.net/sql/test1.bak'
WITH CREDENTIAL = 'az'
,COMPRESSION
,STATS = 5;
GO
got sql updated with all patches etc and it worked 100% perfect!
cheers all for feedback
mal
December 14, 2021 at 2:05 pm
another reason to keep up your software level 🙂
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply