Solved

question about transactional replication

Posted on 2014-01-23
1
155 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
1 Comment
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

809 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