Re: Passing a table or cursor into a stored procedure
hkvats_1999_at_yahoo.com
Date: 08/25/04
- Next message: cknobs: "Nightly maintenance failures"
- Previous message: Saeed Sedighian: "Re: A question about sql server indexing"
- In reply to: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Next in thread: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Reply: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: 25 Aug 2004 00:13:29 -0700
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.
- Next message: cknobs: "Nightly maintenance failures"
- Previous message: Saeed Sedighian: "Re: A question about sql server indexing"
- In reply to: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Next in thread: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Reply: Russ Ferrill: "Re: Passing a table or cursor into a stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|