Solved

SQL Server RDS clr assembly

Posted on 2016-11-07
4
51 Views
Last Modified: 2016-11-09
Is it possible to store a clr assembly in a SQL Table.... and call it form there instead of a folder?
0
Comment
Question by:lrbrister
4 Comments
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41877694
You only need to create the assembly from a folder (i.e. physical dll) once. Once the assembly is created, you can simply right-click it in SSMS and choose to script out the assembly. It will produce a binary representation of the assembly which you can then embed into your deployment scripts.

This process is described here (https://msdn.microsoft.com/en-us/library/ms345099.aspx)
0
 
LVL 12

Expert Comment

by:Máté Farkas
ID: 41878364
Dear lrbrister,
Can you show me an example how you call a CLR assembly from a folder in SQL Server?
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 41879264
<Is it possible to store a clr assembly in a SQL Table.... >
if you meant "DLL" -- yes

<and call it form there instead of a folder?>
No
---
Not sure why do you need this but

..as an idea...
with some "extra" steps

1st you can store file in sql server

2nd  you need to retrieve this file each time
and "deploy" and after  do "cleanup", etc
---\


Deploying CLR Database Objects
https://technet.microsoft.com/en-us/library/ms345099(v=sql.105).aspx
0
 

Author Closing Comment

by:lrbrister
ID: 41880605
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now