Solved

SQL Server RDS clr assembly

Posted on 2016-11-07
4
33 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 11

Expert Comment

by:Nakul Vachhrajani
Comment Utility
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 11

Expert Comment

by:Máté Farkas
Comment Utility
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
Comment Utility
<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
Comment Utility
Thanks
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

11 Experts available now in Live!

Get 1:1 Help Now