How to set Azure SQL to rebuild indexes automatically?

前端 未结 5 2002
一个人的身影
一个人的身影 2020-12-28 17:55

In on premise SQL databases, it is normal to have a maintenance plan for rebuilding the indexes once in a while, when it is not being used that much.

How can I set i

5条回答
  •  离开以前
    2020-12-28 18:47

    Azure Automation is good and pricing is also negligible..

    Some other options you have are

    1.Create a execute sql task and schedule it through sql agent .The execute sql task should contain the index rebuild code along with stats rebuild

    2.You also can create a linked server to SQLAZURE and create a sql agent job.To create a linked server to azure, you can see this SO link:I need to add a linked server to a MS Azure SQL Server

提交回复
热议问题