Sqlserver CLR 整合
本文是学习Sqlserver CLR 整合过程中的笔记,会持续更新。
欢迎批评指正!
1. 启用CLR整合
1 sp_configure 'show advanced options', 1; 2 GO 3 RECONFIGURE; 4 GO 5 sp_configure 'clr enabled', 1; 6 GO 7 RECONFIGURE; 8 GO
2. 查询数据库支持的CLR版本:
1 select * from sys.dm_clr_properties 2 select * from sys.dm_clr_appdomains 3 select * from sys.dm_clr_loaded_assemblies 4 select * from sys.dm_clr_tasks
3. 如何:创建和运行 CLR SQL Server 存储过程
请参考: http://msdn.microsoft.com/zh-cn/library/5czye81z%28v=vs.90%29.aspx
参考资料:
1. Enabling CLR Integration
http://msdn.microsoft.com/en-us/library/ms131048.aspx
2. SQL Server 2008 - SQLCLR .NET Framework Version
http://software.intel.com/en-us/blogs/2009/10/16/sql-server-2008-sqlclr-net-framework-version
3. 如何:创建和运行 CLR SQL Server 存储过程 (How to: Create and Run a CLR SQL Server Stored Procedure)
http://msdn.microsoft.com/zh-cn/library/5czye81z%28v=vs.90%29.aspx (中文)
http://msdn.microsoft.com/en-us/library/5czye81z%28v=vs.90%29.aspx (英文)
3. sql profiler for Microsoft Sql Server Express Edition
http://www.c-sharpcorner.com/blogs/4701/sql-profiler-for-microsoft-sql-server-express-edition.aspx