调用远程函数后,标量值函数失败。有没有办法调用远程服务器功能?
这是代码
ALTER FUNCTION [dbo].[fnGetCatalogNumber]
(
-- Add the parameters for the function here
@ProductID int
)
RETURNS varchar(20)
AS
BEGIN
-- Declare the return variable here
DECLARE @CatalogNumber varchar(20), @catalog_data varchar(20)
-- Add the T-SQL statements to compute the return value here
--Exec Dev01.Product_Core.dbo.usp_get_CatalogNumber @ProductId = @ProductID
,@CatalogNumber = @catalog_data output
-- Return the result of the function
RETURN @CatalogNumber
END