我已经将SQL Server(Express)数据库的备份设置为Azure Blob存储,但是当SAS令牌过期时它停止工作。现在,即使以 sa 用户身份,我也无法更新令牌或删除凭据。
所以这些都不起作用
DROP DATABASE SCOPED CREDENTIAL [https://{account}.blob.core.windows.net/{container}]
ALTER DATABASE SCOPED CREDENTIAL [https://{account}.blob.core.windows.net/{container}] WITH IDENTITY='SHARED ACCESS SIGNATURE',
SECRET = 'sv=...'
错误所在
Cannot drop/alter the credential 'https://{account}.blob.core.windows.net/{container}', because it does not exist or you do not have permission.
我可以创建一个新的凭据
CREATE CREDENTIAL [https://{account}.blob.core.windows.net/{container}-2]
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
SECRET = 'sv=...'
这当然不起作用,因为名称与Blob网址不匹配。
那我该怎么做才能使其重新工作?