SQL Server source code

  • Does anyone know what language SQL Server is written in? I was recently asked by a relative who works for Oracle and hated having to say I didn't know.

  • does he also know what composite material the engine of his care is made of ? :hehe:

    Do I know what exotic language is used for the SQL-engine ? No

    Do I care ? Not for the moment

    When might I care ? When I can choose and it would make a difference.

    Why don't I care ? Because for the moment it serves me well enough.

    and yes ... I still like assembler ... it learned me to add up 😉

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • This topic moved to a new forum. Please check the forum before clicking Add Thread.

    Most of SQL Server is written in C++ and C#, or at least that's what a lot of the developers I've interviewed work in. There may be parts in Assembler as well.

    Most server level software these days is written in those two languages.

  • I'd heard C++ too. I don't recall the source though.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • The only time I saw the code (small part of it) it seemed to me it was in C and Assembler, but that was for SQL 6.5. 😉

  • Anders Pedersen (10/16/2007)


    The only time I saw the code (small part of it) it seemed to me it was in C and Assembler, but that was for SQL 6.5. 😉

    6.5 may have been C because most ANSI SQL experts that own their own relational database engine are C programmers but SQL Server from 7.0 is mostly VC++. I am assuming some parts of 2005 and 2008 will be C#. Oracle is all C++ and Java because there is an Oracle C++ compiler in the root directory of all the Oracle I have used for development.

    Kind regards,
    Gift Peddie

  • Thanks everyone.

  • Gift Peddie has it right. C, C++, C# and a tiny amount of assembly. The vast majority is C++.

    Paul Randal
    CEO, SQLskills.com: Check out SQLskills online training!
    Blog:www.SQLskills.com/blogs/paul Twitter: @PaulRandal
    SQL MVP, Microsoft RD, Contributing Editor of TechNet Magazine
    Author of DBCC CHECKDB/repair (and other Storage Engine) code of SQL Server 2005

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply