One of the extremely new features of SQL Server 2005 is the CLR integration into its core engine: now you can write stored procedures with any .NET language and use them directly into your SQL Server engine.
Writing a SQL Server stored procedure with Visual Studio 2005 is quite simple. The steps are summarized as follow:
1) Open Visual Studio 2005, select New Project, select Database an the right hand pane of the new project dialog choose SQL Server Project.

2) Now you've to choose the database where you want to work (a SQL Server 2005 database) and after this choice you're project will be created.
3) Right click the project in the Solution Explorer, choose Add and then Stored Procedure from the context menu.


4) Now you're ready to begin writing your CLR Stored Procedure.

The newly created stored procedure will be deployed as a .NET dll and to deploy it you can right click your project in Visual Studio Solution Explorer and choose Deploy.
Ok... but the core of this post is another...
what are the performances of T-SQL against SQL CLR integration?
This is a question that I want to launch for all who has started to play with these new features. Before the SQL Server 2005 launch I've always thinked that SQL CLR integration was a lot slowest that T-SQL procedures, but after the tests that I've done on my environments I can't confirm this. Performance of SQL CLR integration are a big surprise, totally comparable to the T-SQL language!
This has a terrible impact on production environments: you can write complex SQL routines and user defined functions directly with your favourite .NET language, deploy it into the SQL CLR engine and start work without loss of performances! (and writing a complex SQL function with a .NET language is always more simple than writing it with T-SQL I think).
Obviously, SQL CLR usage must not be abused and I think that using T-SQL for the standard CRUD operations is always the best choice (T-SQL is fast!), but for complex operations and calculations, don't worry about SQL CLR perfomances: your new SQL functions can be fast and written without the complexity of the T-SQL language. The myth that SQL CLR procedures are slow is a fake!! 