I have written following function in SQLServer 2005
Following is the function:
create function fnBillParticulars()
return table
as
return (select * from billParticulars where Id='2425')
go
Its giving me following errors:
1.Msg 156, Level 15, State 1, Procedure fnBillParticulars, Line 2
Incorrect syntax near the keyword 'return'.
2.Msg 178, Level 15, State 1, Procedure fnBillParticulars, Line 4
A RETURN statement with a return value cannot be used in this context.
what can be the mistake?
Please help me.