As a research and development company that is continually modifying its data collection and analysis techniques, Simbex faced several database synchronization challenges as the software continued to change and evolve after its deployment into customer environments. In this article, I discuss two of those challenges:
- Central control over schema changes that must be pushed out to remote databases.
- Central diagnosis of referential integrity violations that may occur on those remote databases.
Several features of the SQL Anywhere database and MobiLink synchronization software were used to solve these challenges, including:
- " sp_hook" stored procedures for customizing the synchronization process.
- The xp_read_file function for loading files into blob columns.
- The EXCEPTION clause to perform try-catch error handling of SQL statements.
- The STRING function for the dynamic construction of SQL statements to be run via EXECUTE IMMEDIATE.
- The LIST aggregate function for constructing strings out of result sets.
The Simbex HIT System
On April 28, 2002, at a NASCAR race in Fontana California, Dale Earnhardt Jr. hit a concrete wall at 130 miles per hour. If he had been wearing a Simbex-equipped helmet, Earnhardt might not have been able to hide the severity of the head injury he received that day. Instead, Earnhardt suffered in secrecy and he did not reveal the full extent of his injury until several months later.
Simbex is a New Hampshire-based research and development company specializing in biomechanical feedback systems. Their premier product is the Head Impact Telemetry System, a real-time hardware and software system designed to measure and record blows to the head. Initially developed for use in college and high-school football, the HIT System lets sideline staff monitor the impact history for all players simultaneously, as well as providing pager alerts whenever a player receives a serious impact or series of impacts.
Impacts are measured by accelerometers in each helmet, visible as the small round knobs in Figure 1.