Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8511233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:55:58+00:00 2026-06-11T03:55:58+00:00

I am doing transaction replication for indexed views. I have other replicating schemabound views

  • 0

I am doing transaction replication for indexed views. I have other replicating schemabound views that reference the indexed views using the NOEXPAND hint. Even though I call sp_addarticle for the NOEXPANDing views after calling sp_addarticle for the indexed views, I’m getting the error:

Hint 'noexpand' on object '...' is invalid.

because SQL Server is trying to create the NOEXPANDing view at the target server before creating the index on the indexed view.

Is there a way to force SQL Server to finish replicating the indexed view indexes before starting on the NOEXPANDing views?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:55:59+00:00Added an answer on June 11, 2026 at 3:55 am

    Have a look on the distributor database and you’ll find scripts for pre and post replication. These are straight forward sql scripts so you can modify these and put whatever you like in them.

    That means you could modify the pre-repl script to avoid the error and modify the post-repl script to add the noexpanding view after the index has been created.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little proof-of-concept distributed transaction application that is doing a simple insert
Let say I'm doing a basic transaction system where I have the following objects.
I have a transaction that contains multiple SQL Statements (INSERT, UPDATE and/or DELETES). When
I have Transaction objects that are combined in a Cart object. Some Transaction objects
I am using SQL Server 2000 and I have two databases that both replicate
I have set a GradientDrawable as background. While doing some 3d transaction (especially at
Considering we have some ejb's and their transaction settings are : ejb1 starts doing
I use begin transaction in my stored procedure. I have code that updates data:
I have some code which is doing this: String transactionId = incoming.getJMSCorrelationID(); when I
Doing an ajax get request works as expected using the following code: $.ajax({ type:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.