【发布时间】:2021-01-20 12:38:32
【问题描述】:
我正在尝试将数据从 MS Access 导入到 SQL Server,这个过程曾经有效,今天我无法导入数据。当我尝试使用 SQL Server 导入和导出向导导入数据时,会显示下一个错误:
- Copying to [dbo].[Measurements] (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Could not allocate a new page for database 'MITSF_2' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - Measurements.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination - Measurements.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - Measurements" (778) failed with error code 0xC0209029 while processing input "Destination Input" (791). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - Measurements returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
我尝试缩小数据库并截断日志文件,但仍然给我同样的错误。
【问题讨论】:
-
"
Could not allocate a new page for database 'MITSF_2' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup." 没有函数可以解决这个问题;你需要释放空间。 -
我投票结束这个问题,因为它与编程无关,你不需要“函数”;您只需要阅读错误并相应地管理您的系统。
-
离题 - 属于 dba,因为这确实是一个关于缩小数据库和扩展主文件组的问题。
-
是的 - 这属于 DBA。硬盘/缩小管理任务。除非可以明确他的功能是收缩数据库的要求。