I can bluff my way around MS SQL server, but got a question for any experts/architects about replication. Looking at Transactional Replication.
Got multiple SQL Servers that can communicate via slow WAN links which feasibly may not always work. Each SQL Server deals with SQL queries and updates from multiple, local clients. When a client creates a new record, it indexes and uses the seed, that set to autoincrement.
Need to have a single database that is replicated (entirely) around those SQL Servers.
OK, so I will set up a distributor, and each one as a publisher and subscriber, no issues with that.
My question(s): Conflicts.
What happens if 2 records are created at exactly the same time (or at a time when the WAN link isn't working) at different sites? Will they get same seed?
What happens if one client reads a value from a field, decrements it, and write is back, and another client at another site does similar before its replicated? Does it only decrement once? Twice?
Anyone KNOW the answers? Is transactional replication the best replication to use?