I'm using C# to build a SQL Server CLR procedure. In that I'm trying to convert a SqlString parameter to string, but the result is being truncated.
Here's simplified version of the code. The parameter "MyParam" contains a string of over 200 characters, but for some reason the ToString() truncates it to 100 characters. Any ideas? Or better way to convert the SqlString parameter.
[Microsoft.SqlServer.Server.SqlProcedure]
public static void MySqlClrProcedure(SqlString MyParam)
{
SqlContext.Pipe.Send("Test: " + MyParam.ToString());
}