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 961193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:18:15+00:00 2026-05-16T01:18:15+00:00

The sp_addarticle stored procedure, used to create publication articles in SQL Server speak, has

  • 0

The sp_addarticle stored procedure, used to create publication articles in SQL Server speak, has a parameter @pre_creation_cmd through which dropping the table or truncating data at the target server can be specified for a snapshot. What circumstances are appropriate for each?

  • 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-16T01:18:16+00:00Added an answer on May 16, 2026 at 1:18 am

    @pre_creation_cmd accepts one of four values:

    • NONE
    • DELETE
    • DROP
    • TRUNCATE

    DELETE TABLE

    Assume that your Published article
    data is filtered and that the
    corresponding table in the
    Subscription receives data from other
    sources, perhaps another Publication
    for example. Using the DELETE
    operation for this parameter would
    delete “only” the data the meets the
    criteria of the filter definition,
    leaving the remaining data at the
    Subscriber intact.

    TRUNCATE TABLE

    Removes all rows from a table without
    logging the individual row deletions.
    TRUNCATE TABLE is similar to the
    DELETE statement with no WHERE clause;
    however, TRUNCATE TABLE is faster and
    uses fewer system and transaction log
    resources.

    DROP TABLE

    Removes one or more table definitions
    and all data, indexes, triggers,
    constraints, and permission
    specifications for those tables.

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

Sidebar

Related Questions

The sp_password sproc in sql server 2000 only required membership in the db_accessadmin db_securityadmin
this is my sp: CREATE DEFINER=`root`@`localhost` PROCEDURE `getproductname`(in productid int , out productname varchar(200))
this sp was written for SQL Server and then 'converted ' for use in
I have a sp which builds a dynamic sql query based on my input
CREATE PROCEDURE sp_ME @ID int, @ThisDate datetime = null AS SET NOCOUNT ON IF
I have an SP that has an nvarchar(max) parameter @p1 . This is a
I have a SP that Prints the results into SQL Server , but I
I want to create dymamic SQL code to automatically create a table-replication. I'm stuck
sp_reset_connection seems to be called by SQL Server connection pooling, to ensure that connections
Your basic SP with a default parameter: ALTER PROCEDURE [usp_debug_fails] @DATA_DT_ID AS int =

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.