How to clear a lock

Database has a lock that is preventing users from using it. How do I clear this lock?

Have Adam's great stored procedure to see who/how/by whom is locked
Who Is Active? v10.00 (2010-10-21)
(C) 2007-2010, Adam Machanic
Feedback: mailto:[email protected]
Updates: http://sqlblog.com/blogs/adam_machanic/archive/tags/who+is+active/default.aspx
"Beta" Builds: http://sqlblog.com/files/folders/beta/tags/who+is+active/default.aspx
License: 
Who is Active? is free to download and use for personal, educational, and internal 
corporate purposes, provided that this header is preserved. Redistribution or sale 
of Who is Active?, in whole or in part, is prohibited without the author's express 
written consent.
Usage
/*BLOCKING*/
EXEC dbo.sp_WhoIsActive @find_block_leaders =1,
@output_column_list ='[blocked_session_count][blocking_session_id][session_id][CPU][status][wait_info]
                      [database_name][sql_text][host_name][open_tran_count]',
@sort_order='[blocked_session_count]DESC'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • How to clear a container in OOPS...?

    Hi,
           How to Clear a Container in Object Orientation Programming...?
                      There is a method available......can you tell me that one.......
    Moderator message: Please search the forums and Google before posting basic questions. Thread locked.
    Edited by: Neil Gardiner on Sep 24, 2010 3:55 PM

    I Create an Container to display Graphics.
    Thare are many click events.
       When I click an "click event " it shows orihinal Graph.
         After I click second "click event" it overrides previous values and texts.
                Even though I didnt create Graphics for an Particular "click event" , it shows Graphics.
                       what is the Method (or) Function Module to clear that Container...?

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • How to clear Google search history

    HI,
    Ever since I updated to 2.1 it has been impossible to clear my Google search terms. Clearing the cache, cookies, etc in 'settings' has no effect.
    Does anyone know how to clear them?

    I'd try a reboot just to see if it fixes the issue.
    Try a reboot (described below).
    Think of it this way, the iPhone is more of a computer than a phone. It suffers from being a new OS and nobody can deny there are not bugs and memory leaks. The longer left running, the more things start to fail or slow down (I have had the iPhone since day one of original phone and I am just speaking from my experience). Thus I equate it to like when Windows95 came out...not sure of your age or if you remember those days...but back then it was a running joke of how many days you can keep Windows 95 running before you had to reboot. I am sorry to say but the iPhone is the same way right now (but getting better with a few hiccups back during the 2.0 release). So for me, I reboot daily when I leave in the morning and take it off the charger. By doing so I rarely see any lag or problems.
    A reset/reboot is:
    Go to Home Screen
    Press and Hold Home Button
    Keep holding and press and hold Lock Button
    Keep holding Both
    You will see Slide to Turn Off (Don't let go to slide, just keep holding)
    The phone will turn off (in time, but screen will look like it has some white lines)
    Keep Holding
    When you see the Apple Logo, you can let go.
    Turning off via the Slide to Turn off while good and fine to turn off, is more like the Sleep Mode on a computer. Thus any locked up issues in memory remain when you turn back on. A reboot as described is like doing a real Turn off and Turn On on a computer.
    You may also wish to read this tread about reboots and odd application behavior.
    http://discussions.apple.com/message.jspa?messageID=5851978#5851978

  • I want to know how to clear the text area by the push off my next question button and ask a new ques

    I want to know how to clear the text area by the push off my next question button and ask a new question - also I want to know how to code in my project to where a user can enter a math question in one border container and the answer enters into the next container
    heres my code so far
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" backgroundColor="#1E5C75">
        <fx:Script>
            <![CDATA[
                protected function button1_clickHandler(event:MouseEvent):void
                    //convert text area into labelid to be identified by actionscript
                    richTextLabel.text = myArea.text;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <!--container 1-->
        <s:BorderContainer borderWeight="7" x="28" y="10" width="200" height="138">
            <s:layout>
                <s:VerticalLayout paddingTop="10" paddingBottom="10"
                                  paddingLeft="10" paddingRight="10"/>
            </s:layout>
            <!--data Entry control-->
            <s:TextArea id="myArea" width="153" height="68"/>
            <!--end of data entry control-->
            <s:Button width="151" label="ask a question" click="button1_clickHandler(event)"/>
        </s:BorderContainer>
        <!--container2-->
        <s:BorderContainer borderWeight="7" x="509" y="10" width="200" height="138">
            <s:layout>
                <s:VerticalLayout paddingTop="10" paddingBottom="10"
                                  paddingLeft="10" paddingRight="10"/>
            </s:layout>
    <!--data entry control-->
            <!--convert tne data entry control into a label id in actionscript-->
            <s:Label id="richTextLabel" width="153" height="68"/>
            <s:Button width="151" label="next question" click="button1_clickHandler(event)"/>
        </s:BorderContainer>
        </s:Application>

    This is a user to user support forum.  We are all iphone users just like you.
    You are not addressing Apple here at all.
    This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
    "it's too fragile"
    No it is not.  i have never damaged one, nor has anyone I know.
    " U loose data when Ur phone is locked"
    No you don't.  Why do you think this?
    "and there is no customer support!!!  "
    Wrong yet again.  Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
    "but I will go back with Blackberry "
    Please do.
    Good ridance

  • Q10 volume problem and how to clear call log

    I'm having problem with my bb volume.You can hardly hear the tone when the phone rings despite the fact that i've increase the volume to the loudest.
    Also can someone help me with how to clear my call log.Thanks.

    huyanh, please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

  • How to clear completed reminders in iCal

    Has anyone figured out how to clear completed (checked done) reminders in iCal?

    Joe,
    That clarifies the question for me. Go to iCal>Preferences>Advanced and make your choices:

  • How to clear text fields when the user navigates back to the screen

    Hi,
    Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
    My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
    Thanks

    This code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
    As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.containers.FormItem;
          import mx.controls.TextInput;
          import mx.events.IndexChangedEvent;
          import mx.core.Container;
          private function clearSreen(evt:IndexChangedEvent):void{
            var view:Container = tn.selectedChild as Container;
            for each(var child:Object in view.getChildren()){
              if(child is FormItem){
                var subchild:DisplayObject = child.getChildAt(0);
                if(subchild is TextInput){
                  TextInput(subchild).text = "";
        ]]>
      </mx:Script>
      <mx:TabNavigator id="tn" resizeToContent="true"
        change="clearSreen(event)">
        <mx:Form id="frm1" label="View Number One">
          <mx:FormItem label="First name:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Last name:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
        <mx:Form id="frm2" label="View Number Two">
          <mx:FormItem label="Address1:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Address2:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="City:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="State:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Zip code:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
      </mx:TabNavigator>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • How to clear vendor open items with customer open items in APP?

    Hi Experts,
    Our vendor is our customer - in this scenario how to clear vedor open items against customer open items. I have defined vedor is customer means I have given customer number in vendor master record, selected chek box 'clear with customer'.  Still problem is not solved, hence I am requesting you to help me in this regard.
    Thank you very much,
    Regards,
    Ganesh.

    Hi
    In FBCJ after payment you have clear manually vendor balance in F-44.
    If you want SPL GL in FBCJ then write a Substitution .
    1. step 001 - Special G/L Substitution
    2. Prerequisite - Transaction code = 'FBCJ'
    3. Substitution posting key -- Exit (need help from abap) exit name
                                              G/L Exit (need help from abap) exit name
                                              Special G/L Ind Exit (need help from abap) exit name
    you can't do this without ABAP help
    Best Of Luck
    Tanmoy

  • How to clear vendor open items if vendor invoice currency and payment currency different

    Hi All.
    How to clear vendor open items through f-44 if vendor invoice currency is EUR , payment currency is USD  but local currency is INR
    while clearing through f-44 system showing error as "to large for clearing clearing is not possible"
    I checked all configuration, configuration wise no problem
    BR.
    Chandra

    Hi Chandra,
    You chose any one of the currency i.e. EUR/INR/USD for clearing in F-44. After selecting line items for clearing, system will show a difference. Click on over view button and manually write off the difference by selecting any one account i.e. dummy or small diff.account, after that click on process open items then system will show the difference 0 and simulate the document, here system will post gain/loss exchange GL postings along with other line items. After save the document, manually pass journal entry to dummy account and gain/loss account. I have explained clearly in the below example.
    Invoice is in USD - 1000 & INR - 60000
    Payment is in INR - 60000
    Now I am going to clear these in INR currency in F-44 on 31.03.2015. On this date the exchange rate for USD is 60.10. At the time of clearing system will post the below entry
    Vendor A/c Dr 60000 (invoice)
    Vendor A/c Cr 60000 (Payment)
    Gain from exchange rate A/c Cr  100 (60000 - 60100)
    Small diff.write off A/c (or) Dummy A/c Dr 100
    After done the above posting, we have to pass below manual JV in FB01
    Gain from exchange rate A/c Dr  100
    Small diff.write off A/c (or) Dummy A/c Cr 100
    Regards,
    Mukthar

  • How to clear the open documents in case if document currency and local curr

    Hi,
        Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Currency CAD and the local currency is GBP.
    When i check the FBL1N, there is it showing net balance is ZERO, but document is still in open
    status. I tried using Transaction code F-44, but it is not allowing me.
    Can anyboday advise how to perform this. Points will be awarded.
    Regards,
    Sree.

    Hi,
    In the Company code global parameters(OBY6),select the check box "NO FOREX RATE DIFF.WHEN CLEARING IN LC"
    and try clearing again.(You can have a F1 help on the check box to see what exactly it is).
    Hope this will resolve
    Assign points if useful
    Thanks
    Aravind
    Edited by: Aravind Aitipamula on May 22, 2008 1:36 AM

  • How to clear vendor open documents

    How to clear vendor open documents, I had previously tried to clear the documents in PRD with transaction F-44 and I get the following message.
    X. Ex.rate diff.accts are incomplete for account 00015080 currency CAD

    You can clear using the t code F-44 which is manual or by using F.13 which is automatic.
    The error you are getting is with refernce to a transaction between your Local currency and Currency "CAD"
    Maintain a transalation ratio and the exchange rate. Here the system also looks for a exchange loss or gain on such conversion also. Map those accounts and you will be clearing the transaction.
    If you are using automacti clearing you need to decide on the link(Common feild)  between the DR open item and CR open item and these open items after having this as a refernce can be cleared automatcially in F.13.
    Hope you understood.
    Reward points if useful.
    sarma

  • How to clear UWL items ?

    Hi,
    We are having so many entries or pending tasks in UWL of each user .
    How to clear them ? And I did not find any delete or remove button by selecting any entry .
    How to delete those entries one by one and all entries at once ?
    Thanks,
    Surya

    Hi,
    I hope you should clear them in workflow of backend .
    consult workflow forum
    Remove from transaction SWIA, choose logically delete on the highest
    level
    Koti Reddy

  • How to clear GR/IR account when criteria is not matching

    Hi All,
    I have issue in clearing GR/IR account done by F.13.  Criteria field XREF3 in Criteria 3 given is not matching in WE and RE, so I cannot clear, this happend to once particular GR/IR only.
    So how to clear this GR/IR when Criteria is not matching.
    Syam

    Hi,
    You can clear it manually using F-03. In that T-Code it is a manual clearing and not automatic clearing...so you can select any line items you want to clear, only thing is that their balance should be Zero.
    Regards,
    SAPFICO

  • How to clear Autocomplete text in Jquery.

    Hi All,
    I have implemented a Autocomplete text item using jquery.Every thing looks fine, but when we clear the country the corresponding state should be cleared.
    Here is the code, can any body hep me out where and how to clear the values.
    <script type="text/javascript">
    $( function() {
        $("#P16_ENG_CTRY").autocomplete({
            source : function( request , response) {
                            data = getCountry(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
    function getCountry(key)
       document.getElementById('P16_ENG_CTRY')=='';
       var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_COUNTRY' , 0);
       ajaxRequest.add( 'G_MX01' , key);
       ajaxResult = ajaxRequest.get();
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
    $( function() {
        $("#P16_ENG_STATE").autocomplete({
            source : function( request , response) {
                            data = getStateJ(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
    function getStateJ(key)
    document.getElementById('P16_ENG_STATE')=='';
          var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_JSTATE' , 0);
              ajaxRequest.add('G_MX01',document.getElementById('P16_ENG_CTRY').value);       
              ajaxRequest.add( 'G_MX03' , key);
              ajaxResult = ajaxRequest.get();
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
    $( function() {
        $("#P16_ENG_CITY").autocomplete({
            source : function( request , response) {
                            data = getCityJ(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
    });Thanks,
    Anoo..

    Thanks VC for a quick turn around, i have made changes like this which wroks fine but when i click the event outside then it is clearing the list fo state.
    Is it possible to clear when i had tried to remove the country manually the sate should clear at at time insted of click the event.
    <script type="text/javascript">
    $( function() {
        $("#P16_ENG_CTRY").autocomplete({     
            source : function( request , response) {
                            data = getCountry(request.term);
                            response( data );
            focus  : function(event , ui){
                        event.preventDefault();
            change : function(event,ui) {
                     if ($('P16_ENG_CTRY').val()==null || $('P16_ENG_CTRY').val()==""){
                  $("#P16_ENG_STATE").val('');}}  
    Thanks,
    Anoo..

Maybe you are looking for

  • Getting iTunes library onto new computer

    Ok, so about a month ago, my computer died of a broken motherboard. the hard drive did survive, however, and now lives on in an external case. i purchased a new computer, and do not know how to go about getting all of my music onto it. i currently ha

  • Jsf not rendering the new data

    On the page a.jsp, when i select the year and company name, it displays the reqd company info. when i click edit, it goes to b.jsp and displays those information. after i edit, i click save. data is updated in the database and it goes back to a.jsp a

  • Creating a background sign?

    i have a scene taking place in a hollywood office, and i'd like to create a sign, like the hollywood sign behind them or maybe a bunch of buildings behind them. how do i do this? kinda new to fcp and studio....

  • Exporting to excel...automatically converts to PDF

    I can't quite tell to be sure, whether this is a problem within BO or with the computer. However the problem is basically what the subject says. Someone I'm working with has been having this problem for the past two week, which previously was not a p

  • Need quick help on .mov to "DVD ready"

    hi, i have a .mov file that i was using in DVDSP. i thought it might be better to go ahead and run it through compressor first. my source fill has video and audio --how do i get a final file that is separated into two files? it seems to me i'd have t