sql server - Adding in a primary key to an SQL view -
i have created view in sql server database join of 2 tables.
is there way can insert unique primary key rows of view ...or i'm not sure how can specify 1 of column names primary key...any ideas?
thanks
you have create materialized (indexed) view in order able add unique index. can't create pk constraint.
create view v_test schemabinding --optional select id table go create unique clustered index idx_id on v_test (id) go
Comments
Post a Comment