【问题标题】:'CREATE CREDENTIAL' is not supported in this version of SQL Server - Azure SQL Database此版本的 SQL Server 不支持“CREATE CREDENTIAL” - Azure SQL 数据库
【发布时间】:2017-11-17 07:34:17
【问题描述】:

我希望设置我的 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 azure-blob-storage azure-sql-database


【解决方案1】:

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

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

【讨论】:

  • 我希望能够备份我的任何 Azure SQL 数据库,然后存储在我的存储帐户中。看起来我已经为 Azure SQL 数据库备份设置了长期保留。感谢您的支持...
  • 你可以根据这个从blob恢复:docs.microsoft.com/en-us/azure/sql-database/…
【解决方案2】:

在这种情况下,您似乎使用了不正确的密钥(密钥)。您需要检查您的 Azure 容器。

https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-06-27
  • 1970-01-01
  • 2018-12-14
  • 2012-04-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多