Tagged Questions
4
votes
1answer
182 views
MERGE with OUTPUT doesn't seem to be doing the right thing
I'm adding a foreign key to a table, and removing any rows that violate the FK, copying them into a ModifiedTable_invalid table. As part of the script, I've got the following MERGE command:
MERGE ...
4
votes
1answer
499 views
What are my locking options for a Merge statement?
I have a stored procedure that performs a MERGE statement.
It seems like it locks the whole table by default when performing the merge.
I'm calling this stored procedure inside of a transaction ...
1
vote
0answers
157 views
What overhead is there if I MERGE row by row?
I have a target table of about 2000 rows and I want to be able to MERGE (with HOLDLOCK) about 5-10 rows at a time into the target table. The target table doesn't get used heavily, with only 1-2 users ...
0
votes
1answer
77 views
Re-subscribing to a merge publication after edits made offline
Hypothetical Question - To help scenario planning.
Let's say I have a 2008 R2 Merge Publication with 5 active subscribers. The publication is deleted and all subscriptions are removed. A week or so ...