The error message describes what the issue is: CLR stored procs allow only void or integer return types. If you want to return a string to the calling program, you can do it using an output parameter. For example:public static void YourCLRProc(out SqlString theString)
orPublic Shared Sub YourCLRProc( <Out()> ByRef theString As SqlString)
When you install the stored proc in T-SQL, use the OUTPUT qualifier as increate proc dbo.YourTSQLProc(@yourstring nvarchar(255) OUTPUT)AS EXTERNAL NAME ....