Can we pass a parameter to a view in Microsoft SQL Server?
I tried to create view in the following way, but it doesn\'t work:
create view
create o
No, a view is queried no differently to SELECTing from a table.
To do what you want, use a table-valued user-defined function with one or more parameters