I tried to google it, but didn't found an answer...
Is it possible to check if view is created with SCHEMABINDING?
You've already accepted another answer, but the OBJECTPROPERTY() function can answer this directly:
OBJECTPROPERTY()
select objectproperty(object_id('viewname'), 'IsSchemaBound')
Note also that sys.sql_dependencies is deprecated.
sys.sql_dependencies
I'm not aware of a direct way, but you could run
select * from sys.sql_dependencies where class = 1 and object_id = object_id('<view name>');
If it returns values, the view is bound.
Copyright © 2021 Jogjafile Inc.
You've already accepted another answer, but the
OBJECTPROPERTY()
function can answer this directly:Note also that
sys.sql_dependencies
is deprecated.