我正在寻找一种调用REMOTE FUNCTION
inSELECT
子句的方法VIEW
。基本上我正在尝试做这样的事情:
CREATE VIEW [dbo].[View_Year_Forcast] AS
(SELECT BshForecast.ProjectId,
BshForecast.JobTypeId,
Job_Type.NAME,
ProjectName ,
ProjectManagerID,
ProjectManagerName ,
***EXEC @START_DATE =[192.168.0.10].[LudanProjectManager].[dbo].[func_Project_Get_Start_Date] @PROJECT_ID as [Start_Date],***
StartBudget ,
AdditionalBudget ,
TotalBudget ,
UsedBudget ,
FROM BshForecast INNER JOIN Job_Type ON BshForecast.JobTypeId = ID
WHERE (dbo.BshForecast.Year = DATEPART(YYYY,GETDATE()))
AND (dbo.BshForecast.IsDeleted = 0)
AND (dbo.BshForecast.BranchId = 200)
AND (dbo.BshForecast.Approved = 1) );
我想要得到的是第七列将保存每个项目的开始日期,这些项目将从远程服务器中的函数进行评估。