Hi
When calling either of the two Change Data Capture functions, sys.fn_cdc_increment_lsn or sys.fn_cdc_decrement_lsn in SSMS, I've found that they both write two entries to the application event log.
An example of the event description is:
AppDomain 347 (mssqlsystemresource.dbo[ddl].346) unloaded.
Has anyone noticed this and, if so, does anyone know of a way to suppress this? The reason I ask is that I call this function within a loop and each time it is called, it populates the event log, which seems unnecessary.
I've looked into possibly querying the fn_dblog function to return the LSN, as a means of avoiding the log writes, though am not sure how safe that is to do.
Thanks.