Skip to main content

How do I write a database query for a DB Collector that uses state-tracking for MS SQL?

Be the first to reply!

Looking at https://docs.cribl.io/stream/collectors-database#tracking-column, the example is:

SELECT * FROM my_table WHERE ${state && state.id ? id > ${state.id.value} : '1 = 1'} ORDER BY id


Reply