Discussion:
What User is running the Merge Replication agent?
(too old to reply)
Guy Thornton
2007-05-30 12:14:00 UTC
Permalink
I have an application setup with a server acting as Publisher/Distributor and
I have about 60 clients setup as subscribers with merge replication. My
application uses the SQL Merge COM Objects to execute the Merge Replication.
In the application, I have each user login to the publisher with their SQL
Server DB logins/passwords and are using Anonymous Subscriptions. The table
structures of this application also includes identity columns, so in order to
properly execute Automatic Identity Range management, I included all of my
users in the sysadmin role.

My question is, when the user executes merge replication, what user id is
actually performing the inserts, updates and deletes at the server?

My fear is that because all the users are in the sysadmin role, all of their
database transactions are being executed on the server as dbo. We have audit
triggers on all of our db tables so that whenever any user makes a data
change, an audit record is created automatically. We are starting to see our
audit records having dbo as the operator performing these functions.

Can anyone shed some light on how the merge agent executes? And also, if my
assumptions are correct, how can I force the logged in user to be recognized
as the one performing the transactions?

Sorry for the long post....but it is a complicated question.
sachin chopade
2011-01-21 06:34:03 UTC
Permalink
Hello,

did you found any solution??

i am also having same problem.

i need checking the User Identity running the Merge Agent.
and specify Deny Delete permission.


please tell if you found the solution.

Thanks in adv.

Sachinc
Post by Guy Thornton
I have an application setup with a server acting as Publisher/Distributor and
I have about 60 clients setup as subscribers with merge replication. My
application uses the SQL Merge COM Objects to execute the Merge Replication.
In the application, I have each user login to the publisher with their SQL
Server DB logins/passwords and are using Anonymous Subscriptions. The table
structures of this application also includes identity columns, so in order to
properly execute Automatic Identity Range management, I included all of my
users in the sysadmin role.
My question is, when the user executes merge replication, what user id is
actually performing the inserts, updates and deletes at the server?
My fear is that because all the users are in the sysadmin role, all of their
database transactions are being executed on the server as dbo. We have audit
triggers on all of our db tables so that whenever any user makes a data
change, an audit record is created automatically. We are starting to see our
audit records having dbo as the operator performing these functions.
Can anyone shed some light on how the merge agent executes? And also, if my
assumptions are correct, how can I force the logged in user to be recognized
as the one performing the transactions?
Sorry for the long post....but it is a complicated question.
Submitted via EggHeadCafe
ASP.NET In-Memory Image Control with Built-In Resizing of Posted File
http://www.eggheadcafe.com/tutorials/aspnet/e1a14e2c-e746-4bed-a552-24c632bd2709/aspnet-inmemory-image-control-with-builtin-resizing-of-posted-file.aspx
Loading...