Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

In VS2019 under "Project | Add New Item | Installed | SQL Server" I have the "SLQ CLR C#" option but not the "SQL CLR VB" option. How do I get the VB option? The SQL ...
Edmund's user avatar
  • 538
0 votes
0 answers
125 views

Is it possible to somehow invoke an AWS Lambda function from an EC2 hosted SQL Server 2019 instance? Could this be achieved using SQL Server CLR Functions perhaps? Before I attempt it I wondered if ...
Elliveny's user avatar
  • 2,113
2 votes
1 answer
378 views

We have a legacy application that uses SQL Server as its back-end. As part of some security concerns, it encrypts some fields collected from the user using (single) DES with a key & IV that is ...
JoeNahmias's user avatar
-3 votes
3 answers
181 views

How can I convert below VB.net SQL CLR function to C# CLR Function for a VS SSDT SQL Project? I need to convert it to C# as it seems that built-in SSDT Project support for CLR functions is C# only? If ...
Adam's user avatar
  • 2,031
0 votes
1 answer
606 views

Alright so using C# I am creating a DLL that I am using in SSMS and attaching it as an assembly to perform a few tasks, I can create/use the DLL fine but I am having trouble access the DB from the DLL ...
Samuel Dague's user avatar
1 vote
0 answers
738 views

I created a SQL CLR stored procedure that is triggered when an INSERT happens in the database. The stored procedure then uses HttpWebRequest to make an API JSON POST. The problem is that API uses SSL ...
LokiTata's user avatar
0 votes
0 answers
93 views

Am trying to create a CLR function and inside am using below quartz.net code snippet public static class SqlCron { [SqlFunction(IsDeterministic = true, IsPrecise = true)] public static ...
Santhosh G's user avatar
1 vote
1 answer
914 views

I have created a certificate, signed my assembly (UNSAFE) and it works, All as described there https://nielsberglund.com/2017/07/01/sqlclr-and-certificates/ Now I need to deploy the solution to many ...
ZedZip's user avatar
  • 6,592
0 votes
3 answers
978 views

Have a clr assembly that references System.Text.Json (.net 4.8 with SQL Server 14), when I try to load it into SQL Server (CREATE ASSEMBLY) I get: Assembly 'my assembly' references assembly 'system....
Alan Robbins's user avatar
0 votes
1 answer
86 views

I need help solving a performance problem related to a recursive function in SQL Server. I have a table of tasks for items, each of which have a lead time. My function recursively calls itself to ...
Jerome Curtis's user avatar
2 votes
1 answer
637 views

I used Visual Studio 2019 to create a SSDT project. Added a SQL CLR C# user defined function. Open project properties page, in the SQLCLR tab, click Signing... button to check the "Sign the ...
user3616544's user avatar
  • 1,083
0 votes
1 answer
1k views

I have implemented this article to call rabbitmq inside SQL Server: [https://nielsberglund.com/2017/02/11/rabbitmq---sql-server/][1] But when I try to send a message using the CLR I get this error: ...
Ehsan Akbar's user avatar
  • 7,357
1 vote
0 answers
244 views

SQL Server is missing a StringBuilder UDF(s), how do I to overcome this limitation? This is what I built to overcome the problem: You can use this in a SQL statement, notice that you need to SET the ...
Jason Craig's user avatar
0 votes
1 answer
130 views

My company is in the process of upgrading the SQL Server CLR types that are being used with our software. After Googling around, I couldn't find a definitive yes/no answer to whether or not the SQL ...
dnsullivan's user avatar
0 votes
1 answer
540 views

I am in a situation where I cannot find a workaround. I am trying to develop an SQL CLR project on Visual Studio 2015 where you can do POST and GET HTTP requests from SQL server. I was able to ...
Hakan Ali Yasdi's user avatar
1 vote
2 answers
212 views

I am trying to execute a UDF which uses a CLR assembly. Each time I try to run it I get the below error: Msg 6522, Level 16, State 1, Line 45 A .NET Framework error occurred during execution of user-...
Naz's user avatar
  • 535
1 vote
1 answer
2k views

I need to create a C# SQL CLR stored procedure to upload files (data exports) to AWS S3 buckets. These files will generally be very small. The AWS SDK cannot be installed on the SQL Servers and I am ...
Max's user avatar
  • 11
2 votes
2 answers
602 views

I have a SQL CLR function written in C# that goes something like: public partial class UserDefinedFunctions { [Microsoft.SqlServer.Server.SqlFunction] public static SqlString Decimal(decimal ...
Tomas's user avatar
  • 191
2 votes
1 answer
2k views

I need to force the usage of TLS 1.2 in SQLCLR assembly which is installed on SQL Server 2008 R2. I have read the answer explaining how to enable TLS 1.2 programatically. Unfortunately, adding System....
gis's user avatar
  • 163
0 votes
0 answers
219 views

I have a custom assembly that returns the column information for whatever query is thrown at it. While I was going through & double checking the values, it appears that a few of the 'DataTypeName' ...
Revircs's user avatar
  • 1,352
1 vote
1 answer
317 views

I have a SQLCLR assembly that does a simple JSON deserialization using the LitJson package on a SQL Azure Managed Instance. This CLR is called from a table-valued function that just returns the JSON ...
Jon's user avatar
  • 101
-1 votes
1 answer
735 views

In my asp.net MVC project, i created functions to encrypt/decryt via RSA which works fine as expected. I stored public/private keys on azure vault and accessing on runtime which is also fine. I am ...
Jitendra Pancholi's user avatar
2 votes
1 answer
5k views

When I try and register a signed C# assembly in SQL Server via the Object Explorer in SSMS by right-clicking on the "Assemblies" node and selecting "New Assembly", then my signed DLL via "Browse", I ...
Matt Arnold's user avatar
3 votes
2 answers
977 views

I want to have a CLR function run as a specific windows identity when called from SQL Server Agent Jobs. To that end, the SQL statement calling the function has the form: execute as user='domain\...
Dan Scally's user avatar
  • 2,062
26 votes
1 answer
50k views

I enabled clr integration (i.e. SQLCLR) by running: EXEC sp_configure 'clr enabled', 1; RECONFIGURE; Now when I try: EXEC sp_configure 'clr strict security', 0; RECONFIGURE; I get an error ...
jakubiszon's user avatar
  • 3,583

1
2
3 4 5
21