Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Return resultset from CLR

$
0
0

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?


Viewing all articles
Browse latest Browse all 2182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>