Hello everyone. I am newbie to CLR integration while developing an understanding to CLR integration in c#.net for stored procedure in sql server 2008 i am caught in a problem. for a better understanding first take a look at this fictitious data.
Qty price
2 10
3 9
4 20
now i have this data in my store procedure's query on which i would like to perform further manipulation using CLR integration which is to Calculate Total=Qty*Price for each row for sake of understanding CLR integration.
once the calculation in managed code is done then i would like sql server to the following as resultset not as a message.
Though i have achieved this with SqlDataRecord which give me one record/ per resultset which is not what i want. I want these three rows to occur like following in only one result set.
Qty price Total
2 10 20
3 9 27
4 20 80
How can i achieve this in CLR integration using c#.net.
Your guidance will greatly be appreciated.
Thanks in Advance.
Hamad Salahuddin Elite Technologies,Abbottabad Pakistan www.et.com.pk