
 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 18/10/2007 05:14:15 Date: Thu, 18 Oct 2007 12:14:15 -0700
Doh! It one to many columns for the view.
"Bev Kaufman" <BevKaufman@discussions.microsoft.com> wrote in message news:E4F3733F-720F-47C6-8C19-C99DAA45FA8A@microsoft.com... > For years I would have said, no it can't. But in the course of studying > for > my cert exam, I checked out the following syntax: > CREATE VIEW [ schema_name . ] view_name [ (column [ ,...n ] ) ] > [ WITH <view_attribute> [ ,...n ] ] > AS select_statement [ ; ] > [ WITH CHECK OPTION ] > > What is (column [ ,...n ] ) if not parameters, and how are they to be > used? > I've never seen an example, and there wasn't one in the BOL article. I > tried > creating a vew with a parameter, but got syntax errors. >
|

 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 21/10/2007 12:13:55 Date: Sun, 21 Oct 2007 10:13:55 +0200
A parameterized view is called a "user defined inline table function". Insert / update / delete over UDFs requires coding relevant triggers.
"Bev Kaufman" <BevKaufman@discussions.microsoft.com> wrote in message news:E4F3733F-720F-47C6-8C19-C99DAA45FA8A@microsoft.com... > For years I would have said, no it can't. But in the course of studying > for > my cert exam, I checked out the following syntax: > CREATE VIEW [ schema_name . ] view_name [ (column [ ,...n ] ) ] > [ WITH <view_attribute> [ ,...n ] ] > AS select_statement [ ; ] > [ WITH CHECK OPTION ] > > What is (column [ ,...n ] ) if not parameters, and how are they to be > used? > I've never seen an example, and there wasn't one in the BOL article. I > tried > creating a vew with a parameter, but got syntax errors. >
|