They bought the source code for SQL Server from Sybase; the foundations of the product weren't created at Microsoft. The wire protocol is still heavily compliant with sybase.