Home  >  Article  >  Database  >  SQL 错误描述为: 链接服务器 (null)的 OLE DB 访问接口

SQL 错误描述为: 链接服务器 (null)的 OLE DB 访问接口

WBOY
WBOYOriginal
2016-06-07 17:48:121847browse

SQL 错误描述为: 链接服务器 (null)的 OLE DB 访问接口


向SQL Server2005里导入数据是出现错误“SQL 错误描述为: 链接服务器 '(null)' 的 OLE DB 访问接口'STREAM' 返回了对列 '[!BulkInsert].field' 无效的数据”,已打了SQL Server2005的最新补丁,在SQL Server2008里有同样的问题。

BaiDu了下,有人说好像是SQL 2005的一个未公开的Bug,在SQL Server2000里没有这样的问题。

解决:

在SQL Server启动过程中增加参数4808。

1. 在 SQL Server 配置管理器中,单击“SQL Server 服务”。

2. 在右窗格中,右键单击 SQL Server (),再单击“属性”。

3. 在“高级”选项卡的“启动参数”框中,键入“;-T4808”(加分号和-T4808)。

4.设置完成后,重启SQL Server服务,在查询分析器中执行“DBCC tracestatus”,

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn