I am stuck with a very petty issue that I am unable to resolve.
CREATE FUNCTION dbo.fntblPsmHaendlerDailyCostsinfodump(@pDateString varchar(8), @HaendlerID int, @TableName varchar(100),@CountryID int)
RETURNS table
AS BEGIN
RETURN select top 10 * from tblcountry
END
GO
This is giving me an error -
'Incorrect syntax near begin'.
I am not able to identify why it is giving the error.