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

Categories

0 votes
753 views
in Technique[技术] by (71.8m points)

sql server - What is SCHEMABINDING? And for what purpose we use it?

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

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...