In a regular SQL Server Database I a have function returning a table type as so:
CREATE FUNCTION [dbo].[GetSomeStuff]
(
@UserID INT
)
RETURNS TABLE
AS
RETURN
(...
The function gets called from various stored procedures. I'd like to migrate the stored procedures along with this function to Azure SQL Data Warehouse, but TABLE types are not supported.
Can anyone tell me what I can do instead of a function returning a table type here?