Re: Passing a table or cursor into a stored procedure
From: Russ Ferrill (rferrill_at_paracominc.com)
Date: 08/25/04
- Previous message: Russ Ferrill: "Re: EXECUTE 'tsqlstring' with parameters"
- In reply to: hkvats_1999_at_yahoo.com: "Re: Passing a table or cursor into a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 16:22:36 GMT
So, I guess that means that if I want a procedure to process the rows in a
cursor created by the caller I have to create a cursor with a scope
reachable by both the caller and the procedure?
<hkvats_1999@yahoo.com> wrote in message
news:68c8c86d.0408242313.7a155e02@posting.google.com...
> Hi Ferrill,
>
> Cursor can be used as OUTPUT parameter only not as Input-Output. This
> cursor will alow stored procedure to return a cursor as output.
>
> Regards
> Hari Sharma
>
> "Russ Ferrill" <rferrill@paracominc.com> wrote in message
news:<njJWc.12830$wN.2627@newssvr22.news.prodigy.com>...
> > Thanks for the info. If I pass a cursor as an OUTPUT parameter, can I
pass
> > an actual cursor already declared with a select for loading the rows and
> > then fetch those rows from within the stored procedure or is the cursor
I am
> > passing simply a means of allowing the stored procedure to return a
cursor
> > as output? Thanks again for any suggestions you may have.
> >
> >
> > <hkvats_1999@yahoo.com> wrote in message
> > news:68c8c86d.0408232133.7ef7b3e@posting.google.com...
> > > Hi Ferrill,
> > >
> > > you can pass all data types, including text, ntext and image, as a
> > > parameter to a stored procedure. However, the cursor data type can be
> > > used only on OUTPUT parameters.
> > >
> > > Regards
> > > Hari Sharma
> > >
> > > "Russ Ferrill" <rferrill@paracominc.com> wrote in message
> > news:<xosWc.4753$gx7.2216@newssvr23.news.prodigy.com>...
> > > > I have a stored procedure that I would like to be able to pass a
table
> > or
> > > > cursor into so that it will process whatever records are contained
in
> > the
> > > > input data. Is there any way to do this in T-SQL? If not, can
somebody
> > > > suggest a good workaround? Thanks very much in advance.
- Previous message: Russ Ferrill: "Re: EXECUTE 'tsqlstring' with parameters"
- In reply to: hkvats_1999_at_yahoo.com: "Re: Passing a table or cursor into a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|