Hi,
I have to report from a stored procedure...
the basic stored procedure is
The DB is SQL SERVER
Open a cursor
Step through the Cursor
put the values selected into a variable
and for some condition calculate another variable
(Set @AmountPayable = @AmountPayable + @AmountDue)
and finally insert one record into a table
insert into AccPayable(Description,AmountPayable) values)
select * from AccPayable
After that i have to report from the table to which i have inserted the data.
But the problem is when i select the stored procedure it returns fields from the cursor which i opened in the beginning of the stored procedure......
is it possible to report like this
Thanx in advance for any help
I have to report from a stored procedure...
the basic stored procedure is
The DB is SQL SERVER
Open a cursor
Step through the Cursor
put the values selected into a variable
and for some condition calculate another variable
(Set @AmountPayable = @AmountPayable + @AmountDue)
and finally insert one record into a table
insert into AccPayable(Description,AmountPayable) values)
select * from AccPayable
After that i have to report from the table to which i have inserted the data.
But the problem is when i select the stored procedure it returns fields from the cursor which i opened in the beginning of the stored procedure......
is it possible to report like this
Thanx in advance for any help