Updated: July 10, 2020 (October 31, 2005)

  Sidebar

Why Build Database Code with .NET?

My Atlas / Sidebar

484 wordsTime to read: 5 min

For many years, database developers have used Microsoft’s Transact SQL (T-SQL) language to create stored procedures and other application code that runs within SQL Server. With Visual Studio (VS) 2005, Microsoft is offering them the ability to write this server-side code with the .NET Framework and languages such as C# and VB.NET, leaving developers to ask: when and why should I use .NET as opposed to T-SQL?

Using .NET to create stored procedures and other database code offers several benefits:

Similar APIs. For a developer already familiar with building database client applications, .NET offers a more consistent set of APIs than those offered by T-SQL.

Possibly better performance. For many applications, overall performance is determined by the amount of data being processed. But for some applications, particularly those that are compute-intensive, .NET may offer better performance. For example, a geographic information system not only performs database queries but must also perform intensive calculations on the data. Using .NET for such an application could result in better performance than T-SQL.

Atlas Members have full access

Get access to this and thousands of other unbiased analyses, roadmaps, decision kits, infographics, reference guides, and more, all included with membership. Comprehensive access to the most in-depth and unbiased expertise for Microsoft enterprise decision-making is waiting.

Membership Options

Already have an account? Login Now