First cut of Microsoft SQL Server code for establishing chain links
Still a couple of indexes too long for MySQL.  These are the last two, though, so I'll let the run go rampant for tonight.