这里是我的存储过程的某些部分无法找到函数:存储过程不能找到一个功能
(dbo.fn_Get_Order_Contacts_Info_Full_Name(@order_detail_ID, 'Borrower')) As 'Borrower_Contact_Info_Full',
replace(dbo.fn_get_business_product_element_requirements(t_order_detail.order_detail_id,288)
的功能在一个标量函数存在如下:
ALTER FUNCTION [dbo].[fn_Get_Order_Contacts_Info_Full_Name]
(
ALTER FUNCTION [dbo].[fn_get_business_product_element_requirements]
(
是这就是为什么程序无法找到标量函数的原因。
我的错误:
can not find column "dbo" or the user defined function or aggregate " the 2 functions above", or the name is ambiguous.
您可能必须显示更多/整个查询中存在这些调用。 – 2012-01-09 15:43:04
命名的列是否与数据库中的写入方式完全相同?试着将名称从SQL Server端拖入查询中,而不是输入它们,看看是否有帮助。当我无法弄清楚什么是错误的时候,我遇到了问题,然后我拖放了名称,并且工作正常。像这样的奇怪的错误让我疯狂! – jlg 2012-01-09 15:43:37
听起来像你可能没有使用正确的数据库。尝试在开始时添加USING your_database_name。 – TheBoyan 2012-01-09 15:50:19