我正在使用microsoft sql server而我正在尝试导出我的数据库但是我在最后一步中收到错误。以下是完整报告:
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 :(得分:0)
我假设您的Bookid是AutoIncrement
字段,并且您正尝试从其他来源将数据填充到该表中。您必须在映射中使用Enable Identity Insert
以允许更新Bookid。
此外,请确保您的种子高于您在数据交换中插入的最后一个值,否则您可能会遇到错误,因为您在超越Identity Insert
行为时关闭了安全检查。