Skip to content
Discussion options

You must be logged in to vote

Hello,

If you are using SQL Server, you can find the related SQL Stored procedure in your database. Usually, for each tables you may find a stored procedure called "Table_changes" or something

If you are using SQLite (or any other database, even SQL Server) you can use the interceptor "OnExecuteCommand" to intercept any query to your database.

Here is an example :

agent.RemoteOrchestrator.OnExecuteCommand(args =>
{
    Console.WriteLine(args.Command.CommandText);
});

and a full version of it:

var agent = new SyncAgent(clientProvider, serverProvider, options);

agent.RemoteOrchestrator.OnExecuteCommand(args =>
{
    Console.WriteLine($"SQL SERVER: {args.Command.CommandText}");
});
agent.Lo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pacos1
Comment options

You must be logged in to vote
1 reply
@Mimetis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants