2015-10-27 123 views
0

我正在使用微軟sql服務器,我想導出我的數據庫,但我在最後一步得到一個錯誤。以下是完整報告:mssql導出停止在驗證步驟

Operation stopped... 

- Initializing Data Flow Task (Success) 

- Initializing Connections (Success) 

- Setting SQL Command (Success) 

- Setting Source Connection (Success) 

- Setting Destination Connection (Success) 

- Validating (Error) 
Messages 
Error 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column "BookId". 
(SQL Server Import and Export Wizard) 

Error 0xc0202045: Data Flow Task 1: Column metadata validation failed. 
(SQL Server Import and Export Wizard) 

Error 0xc004706b: Data Flow Task 1: "Destination - BookTable" failed validation and returned validation status "VS_ISBROKEN". 
(SQL Server Import and Export Wizard) 

Error 0xc004700c: Data Flow Task 1: One or more component failed validation. 
(SQL Server Import and Export Wizard) 

    Error 0xc0024107: Data Flow Task 1: There were errors during task validation. 
(SQL Server Import and Export Wizard) 

- Prepare for Execute (Stopped) 

- Pre-execute (Stopped) 

- Executing (Success) 

- Copying to [dbo].[BookTable] (Stopped) 

- Copying to [dbo].[ChartTable] (Stopped) 

- Copying to [dbo].[UserTable] (Stopped) 

- Post-execute (Stopped) 

看起來好像在驗證步驟中有錯誤。

回答

0

我假設您的Bookid是AutoIncrement字段,並且您正嘗試從其他來源向該表中填充數據。您必須在映射中使用Enable Identity Insert以允許更新Bookid。

此外,請確保您的種子高於您在數據交換中插入的最後一個值,否則當您覆蓋Identity Insert行爲時,您會關閉安全檢查,從而可能會遇到錯誤。