azure - 此版本的 SQL Server - Azure SQL 数据库不支持“CREATE CREDENTIAL”

标签 azure azure-blob-storage azure-sql-database

我希望设置我的 Azure SQL 数据库以备份到我的 Azure Blob 存储。

尝试使用以下代码创建 SQL 凭据时:

CREATE CREDENTIAL mycredential
WITH IDENTITY= 'storageaccountname' 
, SECRET = 
'DefaultEndpointsProtocol=https;AccountName=storageaccountname;AccountKey=8L
==;EndpointSuffix=core.windows.net'

我收到此错误:

Msg 40514, Level 16, State 1, Line 4
'CREATE CREDENTIAL' is not supported in this version of SQL Server.

SQL 版本是:

SELECT @@VERSION AS 'SQL Server Version'
Microsoft SQL Azure (RTM) - 12.0.2000.8   Jun 11 2017 11:55:10   Copyright 
(C) 2017 Microsoft Corporation. All rights reserved. 

最佳答案

停在那里。据我所知,您在 Azure SQL 数据库中没有备份/恢复,您必须使用导入/导出。你说的是这个吗?

回到问题,Azure SQL 数据库不支持 CREATE(server-scoped)CREDENTIAL,如果您仍希望在 Azure SQL 数据库中使用凭据,请使用 CREATE DATABASE SCOPED CREDENTIAL相反。

关于azure - 此版本的 SQL Server - Azure SQL 数据库不支持“CREATE CREDENTIAL”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44556794/

相关文章:

Azure 存储容器和通配符根域的路由

ios - 如何使用图像数据快速将图像上传到azure而不损失质量

sql-server - 如何设置 Azure SQL 自动重建索引?

sql-server - 更新 Windows 后 SqlClient 错误 - "The incoming tabular data stream (TDS) remote procedure call > (RPC) protocol stream is incorrect"

sql-server - 使用 VNET 进行 Azure 数据库部署管道部署

c# - 如何修复 "Could not load type ' System.Runtime.Remoting.Messaging.CallContext'"

具有 blobfuse 或 Azure 存储 Blob 的 Azure 容器实例

powershell - 匿名列出公共(public)容器中的 Azure 存储 blob

azure - 我们如何将整个 web.config 从 staging slot 转换为 azure 中的生产 slot?

Azure 函数在部署后未触发