How to read value of clr strict security value in c#( using smo)

janardhan g 1 Reputation point
2021-06-11T14:03:37.213+00:00

I am able to access "IsSqlClrEnabled"(EXEC sp_configure 'clr enabled', 1;)
using this.ServerInstance.Configuration.IsSqlClrEnabled.ConfigValue; statement in C#,

how do i get value of 'clr strict security' ( SELECT * FROM sys.configurations WHERE name LIKE 'clr strict security';) in C# SMO latest version (161.46367.54)

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,820 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,401 Reputation points
    2021-06-11T15:14:55.12+00:00

    Code sample located here will do this.

    104799-figure1.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.