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

Re: Return resultset from CLR

$
0
0

It looks like it works now.

I moved the "int p1" parameter to the start of the public static void function (pretty sure I've tried it before).

 

The stored procedure has one parameter in: "IN p1 INT"

 

The CLR definition has two parameters, to match the function in the DLL: (int p1, IDataReader readers[]).

 

When calling the procedure like this:

 

call GetResultSet1(2)

 

It returns all rows in the example-table where c1=2 (I've also modified the select-statement from the example).

 

I have no idea why it works, but now it does!

 

Regards,

 

Bjarne


Viewing all articles
Browse latest Browse all 2182

Trending Articles



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