Parameterized views

  • A parameterized view is a filterable view? It is a view that shows rows that is modifiable on the fly, right?

  • SQL doesn't have parameterised views. Closest would be an inline table-valued function.

    If it did exist, it would be a view to which you can pass parameters:

    CREATE VIEW ParameterisedView

    AS

    SELECT * FROM SomeTable WHERE Somecolumn = @Parameter

    But that's invalid, views can't have parameters.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply