sqlrx logo
SQLRx® Tip of the Month
 

August 2011
SQL 2008     

SQL Server Administration  Get a list of Common Language Runtime (CLR's) registered to a database. This is helpful when migrating or troubleshooting. For more information on CLR's check out Books Online or http://msdn.microsoft.com/en-us/library/ms131089(SQL.100).aspx 

_________________________________________________________________________ 

 

 

SELECT o.name AS ObjectName, a.name AS Assembly,

     o.type_desc AS ObjectType

FROM   sys.assembly_modules am

JOIN   sys.objects o ON am.object_id = o.object_id

JOIN   sys.assemblies a ON a.assembly_id = am.assembly_id

WHERE a.is_user_defined = 1

UNION

SELECT at.name, a.name, 'Type'

FROM   sys.assembly_types at

JOIN   sys.assemblies a ON at.assembly_id = a.assembly_id

WHERE a.is_user_defined = 1

 
 
_______________________________________________________________________________
As always, don't forget to regularly monitor the 11 VitalSigns  used by SQLRx to debug performance bottlenecks.

You can access SQLRx training videos at www.msdev.com, a Microsoft training site!  Check the site periodically to view new training videos.
 
If you have a SQL question you'd like us to answer, and possibly use for the next SQLRx Tip of the Month or msdev video, email it to us!  If you missed any of our previous tips, you can view them here.

For assistance or more information on optimizing your SQL Server Environment, visit us at www.sqlrx.com or email Lori Brown at lorib@isi85.com.


Sincerely,

 

Lori Brown | SQLRx Senior Consultant | Integrated Services, Inc.
4144 N. Central Expwy, Suite 430  |  Dallas, TX  75204
Phone: 214.526.7680 x 113 | lorib@isi85.com 

 

 

Integrated Services, Inc.                                    
2008 winner logo small
Turning Data Into Profit

 

25 Years of Credibility & Trust

 

Join our email list          Check out our events          SQLRx Downloads