SELECT * FROM OPENDATASOURCE( 'MSDAORA', 'Data Source=t43;User ID=t43;Password=pass' )..t43.dl_ratioOLE DB 提供程序 'MSDAORA' 不包含表 '"t43"."dl_ratio"'。该表可能不存在,或当前用户没有使用该表的权限。 OLE DB 错误跟踪[Non-interface error: OLE DB provider does not contain the table: ProviderName='MSDAORA', TableName='"t43"."dl_ratio"']。
噢,原来Oracle的表名一定要大写! 但是新的问题又出来了: 服务器: 消息 7356,级别 16,状态 1,行 1 OLE DB 提供程序 'MSDAORA' 为列提供的元数据不一致。执行时更改了元数据信息。 OLE DB 错误跟踪[Non-interface error: Column 'LIMITHOURS' (compile-time ordinal 23) of object '"T43"."DL_RATIO"' was reported to have a DBTYPE of 130 at compile time and 5 at run time]。
FROM OPENDATASOURCE(
'MSDAORA',
'Data Source=t43;User ID=t43;Password=pass'
)..t43.dl_ratioOLE DB 提供程序 'MSDAORA' 不包含表 '"t43"."dl_ratio"'。该表可能不存在,或当前用户没有使用该表的权限。
OLE DB 错误跟踪[Non-interface error: OLE DB provider does not contain the table: ProviderName='MSDAORA', TableName='"t43"."dl_ratio"']。
但是新的问题又出来了:
服务器: 消息 7356,级别 16,状态 1,行 1
OLE DB 提供程序 'MSDAORA' 为列提供的元数据不一致。执行时更改了元数据信息。
OLE DB 错误跟踪[Non-interface error: Column 'LIMITHOURS' (compile-time ordinal 23) of object '"T43"."DL_RATIO"' was reported to have a DBTYPE of 130 at compile time and 5 at run time]。
2000用DTS 20005以上用SSIS 不复杂。。