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

  • SEARCH
  • Home
  • 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 6156637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:38:40+00:00 2026-05-23T20:38:40+00:00

I am constantly asked to change the filters on my companies SQL Server Transactional

  • 0

I am constantly asked to change the filters on my companies SQL Server Transactional Publications which contain several hundred tables and roughly 400GBs of row data.

Each time I am required to alter a filter, I have to completely re-snapshot the entire publication and deliver it to the subscriber, a process which takes nearly an entire day to complete.

My question: It is possible to alter SQL Server replication filter without delivering an entire publication snapshot?

  • 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-05-23T20:38:41+00:00Added an answer on May 23, 2026 at 8:38 pm

    You have to drop the table (article) from the publication and re-add it with a new filter. The trick is that if you remove the subscription to the article before removing the article from the publication, you will not be required to deliver an entire snapshot for all article – but only for the single table (and it’s new filter).

    --Drop existing subscription:
    EXEC sp_dropsubscription
                    @publication='<pub_name',
                    @article='<article_name',
                    @subscriber='<sub_name',
                    @destination_db='<db_name>',
                    @ignore_distributor=0
    
    --Drop the article from the publication:
    EXEC sp_droparticle
                    @publication='<pub_name',
                    @article='<article_name',
                    @ignore_distributor=0,
                    @force_invalidate_snapshot=1
    

    Now, the easiest way to add the article back to the subscription is through the replication publication GUI,
    you can add the article, add the filter then click ok. When you run the snapshot job, it will only generate a snapshot for the single table. This is known as a mini-snapshot.

    If you want to manually re-add the article and its filter to the publication then you’ll need to do the following to get it back into the subscription.

    --Re-add the subscription to the article.
    EXEC sp_addsubscription
                    @publication = @publication='<pub_name',
                    @article = @article='<article_name',
                    @subscriber =  @subscriber='<sub_name',
                    @destination_db='<db_name>',
                    @sync_type =  'automatic ',
                    @subscription_type = 'push',
                    @update_mode =  'read only'
    

    –You will now need to manually add any new columns to the destination table at the subscriber, re-run the snapshot agent which will run a mini-snapshot… then kick off the distributor.

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

Sidebar

Related Questions

I constantly have some situations in which I have to retry some operations if
I have been asked to develop a system that collects data from a Sql
I realize that this question may have been asked several times in the past,
I recently asked a question about writing to multiple tables: PHP/MySQL insert into multiple
We have built a .net (asp) web based solution (SQL Server database) for a
I'd really appreciate some help with an SQL query across tables. I realise this
I constantly have to update main images on my site, the user will go
I constantly find myself writing similar code like the example below: if (object[Object Name]
Should I constantly have a session open in my web site with user accounts,
I'm constantly using the Implement interface shortcut in Visual Studio 2008. My problem is

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.