Hi GazC,
Views are created to show only the required information to the users and you can use view just like tables (i.e. select/ insert/ update/ delete).
No, you cannot pass a variable to a view. Views do not execute code. Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time. NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
Updatable views can modify more than one table involved in the view. The DELETE, INSERT, and UPDATE statements can reference a view as long as SQL Server can translate the user's update request unambiguously to updates in the base tables referenced in the view's definition. Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it and comment if you have time. NOTE: Reference to the FAQ is part of my signature and is not directed at any individual.
Not sure what you're trying to do, but perhaps you could create a stored procedure that accepts an input parameter and use this parameter inside the procedure w/ dynamic sql statement (sp_executesql) to return the appropriate result set.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.