是否可以在SQL Server 2005中的SELECT
语句中调用存储过程?
这是我的查询
Select
rd.Receipt_Details_ID, rd.Narration,
dbo.FEE_SELECT_STUDENT_AMOUNTDETAILS(sg.Acadamic_ID, sg.Grade_ID,
rd.Feepay_ID, sg.Student_ID, p.Type,
sg.Student_Grade_ID),
rd.Amount, p.Feepay_Mode, p.Type, p.Feepay_ID
from
FEE_RECEIPT_DETAIL rd
inner join
FEE_RECEIPT r on r.Receipt_ID = rd.Receipt_ID
inner join
FEE_STUDENT_GRADE sg on sg.Student_ID = r.Student_ID and sg.Acadamic_ID = r.Acadamic_ID
inner join
FEE_PAYMODE p on p.Feepay_ID = rd.Feepay_ID and rd.Receipt_ID = 2
当我执行此查询时,我收到错误
找不到列“dbo”或用户定义的函数或聚合 “dbo.FEE_SELECT_STUDENT_AMOUNTDETAILS”,或者名称不明确。
FEE_SELECT_STUDENT_AMOUNTDETAILS
是此处的存储过程