A technology machine uses SQL Server Express to collect the data like temperature... The database is updated say every several second (i.e. low trafic). The machine and its SQL Server must work independently on anything. Sometimes the technology computer (i.e. SQL Server) is switched-off with the machine.
The central SQL Server Standard Edition should collect the data form many machines like the above.
What scenario would you recommend?
- The machine sends each new row of a table when it is created (i.e. each several seconds one row).
- The machine activates the process of sending the data say each hour, and sends all the rows with the newly collected data.
- Any other approach?
If I understand the Service Broker idea well, there will be a single name of the request message type, a single name of the reply message type, a single name of contract. The related databases on the SQL machines will each have one message queue, and the related service.
I am very new to Service Broker. The tutorial examples show how to send messages as XML fragments. Is it the real world way to send the rows of the table? How can I reliably convert the result of a SELECT command to the XML fragment and back?
Thanks, Petr
Attention: The related question Service Broker — how to extract the rows from the XML message? was created.