Re: nested stored procs
From: Richard Wilde (info_at_rippo.co.ukXXX)
Date: 09/30/04
- Next message: Scott Lyon: "Faking a full-text search"
- Previous message: David Portas: "RE: How do I get all identities from batch insert?"
- In reply to: Tibor Karaszi: "Re: nested stored procs"
- Next in thread: Tibor Karaszi: "Re: nested stored procs"
- Reply: Tibor Karaszi: "Re: nested stored procs"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 13:01:10 +0100
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: Scott Lyon: "Faking a full-text search"
- Previous message: David Portas: "RE: How do I get all identities from batch insert?"
- In reply to: Tibor Karaszi: "Re: nested stored procs"
- Next in thread: Tibor Karaszi: "Re: nested stored procs"
- Reply: Tibor Karaszi: "Re: nested stored procs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|