?
Solved

question about transactional replication

Posted on 2014-01-23
1
Medium Priority
?
162 Views
Last Modified: 2014-02-06
Hello,

Is it possible to update sp_msdel and sp_msup like :

Update :

Update the row and update the additionnal column dt_maj = getdate()

D:

Not delete the row, a logical delete :
       Update the column dt_delete = getdate() and the column delete=1

Thanks
0
Comment
Question by:bibi92
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 2000 total points
ID: 39815179
I wouldn't do this by updated the stored procedures. Rather, you could accomplish this by using a trigger on the destination tables - an AFTER trigger for the first statement (to update that column) and an INSTEAD OF trigger in the case of your second statement.

If you need help doing that, I can stub something out for you, but triggers are likely the best way to accomplish this.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question