Search code examples
azureazure-synapsesql-data-warehouse

Is there any equivalent is there for 'sp_refreshview' in Azure Synapse Dedicated SQL Pool


Is there any equivalent is available for 'sp_refreshview' in Azure Synapse Dedicated SQL Pool?

When i tried , it shows below error. enter image description here

Since VIEWS WONT GET UPDATED AUTOMATICALLY, is there any other command or system stored procedure available in Azure Synapse Analytics's Dedicated SQL Pool other than 'ALTER VIEW' Approach?


Solution

  • Try this:

    EXEC sys.sp_refreshsqlmodule 'dbo.YourViewName';

    See the documentation here.