Can I have two gateways using the same SQL database for historic logging?

Not a problem at all (as long as they have distinct gateway names).

The historian already uniquely identifies every record by what system and tag provider it came from.
Check sqlth_drv, there will be at least two records (one null, one probably with an entry for default) for each gateway you connect to a given historian.

2 Likes