G
Guest
Hi,
What is the efficient way of executing the database sequence multiple times?
Suppose for example, I have a DB Sequence like this:
“Select SequenceName.NEXTVAL from TBLName;â€
I want to execute this multiple times and populate a collection. How do I
achieve this efficiently? Do I have to use DataReader multiple times? If so,
how do I do that?
There’s no support for stored procedures/functions in the DBMS, so I can’t
go that route.
Any code snippets will help.
Thanks.
What is the efficient way of executing the database sequence multiple times?
Suppose for example, I have a DB Sequence like this:
“Select SequenceName.NEXTVAL from TBLName;â€
I want to execute this multiple times and populate a collection. How do I
achieve this efficiently? Do I have to use DataReader multiple times? If so,
how do I do that?
There’s no support for stored procedures/functions in the DBMS, so I can’t
go that route.
Any code snippets will help.
Thanks.