我在 SSIS '08 中有一个带有 OLEDB 数据源的数据流任务。查询是这样的:
SELECT DISTINCT
dbo.udf_CreateCCISSentenceDuration(probation_year, probation_month, probation_day)
FROM sentence
我减少了查询只是为了使它更具可读性。无论如何,我都会收到以下错误:
Error at 11012 DATA [Data Records [27]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred.
Error code: 0x80040E14
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14
Description: "Statement(s) could not be prepared.".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E14
Description: "Cannot find either column "dbo" or the user-defined function or aggreate
"dbo.udf_CreateCCISSentenceDuration", or the name is ambiguous.".
此查询在 SSMS 中运行良好。如果我删除“dbo”。所有者部分,我得到“'udf_CreateCCISSentenceDuration' 不是可识别的内置函数名称。”。我运行它的数据库是一个 SQL 2005 实例。我已经进行了搜索,但找不到与此错误和 UDF 相关的任何内容。任何帮助是极大的赞赏!