I have developed a SQL CLR stored procedure in C#, for SQL Server 2012.
I want to log messages to SQL Server registers. On a normal stored procedure I use xp_logevent
What can I use to log a message in a SQL CLR stored procedure?
I have developed a SQL CLR stored procedure in C#, for SQL Server 2012.
I want to log messages to SQL Server registers. On a normal stored procedure I use xp_logevent
What can I use to log a message in a SQL CLR stored procedure?
Why not just execute xp_logevent via SqlContext.Pipe.ExecuteAndSend() in your catch block?