July 2012
Intermediate to advanced
816 pages
27h 38m
English
Our previous “quick and dirty” sample looked at CLR stored procedure development, but we need to cover that topic more thoroughly now. We’ve already covered the mechanics of writing and deploying a stored procedure, but let’s back up a bit to try and understand how CLR stored procedures work from a conceptual standpoint.
SQL CLR stored procedure code runs in an instance of the .NET CLR that is hosted by SQL Server itself; it is not called as an external process, as Component Object Model (COM)–based extended stored procedures (XPs) would be. Because SQL CLR code runs in the context of the server, it treats objects in the database as native, local objects, more or less. As such, it must treat the ...
Read now
Unlock full access