November 8, 2012 at 7:43 am
Is it possible to identify all the uses of CLR on a server, if so how ?
November 8, 2012 at 9:03 am
This is pretty vague but if you want to know all of the CLR objects on your server you can use this query:EXEC sp_MSforeachdb 'USE [?]; SELECT DB_NAME(), * FROM sys.assemblies WHERE is_user_defined = 1 ORDER BY name;'
November 8, 2012 at 9:30 am
This isn't returning a CLR data type that I know is in the database. Is this query accurate, I want to find all uses of CLR in the database.
November 8, 2012 at 10:14 am
these two queries seem to return all the objects and all the assemblies:
EXEC sp_MSforeachdb 'SELECT ''?'' As DBName,
* FROM [?].sys.objects
WHERE type_desc
LIKE ''CLR%'' OR type_desc = ''AGGREGATE_FUNCTION''
ORDER BY name;'
EXEC sp_MSforeachdb 'SELECT ''?'' As DBName,
* FROM [?].sys.assemblies
WHERE is_user_defined = 1
ORDER BY name;'
is that what you where after?
Lowell
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy