View with parameters

  • Is it possible to cretae a view with parameters? If so, how.

    Thanks.

  • No you cannot, only in SPs and sets of code. Views can be used in SPs with parameters but views can only be whole query statments.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

  • Thanks. My problem is as follow:

    I have a query in Access which I am moving to SQL server as part of upsizing. The query is paramerized and its resultset is queried by other queries. How best can I recreate the same situation in SQL Server.

    This is why I am thinking of creating the query as a view.

    Thanks for your help.

  • Hi, i am afraid that you don't have something like that is sql server. You have to create some stored procedures.

Viewing 4 posts - 1 through 3 (of 3 total)

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