Re: CURSOR problem
From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 08/04/04
- Next message: Zach Wells: "Re: AutoNumber Column and ..."
- Previous message: Steve Kass: "Re: RTRIM function doesn't work"
- In reply to: Girish: "CURSOR problem"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 12:39:49 -0400
Consider a set-level solution that doesn't have to execute the proc once for
each row in the result set of the proc. Otherwise, insert the results of
the proc into a temp table and then run the cursor against it.
-- Tom --------------------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA SQL Server MVP Columnist, SQL Server Professional Toronto, ON Canada www.pinnaclepublishing.com/sql "Girish" <gbajaj@tietronixinc.com> wrote in message news:uog%23bCkeEHA.2852@tk2msftngp13.phx.gbl... DECLARE accounts_cursor CURSOR FORWARD_ONLY FOR exec getAccountsData @AccountId getAccountsData is a stored procedure. Is this not possible? I cant execute a stored procedure and open up a cursor on that? Thanks, Girish
- Next message: Zach Wells: "Re: AutoNumber Column and ..."
- Previous message: Steve Kass: "Re: RTRIM function doesn't work"
- In reply to: Girish: "CURSOR problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|