Indexing in Azure SQL vs. regular SQL Server

King Java 790 Reputation points
2025-05-15T23:01:28.2633333+00:00

I am trying to come up with a plan to add indexes on Azure SQL database tables.

Is there any difference in terms of adding indexes for Azure SQL database tables vs. regular SQL Server database tables?

What are some of most commonly way of adding indexes for Azure SQL database tables?

Thanks.

Azure SQL Database
{count} votes

Accepted answer
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2025-05-19T23:06:29.6833333+00:00

    @King Java Thank you for reaching out.

    The indexing architecture between Azure SQL Database and SQL Server is pretty much the same as Erland Sommarskog mentioned above. In addition to that,

    • Automatic plan correction identifies problematic query execution plans, such as a parameter sensitivity or parameter sniffing issues, and fixes query execution plan-related performance problems by forcing the last known good plan before the regression occurred. Applies to: SQL Server (Starting with SQL Server 2017 (14.x)), Azure SQL Database, and SQL database in Microsoft Fabric, and Azure SQL Managed Instance
    • Automatic index management identifies indexes that should be added in your database, and indexes that should be removed. Applies to: Azure SQL Database and SQL database in Microsoft Fabric.

    Azure SQL provides automatic tuning (Automatic plan correction) if the below options are turn on from automatic tuning tab. SQL on premises does support automatic tuning**,** which was introduced in SQL Server 2017, but with some limitations compared to Azure SQL Database. Automatic tuning it is a built-in intelligence that you can leverage to pretty much optimize and tune your SQL DB. Read more Automatic tuning.

    I you go to the Query performance insight; you can see queries that contribute to CPU.

    User's image

    Is there any difference in terms of adding indexes for Azure SQL database tables vs. regular SQL Server database tables?

    Please do check this guide for more details SQL Server and Azure SQL index architecture and design guide. It applies to Azure SQL Database and SQL Server.

    See an example on how to create an Index. CREATE INDEX (Transact-SQL)

    User's image Please do let us know if you have any additional questions.

    Optimizing Your SQL Database Workloads w/ Automatic Tuning on Azure SQL | Data Exposed: MVP Edition

    Azure SQL DB Performance monitoring and troubleshooting

    I hope this clarifies your ask.

    Regards,

    Oury

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.