我非常熟悉從Azure SQL V12導出到我的開發箱然後導入到本地sql(2014)實例的過程。我正在旋轉一個新的Win10盒子並安裝了SQL 2016 CTP。我連接到同一Azure的實例,可以針對它進行操作 - 並能在.bacpac出口就如同2014年無法將SQL Azure bacpac導入到2016 CTP
但是,當我嘗試導入到本地我得到:
Could not import package.
Warning SQL72012: The object [FOO33_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [FOO33_Log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Error SQL72014: .Net SqlClient Data Provider: Msg 547, Level 16, State 0, Line 3 The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_dbo.Address_dbo.User_idUser". The conflict occurred in database "FOO33", table "dbo.User", column 'idUser'.
Error SQL72045: Script execution error. The executed script:
PRINT N'Checking constraint: FK_dbo.Address_dbo.User_idUser [dbo].[Address]';
ALTER TABLE [dbo].[Address] WITH CHECK CHECK CONSTRAINT [FK_dbo.Address_dbo.User_idUser];
那又如何?作爲CTP的SQL Server 2016 CTP並未得到其他產品的全面支持?這裏有什麼驚喜嗎? – TomTom
它說「錯誤SQL72014:.Net SqlClient數據提供程序:Msg 547,級別16,狀態0,行3 ALTER TABLE語句與FOREIGN KEY約束」FK_dbo.Address_dbo.User_idUser「衝突。數據庫」FOO33「 ,表「dbo.User」,列'idUser'「 – TheGameiswar
嘗試解決錯誤 – TheGameiswar