Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

What is SCHEMABINDING? And for what purpose we use it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
757 views
Welcome To Ask or Share your Answers For Others

1 Answer

Using WITH SCHEMABINDING indicates that the underlying table the view is referencing cannot have its schema changed. They are 'bound' together in essence.

The reason this is important is because SQL Server does not need to check periodically to see whether or not the schema has changed. This speeds up the performance of views, and is required for Indexed Views.

ask.sqlservercentral.com has more detail.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...