我正在尝试通过BCP导入数据。我禁用了表上的唯一索引,以便快速导入BCP。当我启用索引导入时,它需要太长时间。当我禁用索引时,导入中的某处会抛出一个错误,抱怨索引被禁用:
SQLState = 37000, NativeError = 8655
Error = [Microsoft][SQL Server Native Client 11.0][SQL Server]The query processo
r is unable to produce a plan because the index 'xxxxxxxx' on table
or view 'yyyyyyyyyyy' is disabled.
BCP copy in failed
有关索引和BCP的最佳做法是什么?建议?