Hi everybody!
Is there another way in a SP to retrieve values from a select statement other then using a cursor?
like:
select start as @start, end as @end from month
and then later on in the SP to use the @start and @end variable for other purposes.
Right now I'm extracting this values (@start, @end) using a cursor, but I know that the cursor is consuming extra resources
NOTE. The select statement from above will always return a single row.
Thanks,
Durug
Is there another way in a SP to retrieve values from a select statement other then using a cursor?
like:
select start as @start, end as @end from month
and then later on in the SP to use the @start and @end variable for other purposes.
Right now I'm extracting this values (@start, @end) using a cursor, but I know that the cursor is consuming extra resources
NOTE. The select statement from above will always return a single row.
Thanks,
Durug