Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7987579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:11:24+00:00 2026-06-04T12:11:24+00:00

Is it a good-practice to enable SQL Server CLR integration in a server-cluster scenario?

  • 0

Is it a good-practice to enable SQL Server CLR integration in a server-cluster scenario? The policy at my organization disallows deploying CLR assemblies on their production servers; I was informed by the DBA’s this is because the CLR UDFs runs in-process and the databases are on a cluster.

I’m just curious if the policy is to simplify the DB admin (and perhaps ensure all code is open for review by DBA’s), or is there a technical reason to prohibit CLR integration in a server-cluster scenario? Thread safety?

Related questions:

  • Threading in CLR in SQL Server 2008
  • IN SQL Server is CLR Threadsafe
  • Why doesn’t SQL Server come preinstalled with .net Framework for CLR Integration?

(By the way, my primary use-case is for string-manipulation UDFs, as described in this answer)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:11:25+00:00Added an answer on June 4, 2026 at 12:11 pm

    afaik there is no correlation between a clustered sql server instance and the CLR integration. SQL Server acts as a CLR host. When CLR functionality is used (e.g. calling a CLR UDF) the assembly is loaded from the database.
    A passive cluster node does not have SQL Server service started so why should it bother? An active/active cluster will have two SQL Server instances running which are independent from each other. One is active on node one the other one on node two.

    Well, with unsafe assembly code you can surely cause issues and bring down a sql server instance (and make it failover back and forth in a clustered environment). DBAs not necessarily have a clue of .net programming and probably want to avoid dealing with such problems. Otherwise I would see no solid reasoning behind this policy that would stand technical argumentation. Just be careful about what code you want to run on SQL Server. There is definitely a reason behind the security gates for CLR code (safe, external_access and unsafe).

    Cheerio

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it a good practice to initialize columns that we can know their values
Is it a good practice to use Assert for function parameters to enforce their
I have read that as a good security practice it is good to enable
Is it good practice to set all text fields to nvarchar(MAX)? if im not
Is it good practice to have one shared SqlConnection object in a .NET application
What is a good practice on work with (nHibernate) ITransactions between several repositories? First
Is there any good practice for this? I wish I could solve the problem
Is it a good practice to have timestamps for the last row update in
Is it a good practice to set stream references to null after closing them?
Is that a good practice to store the objects of the domain model in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.