关于从SQL server数据库中调用函数

我在SQL server2012数据库中有个函数up_GetRpt_Cargo 下面是个拉取函数的例子,这段代码可以拉取一个货量报表,我想知道如何把它创建为数据集?exec [up_GetRpt_Cargo] @Group_Date_Type=1,@Where_Date=‘’,@Is_ByBLNUM=0,@PostType =‘’,@CnType=‘1’,@Where_Post=‘’,@Where_BS=‘CGO_ETD_POL>=’‘2024-4-3’’ and CGO_ETD_POL<=‘‘2024-4-4 23:59:59’’ and (BS_IS_SHUTOUT=‘‘N’’ or BS_IS_SHUTOUT=‘’‘’ or BS_IS_SHUTOUT is null ) and (7=7) ‘,@Order_by=’’