Execute function inside view SQL server create view dbo.ViewName as select dbo.Function(parameter) from dbo.TableName