Re: transaction isolation level

From: Kalen Delaney (replies_at_public_newsgroups.com)
Date: 12/15/04


Date: Tue, 14 Dec 2004 18:58:36 -0800

Hi Andy

SET options within a stored procedure only are in effect for the execution
of the procedure.

-- 
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Andrew J. Kelly" <sqlmvpnooospam@shadhawk.com> wrote in message 
news:eEfxY7j4EHA.1524@TK2MSFTNGP09.phx.gbl...
> Once you set an isolation level it stays in effect for the rest of that 
> connection and "Everything" will adhere to it.  Actually if you are not 
> careful and don't set it back you can affect other calls on that 
> connection as well.  One thing to note is that it is very important to 
> owner qualify your sp calls when they are executed so often.
>
> exec dbo.yoursp
>
>
> -- 
> Andrew J. Kelly  SQL MVP
>
>
> "ChrisR" <bla@noemail.com> wrote in message 
> news:OmVdZtj4EHA.2788@TK2MSFTNGP15.phx.gbl...
>> Weve got about a dozen or so procs that are run continously. Some as much 
>> as
>> every millisecond. I want to allow dirty reads for these guys. If I "set
>> transaction isolation level read uncommitted" at the beginning of the 
>> proc,
>> will that count for every Select..From statement in the proc? Or do I 
>> need
>> to put (read uncommitted) next to every Select ..From in my Proc?
>>
>> option 1:
>>
>> ALTER   procedure dbo.zzTest
>> @ZipCode char(5)
>> as
>> set transaction isolation level read uncommitted
>>
>> select bla  from bla1
>> inner join bla2 on bla1 .....
>>
>> --
>> SQL2K SP3
>>
>> TIA, ChrisR
>>
>>
>
> 


Relevant Pages

  • Re: transaction isolation level
    ... SET options will revert back to the original settings once the ... SQL Server MVP ... > Andrew J. Kelly SQL MVP ... >> will that count for every Select..From statement in the proc? ...
    (microsoft.public.sqlserver.programming)
  • Re: Status Column in sysobjects table...SQL2000
    ... Please post a sample proc that demonstrates the ... >> Dan Guzman ... >> SQL Server MVP ... even though there are no compilation errors. ...
    (microsoft.public.sqlserver.programming)
  • Re: Replicating Stored Proc Execution
    ... Looking for a SQL Server replication book? ... You are saying that if the proc is ... on the subscriber to see if it works there. ... store proc execution on subscriber/distributor. ...
    (microsoft.public.sqlserver.replication)
  • Re: Replicating Stored Proc Execution
    ... There are some options for stored procedure execution - ... You are saying that if the proc is ... "Hilary Cotter" wrote: ... on the subscriber to see if it works there. ...
    (microsoft.public.sqlserver.replication)
  • Re: Status Column in sysobjects table...SQL2000
    ... The QUOTED_IDENTIFER setting may or may not prevent the proc from being ... > Quoted_Identifiers and/or ANSI_NULLS it would not even compile. ... >> Dan Guzman ... >> SQL Server MVP ...
    (microsoft.public.sqlserver.programming)

Loading