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 1104607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:30:27+00:00 2026-05-17T01:30:27+00:00

What are the limitations, unexpected pitfalls and performance traits of moving from in process

  • 0

What are the limitations, unexpected pitfalls and performance traits of moving from in process C# code to SQL CLR Functions?

We currently have several data heavy processes that run very fast using in process C# Asp.net MVC project without using a db at all. Performance is very important. The application uses a static in memory cache and performs complex operations to arrive at a final result. Cache updating is a bit of a pain and we are considering moving some of these processes to SQL Server queries that would just output the final result so that less data caching is needed at the c# app level. The processes are complex and we know that moving to the database would require extensive use of SQL Server CLR functions.

We see a lot of advantages in leveraging the database, but the required use of CLR functions gives pause for a few reasons:

No Azure: SQL CLR functions are not supported by Azure,

High Testing Cost: the SQL CLR functions could be slower and testing will take significant work

Small User Base: An hour of googling reveals that use of CLR functions is somewhat uncommon which makes community support (and possible MS support) a concern.

I would love to hear from someone who has moved a C# app from in process to CLR functions.

In your answers please assume that custom SQL CLR functions are required.

  • 1 1 Answer
  • 1 View
  • 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-05-17T01:30:28+00:00Added an answer on May 17, 2026 at 1:30 am

    Your

    • Compile
    • Install
    • Test
    • Debug

    Process is a lot harder with Sql Server CLR functions – I think you should automate as much of this as possible.

    You may also need to get the agreement of a DBA every time you wished to update a function.

    However after saying that “take your code to your data” can still be a very good option at times.

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

Sidebar

Related Questions

Hidden worksheets/workbooks have some limitations to what can be done in VBA code, like
Limitations: I can't change the frameworks I have to use the functions in the
Is there any limitations on AJAX Calls with ScriptManager to Web Services? I have
What are the limitations of TFS in heterogeneous development environments? I have little expirience
What are the limitations of unsafe code, in C#? For example, can I do
What are the downsides and limitations of using Linq to Sql verses writing a
I have a situation where for size limitations, I can't host the bare repository
What are the limitations(minuses) have binary serialization than XML, CSV, etc? And can you
I have limitations to host Windows Services in my web hosting provider. But i
Based on some limitations with the NDK standalone toolchain and bionic, I have rolled

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.