Re: nested stored procs
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 09/30/04
- Next message: Bogus0: "SARG"
- Previous message: mahesh: "Re: sql server tape backup"
- In reply to: Richard Wilde: "Re: nested stored procs"
- Next in thread: Roji. P. Thomas: "Re: nested stored procs"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 15:32:02 +0200
> I was hoping I did not have to trawl through my app to change the parameters
> passed to stored proc A
No need. The new parameter is an *optional* parameter, if you don't pass it, the procedure will
behave as it used to...
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "Richard Wilde" <info@rippo.co.ukXXX> wrote in message news:eBKUlTupEHA.4076@TK2MSFTNGP12.phx.gbl... > Thanks, I thought as much > > I was hoping I did not have to trawl through my app to change the parameters > passed to stored proc A > > Richard > > "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in > message news:eLYRgQupEHA.896@TK2MSFTNGP12.phx.gbl... > > You can't. You can pass an optional parameter from the outer proc and the > > inner proc will use that > > parameter to determine whether to do the SELECT. Or pass the value out as > > an OUT parameter instead > > of doing a SELECT.... > > > > -- > > Tibor Karaszi, SQL Server MVP > > http://www.karaszi.com/sqlserver/default.asp > > http://www.solidqualitylearning.com/ > > > > > > "Richard Wilde" <info@rippo.co.ukXXX> wrote in message > > news:use$9IupEHA.868@TK2MSFTNGP10.phx.gbl... > >> I have a stored procedure A which performs a few inserts and outputs an > >> select @@identity as id > >> > >> I have a stored procedure B which calls stores procedure A > >> > >> However I want to suppress the ouput of stored procedure A inside stored > >> procedure B. I tried using > >> > >> set nocount on > >> > >> but this only suppresses the insert confirmations > >> > >> how do can I do it? > >> > >> PROC B > >> set nocount on > >> exec stored A > >> set nocount off > >> > >> > > > > > >
- Next message: Bogus0: "SARG"
- Previous message: mahesh: "Re: sql server tape backup"
- In reply to: Richard Wilde: "Re: nested stored procs"
- Next in thread: Roji. P. Thomas: "Re: nested stored procs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|