I've tried the provided examples, and they all work good.
But as soon as I add an in-parameter to both the CLR Stored procedure and the function "GetResultSet1", the call fails with the same error as my code:
Could not execute statement.
Table 'ExtEnvResultSetNN' not found
SQLCODE=-141, ODBC 3 State="42S02"
The stored procedure looks like this:
CREATE PROCEDURE CLRGetResultSet1(in p1 integer) RESULT( c1 int, c2 char(128) )
DYNAMIC RESULT SETS 1
EXTERNAL NAME 'clrtest.dll::ResultSet.GetResultSet1( IDataReader[],int )'
LANGUAGE CLR;
And the function looks like this:
public static void GetResultSet1(IDataReader[] readers,int p1)
Any ideas?
Is it not possible to pass parameters into a CLR stored procedure which resturns a IDataReader?