Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
61 views

I have several Visual Studio projects (Stored Procedures) that have been published to SQL Server 2014 (yes old I know - legacy software) that use System.Net.Http v4.2.0.0 so I know that the assembly ...
A. Guattery's user avatar
3 votes
1 answer
253 views

I have a CLR scalar function that does some calculations, these can take a long time. When the user cancels the execution of the query, it doesn't seem like the function execution is affected, so the ...
siggemannen's user avatar
  • 10.1k
2 votes
1 answer
216 views

Essentially, my question boils down to observing these two query plans (from SQL Server 2019): Plan using a SQL-defined scalar function. Link to plan Plan using a CLR-defined scalar function. Link ...
Nelson O's user avatar
  • 295
0 votes
1 answer
198 views

The following C# method counts string characters considering combining characters (Grapheme Clusters). Here it is: public static class StringExtensions { public static SqlInt32 GetStrLength(this ...
MJDevelops's user avatar
2 votes
0 answers
392 views

We have build a .NET function that (among other things) need to compute a SHA256 hash. For this, we have called the System.Security.Cryptography.SHA256 class from .NET Framework. After adding the CLR ...
Razvan Socol's user avatar
  • 5,749
2 votes
1 answer
104 views

I have a stored procedure with some CLR functions inside it. I need to check how many times these functions are being called during one stored procedure execution. I have found this select at ...
Yagi Gogi's user avatar
1 vote
2 answers
2k views

I am trying to create an UNSAFE assembly in SQL Server without having to alter any global database or server permissions such as EXEC sp_configure 'clr strict security', 0 or ALTER DATABASE MyDatabase ...
Ed Graham's user avatar
  • 4,755
1 vote
1 answer
284 views

I have created a SQLCLR UDF and am deploying it (using SSDT) to SQL Server 2019 on Linux. When I try to execute the function it returns the following error: Request for the permission of type 'System....
Satyveer Singh's user avatar
1 vote
1 answer
243 views

I have a C# (.NET Framework 4.7.2) script to perform some custom reading of trace codes, which I am trying to use to make a SQL (V14.0.3445.2) Table Valued Function. The C# FillRow Method looks like ...
High Plains Grifter's user avatar
0 votes
0 answers
143 views

Recently we have noticed that ALTER ASSEMBLY is not updating the dll on the SQL Server. We have been altering the assembly since last two years and never had an issue before. The major change we have ...
Sandeep Reddy Pinniti's user avatar
0 votes
0 answers
162 views

I have a SQL server C# CLR function that streams results. because of that I open a new connection inside the CLR and because of that I need to create the CLR unsafe. Now I want to move to sql ...
tire0011's user avatar
  • 1,048
1 vote
1 answer
1k views

I try to sign the CLR assembly in Visual Studio database project (SSDT) so that I can publish the assembly into the SQL Server but with no success. What I have done manually and it works Created ...
Muflix's user avatar
  • 6,896
0 votes
4 answers
191 views

I have a C# CLR doing multiple string manipulations. It returns an int. I'm calling it with SELECT func(col1, col2) AS Score INTO #A FROM table; SELECT * INTO #B FROM #A WHERE Score > -1 If I do ...
jigga's user avatar
  • 624
0 votes
0 answers
356 views

I have a stored procedure calling an external function: ALTER PROCEDURE [dbo].[spFoo_CallApp] @Url [nvarchar](max), @Payload [int], @Type [nvarchar](max) WITH EXECUTE AS CALLER AS EXTERNAL ...
chris's user avatar
  • 1
1 vote
1 answer
2k views

I found this same issue in my research, but no solution was found: Research Link This .dll is System.net.http, and it is pulled from the 4.6.1 .NET Framework. I am trying to create an assembly out of ...
Jon Nguyen's user avatar
0 votes
1 answer
489 views

A SQL Server Language Extension function is executed in an external process. Does it mean that when such a function is called in a Select clause it creates a new process for every row in the recordset ...
Lorin_F's user avatar
  • 179
-1 votes
1 answer
115 views

how can i replace values in string with values that are in a table? for example select * into #t from ( select 'bla'c1,'' c2 union all select 'table'c1,'TABLE' c2 union all select '...
elle0087's user avatar
  • 922
1 vote
1 answer
473 views

I am just testing something internal and now the TRUSTWORTHY is set to ON security risks. I am wondering though, if TRUSTWORTHY is ON, can an UNSAFE assembly stop working if it is signed and and has ...
cdub's user avatar
  • 25.9k
13 votes
3 answers
8k views

I'm a .NET developer and new to mac (m1 pro). I use docker and pull the azure-sql-edge image. When I try to create a table with a geometry column or insert a value in the geometry type column that was ...
Abbas Behjatnia's user avatar
0 votes
1 answer
196 views

I have created a SQLCLR functions works with RabbitMQ. Added them to SQL Server as described here https://nielsberglund.com/2017/07/01/sqlclr-and-certificates/ using certificate: created it, added to ...
ZedZip's user avatar
  • 6,592
2 votes
1 answer
2k views

My SQL CLR procedure depends on log4net, it depends on System.Web.dll. When I upload this System.Web.dll : create assembly [System.Web] from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web....
ZedZip's user avatar
  • 6,592
1 vote
0 answers
368 views

Error in Adding CLR assembly of .net framework 5.0 in SQL Server 2019. I have a DLL which uses .NET Framework v5.0. and I want to add it to SQL Server 2019 using CREATE ASSEMBLY. Is it possible to to ...
Saqlain Mushtaq's user avatar
0 votes
1 answer
393 views

Microsoft SQL Server 2019 15.0.2000.5 Microsoft Visual Studio Community 2019 Version 16.11.2 Microsoft .NET Framework Version 4.8.04084 SQL Server Data Tools 16.0.62107.28140 When publishing C# ...
stackunderflow's user avatar
0 votes
0 answers
69 views

Is it possible to write logs in SQLCLR procedure to ElasticSearch (EFK or ELK stacks)? If it is where are any examples?
ZedZip's user avatar
  • 6,592
2 votes
1 answer
963 views

I have a SQL Server database project in my solution and several dependencies projects. When I compiling (in VS) this database project I've get a SQL script and a .dacpac file as result. But also I ...
Viktor Bardakov's user avatar

1
2 3 4 5
21