How we did it:
Derek Comingore, Douglas Hinson
SQL Server 2005 offers the capability to write code in a .NET language that can be compiled and run inside SQL Server. CLR Integration, or SQL CLR, lets you create stored procedures, user-defined types, triggers, table valued functions, and aggregates using a .NET managed language. You can read and write to resources outside of SQL Server and enjoy a tighter integration with XML, web services, and simple file and logging capabilities. Here's the reference you'll want on your desk as you develop SQL CLR solutions. It helps you decide whether to use SQL CLR, how to lock down security, and learn from real examples. If you want to develop stored procedures or other objects in .NET for SQL Server 2005, this book offers exactly what you need. What you will learn from this book The concepts and architecture of SQL CLR Uses of .NET namespaces in SQL Server programming tasks How to develop and benchmark routines in T-SQL and .NET to determine when CLR-based solutions are advantageous How to replace extended stored procedures using SQL CLR stored procedures How to use SQL CLR objects in external applications How to restrict and secure SQL CLR object capabilities Processes and procedures for deploying SQL CLR objects Who this book is for This book is for developers and architects who are familiar with .NET concepts as well as DBAs who, although developers in their own right, may be slightly less up to date on .NET. A solid grounding in T-SQL is necessary. Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.