using System;
using System.Data;
using System.Data.SqlTypes;
public class MyCLRFunc
{
[Microsoft.SqlServer.Server.SqlFunction]
public static SqlString MyCLRHelloFunction()
{
return new SqlString("Hello everybody, I'm form SQLCLR!");
}
};
Create assembly MyUDFCLR from 'K:\Users\Sudesh\Desktop\MyCLRFunc.dll'
create function MyCLRHelloFunction()
Returns nvarchar(50)
External name MyUDFCLR.MyCLRFunc.MyCLRHelloFunction;
Go
select dbo.MyCLRHelloFunction()
Episode 007 - Logging - ASP.NET Core: From 0 to overkill
-
Joaof Bantunes take a look at logging in ASP.NET Core, the builtin support
and providers, as well as using third party implementations, namely NLog.
6 years ago
No comments:
Post a Comment