1

For some reasons I cannot import new BACPACs from Azure. I still can import old ones. This is the error message I get:

Internal Error.  The internal target platform type SqlAzureV12DatabaseSchemaProvider does not support schema file version '3.1'.

I've tried this this solution , but it didn't help, because all my settings are already set up to default. I also downloaded latest SSMS Preview, but on import it gives me other errors:

Warning SQL0: A project which specifies Microsoft Azure SQL Database v12 as the target platform may experience compatibility issues with SQL Server 2014.
Error SQL72014: .Net SqlClient Data Provider: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'Admin'.
Error SQL72045: Script execution error.  The executed script:
CREATE DATABASE SCOPED CREDENTIAL [Admin]
    WITH IDENTITY = N'Admin';

Error SQL72014: .Net SqlClient Data Provider: Msg 319, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
Error SQL72045: Script execution error.  The executed script:
CREATE DATABASE SCOPED CREDENTIAL [Admin]
    WITH IDENTITY = N'Admin';

I have SSMS 2014 CU6 installed.

Any help would be much appreciated! Thank you!

4

2 回答 2

2

终于搞清楚是怎么回事了。这是一个特定的案例,但也许它可以帮助其他人。我们尝试使用弹性查询来编写跨数据库的查询。为此,您需要创建数据库范围的凭据。导入包时,它尝试在本地执行相同的操作,但执行失败:

CREATE DATABASE SCOPED CREDENTIAL [Admin]
WITH IDENTITY = N'Admin';

由于我们决定使用不同的方法,我删除了范围凭据和外部数据源(如果不删除数据源就无法删除凭据):

DROP EXTERNAL DATA SOURCE Source
DROP DATABASE SCOPED CREDENTIAL Admin

现在一切都恢复正常了。请注意,如果已创建范围凭据,则无法从 Azure 导入数据库。

于 2016-05-02T02:26:20.553 回答
0

确保您使用的是新的 SQL Server Management Studio https://msdn.microsoft.com/en-us/library/mt238290.aspx

于 2016-04-30T00:37:26.270 回答