Hi ,
You can pass parameter easily in Function which returns table data this is good approach, but to pass parameter to view is slightly different and using this method is also not advisable,
just sharing for your knowledge
You can use this method to pass your parameter to your view an then to your function..
set context_info 2
select convert(int, convert(binary(4), context_info)) from master.dbo.sysprocesses
where
spid = @@spid)
http://stackoverflow.com/questions/4498364/create-parameterized-view-in-sql-server-2008
Regards
Mubin