The [MS-TDS].pdf is also an excellent piece of documentation, gave me all the answers to write a fully compatible TDS driver.