?
Solved

What are the disadvantges in executing .net assembly in SQL Server ?

Posted on 2014-10-27
5
Medium Priority
?
130 Views
Last Modified: 2014-11-25
Is it a good practice to execute the .net  assembly through SQL server ?
0
Comment
Question by:Varshini S
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40407210
They are slower than straight SQL.

Their role is not to replace SQL, they are there to provide a way to perform operations that cannot be done or are hard to do from SQL, such as Office interop.
0
 
LVL 40

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 500 total points
ID: 40407373
Also it depends on if you own the DLL or not.  If you don't own the DLL (eg: you didn't compile the source to generate that DLL) you're trusting the user who provided the DLL that it's going to do what they say it will do.

There are ways around that (eg: de-compiling to verify) but it's a disadvantage in my mind.

Also to elaborate on why they are slower the DB has to load the dll into memory, then invoke the function in the CLR.  It also doesn't perform any kind of performance tuning or optimizations.

Lastly RAM usage could be another disadvantage (eg: the assembly will take up RAM space).
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 1000 total points
ID: 40408120
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 40412016
Eric . . . where do you cover the advantages / disadvantages?
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 1000 total points
ID: 40412284
I don't have a section specific for pros/cons. I warn that SQL statements will always be faster then your CLR code.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question