If you're talking about the SQL Server database engine, Paul's said before on Twitter that it's mostly C++ with some assembler
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability