Re: critical section in tsql

From: Roger Wolter[MSFT] (rwolter_at_online.microsoft.com)
Date: 08/31/04


Date: Mon, 30 Aug 2004 22:51:37 -0700

Look at Application Locks in BOL.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Daniel" <softwareengineer98037@yahoo.com> wrote in message 
news:uF%23XalwjEHA.2692@TK2MSFTNGP12.phx.gbl...
>I have two stored proecedures that i wish to have NEVER run at the same 
>time
> to avoid loosing all my data: sp_archive and sp_restore if they called
> together at the same exact time there is a possible race condition that
> would result in the entire db being whiped out. e.g. archive and restore
> both clear their targets at the smae time then try to copy. is there some
> good way to do this in sql server I could do it int he c# clients w/
> lock(){} but would feel safer if i could do it in the sql server 2000.
>
> 


Relevant Pages

  • Re: Using ldifde & csvde
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > How can I get the Windows 2000 versions and will they work with a Windows ... >> Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)
  • RE: SQLSink Sample
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: Convert Express To Server
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.sqlserver.setup)
  • Re: Programmatically replicate an Active Directory partition
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)
  • Re: Lost admin access to ADAM
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Use of included script samples are subject to the terms specified at ...
    (microsoft.public.windows.server.active_directory)