Indexing on Subscriber

Utkarsh upadhyay 20 Reputation points
2024-03-14T07:09:55.77+00:00

I want to create index directly on subscriber in azure sql replication. Is it possible to do it without affecting the Publisher?

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,492 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ShaktiSingh-MSFT 16,271 Reputation points
    2024-03-14T08:08:48.4433333+00:00

    Hi Utkarsh upadhyay •,

    Welcome to Microsoft Q&A forum.

    As I understand, you want to create Index on Subscriber in Replication.

    Indexes on SQL Server can be added at the Publisher or Subscribers with no special considerations for replication (be aware that indexes can affect performance). CREATE INDEX and ALTER INDEX are not replicated, so if you add or change an index at, for example, the Publisher, you must make the same addition or change at the Subscriber if you want it reflected there.

    Could you please let us know what steps you are performing, is it for Azure SQL DB, SQL Server, Azure SQL Managed Instance?

    Thanks

    0 comments No comments

  2. ShaktiSingh-MSFT 16,271 Reputation points
    2024-03-19T04:56:14.67+00:00

    Hi Utkarsh upadhyay •,

    Please refer to similar question here which should help:https://learn.microsoft.com/en-us/answers/questions/1030326/replication-of-non-clustered-index-from-publisher

    Let us know if your ask is the same.

    If not, could you please explain more.

    Thanks

    0 comments No comments

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.