SELECT DISTINCT 'EXEC sp_refreshview ''' + name + '''' FROM sys.objects AS so INNER JOIN sys.sql_expression_dependencies AS sed ON so.object_id = sed.referencing_id WHERE so.type = 'V';
Reference: https://msdn.microsoft.com/en-us/library/ms187821.aspx
Không có nhận xét nào :
Đăng nhận xét