You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels

Hi, I have a piece of code that works fine in SSMS as T-SQL. When I put the T-Sql inside a SP, I get the error :
You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels
The script starts is as follows (only select)
SET NOCOUNT ON
Set Transaction Isolation Level Read Committed
Set Deadlock_Priority Low
Select......
From MyTable WITH (NOLOCK)
GROUP BY .....
Order BY ....
works fine as I said in SSMS as T-SQL but the SP generates the following
Msg 650, Level 16, State 1, Procedure usp_TotalMessages, Line 15
You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels.
By the way, when it says line 15, from where we should start counting, is it from The USE DB statement which includes comments as well as Set ANSI....or should we start counting from the Alter PRocedure statement
Thanks in advance

Set Transaction Isolation Level Read Committed
Set Deadlock_Priority Low
Select......
From MyTable WITH (NOLOCK)
GROUP BY .....
Order BY ....
First you define transactionlevel = "Read Committed", then you use a query hint "NOLOCK" which is equivalent to "Read Uncommitted"; so what do you want now, committed or uncommitted, you have to decide.
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • SP2013 Bug Report: Health Reports - You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels.

    There appears to be an error when trying to view Health Reports from Central Administration. A simple fix within a SharePoint Stored Procedure fixes the problem. I get the error message "You can only specify the READPAST lock in the READ COMMITTED or
    REPEATABLE READ isolation levels." when just trying to click "View Health Reports" --> Go in CA.
    I have found the same problem in some blog posts which leads me to believe this is a bug:
    Problems Viewing Health Reports in SharePoint 2013
    From the blog post "I managed to work around it by altering the
    proc_GetSlowestPages stored procedure and commenting out the
    WITH (READPAST) line. "
    This also worked for me. It would be great if a fix could be released for this problem as it seems to cause other problems as well (site analytics freezes).

    Hi Dennis
    Hope you had found the hotfix and installed it.
    For the benefit of others who visit this thread SharePoint Server 2013 Client Components SDK hotfix package addresses this issue.http://support.microsoft.com/kb/2849962
    Regards
    Sriram.V

  • Message# AA649 In area 01, you can only post manual dep. up to the amount

    hi friends
    when i do the transaction in ABAA ,it went error said that In area 01, you can only post manual dep. up to the amount  0
    i had select allowed all value in unplan depreciation ,and why the detail message said the The asset does not have any net book value; in this case, you should check the transaction as described above.
    Asset affected: 000025100073-0000
    Diagnosis
    This posting cannot be performed, since manual depreciation can only be posted in the amount of            0.00 in area 01.
    Procedure
    Check the transaction type entered, or change the posting amount.
    Caution:  If the amount concerned is 0, this could be the result of two situations:
    1. The asset does not have any net book value; in this case, you should check the transaction as described above.
    2. The asset has a depreciation key with automatic depreciation calculation. However, if you want to include depreciation in addition to the automatically calculated depreciation, it has to be unplanned depreciation.
    Otherwise, you should use a depreciation key that does not calculate automatic depreciation (SAP-supplied key: MANU).
    thanks

    Hi,
    1)  Transaction type 640 normally is a previous year transaction type. My suggestion is that you have no values from previous years.
    You use the transaction type 640.
    Please check if it works with transaction type 650.
    Check the setting from the transaction types:
    Table TABW (SE16)
    =================
    Trans. Type........Trans.Type grp.
    640.........................64
    650.........................65
    Table TABWG                                                                   
    ==============     
    Trans.Type grp. ...........Curr.-yr.acq. transaction                                                             
    64                                                                            
    65..................................................X      
    The difference between this 2 transaction types 640 and 650 is the sign TABWG-XZUGNE (Current-year acquisition transaction) in the transaction type group.                                                                               
    2. Please see the text passage from 13221 point 2:                                                                               
    2.  An incorrect depreciation key is used. Manual depreciation and        
        automatic calculation of the same depreciation type are mutually      
        exclusive.                                                            
        If another depreciation must be set in addition to the automatically  
        calculated depreciation, there has probably been an unplanned         
        depreciation.                                                         
        If the asset should have only manual depreciation, please use         
        another depreciation key, for example, 'MANU'.     ..."      
    regards Bernhard

  • Firefox won't open, instead a pop-up says something like, "You already have one copy running. You can only use one copy at a time. ( It happens repeatedly (I am using a iMac 10.4.11)

    I'm trying to open Firefox because, was told the FireFTP is great to use in getting my (completed on iWeb) Website up and running, but I can't even get Firefox to open up, no matter what I have tried. What is it I am doing wrong or missing?!.

    Thank you, thank you, thank you!
    I uninstalled it, closed FF in Safe-Mode, reopened it and, ta da!
    THANK YOU!

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

  • I have iPhone 3G, iTunes 10.5, offered to upgrade the version of the phone, after which you can only make emergency calls. Help! ! ! I'm in a panic!

    Yesterday iTunes 10.5 offered to upgrade the iPhone 3G to the version of I don't know, most likely to the new. After that, the screen of the cable and the icon iTunes, you can only dial emergency calls. What to do? How to get back to the previous version, or at least to do so would the phone began to work? I'm from Russia, so you need the Russian version. Help please! Describe all of the items what to do... I'm in a panic!

    Sounds like this was a hacked iPhone...hacked to unlock it so you could use it where you live. One of the big downsides to hacking an iPhone, to unlock it, is that updating software or restoring the phone will re-lock it to the carrier it was originally locked to. This appears to be what has happened to you. You have two choices to fix things: 1. Get the phone officially unlocked, or 2. Re-hack it to unlock it(sorry, can't be discussed here). Good luck.

  • You can only post in new year after closing the previous year.

    Hi,
    I got error "You can only post in new year after closing the previous year." when I tried to run depreciation for first time for a company.
    In OAAR, it was noted that FY2008 already closed.
    Please advice.

    I understand you did the asset upload in 2008 and want to run the first depreciation run for 2009?
    In that case have a look in your take over data settings: SPRO:
    Financial Accounting / Asset Accounting / Asset Data Transfer / Parameters for Data Transfer /  Date Specifications / Specify Transfer Date/Last Closed Fiscal Year
    This should be 31-12-2008 (if the calendar year is the same as the fiscal year)

  • When my phone turns on it goes to the normal screen for 1 second and then it gets very large so you can only see a few icons

    When I turn my iphone on, the usual main icon screen shows for about a second and then it blows up so you can only see a few icons at a time.  How do you turn this off?

    Your phone might be on Zoom somehow, try just the simple "gestures" fix
    Double tap with 3 fingers on the screen, then drag down. That should at least zoom out. If that does not work, try scrolling through the screen, but using 3 fingers instead of 1.
    From there you should be able to access Settings>General>Accessibility>Zoom>OFF
    Hope this helps

  • I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe

    I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe product installing.  I have used the Adobe Cleaner Tool many times and uninstalled other Adobe Products but neither has worked.  I have uninstalled/reinstalled this CD version of Dreamweaver several times when changing computers and after having computer issues. A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.  Please help.

    A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.
    Absolutely not. You are misinterpreting things. The activation check never happens when just running the installer, only much later. It means what it says - there is another "install" pending/ active on your system, meaning somewhere there is an (invisible) process still blocking things. Either way, since you haven't provided any real technical info, we can't advise specifically. if you are on Windows, you may want to check your task manager and terminate any setup.exe and msiexec.exe processes plus potentially may need to manually fix/ delete some registry keys. For anything beyond that you will have to be much more specific.
    Mylenium

  • How can you put a setting that you can only move to a next slide by clicking on the forward button?

    I am very sorry if there is somewhere already given an answer
    to this but can somebody help me please?
    When I use a space, enter or click in my quiz, they move on
    to the next slide without answering the previous question
    completely. How can I make sure that you can only move on to the
    next slide with clicking on the forward button???

    quiz preferences --> Settings --> Required: Answer
    all

  • I get this pop up when trying to make a photo book in the iPhoto store. Some or all of the photos you selected were downloaded from your published albums. You can only view these photos. To use them in an album or a slideshow or project, you must import t

    I get this pop up when trying to create a photo book through the iPhoto store.  
    "Some or all of the photos you selected were downloaded from your published albums. You can only view these photos. To use them in an album or a slideshow or project, you must import them to your photo library."
    The photos I have selected have already been imported so how and why do I do it all over again?
    What do they mean by published albums?  I categorize them into photo albums for organizational purposes after I import them from my camera or phone. So why can't I put them into a book now?
    I have over 400 photos selected for a photo book for my child's graduation gift so how can I tell which photos I have to do this to?
    Please help. Any insight wouyld be appreciated.
    Confused and frustrated...

    Give this a try:  apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    OT

  • I got a new Kobe and i am unable to register it on Adobe, when I log in to my account I receive the following error message "you can only authorize this computer with an Adobe ID that hasn't been previously used to authorize any other computer or mobile d

    I got a new Kobo and tried to register it so that I can download books from the public library. When I tried to register my device I received the following message " You can only authorize this computer with an Adobe ID that hasn't been previously used to authorize any other computer or mobile devices. Please try again.

    Please refer to Can't authorize with a previously used Adobe ID

  • Some or all of the photos you selected were downloaded from your published albums. You can only view these photos. To use them in an album or a slideshow or project, you must import them to your photo library.

    I was trying to Import photos from my Facebook photo to my MacBookAir and now all i got is lots of back round photo. Please Help me out to delete them.Some or all of the photos you selected were downloaded from your published albums. You can only view these photos. To use them in an album or a slideshow or project, you must import them to your photo library.

    What that's telling you is that some of the photos you want to use are not in your Library but online in a gallery you have linked to. You need to download them first.
    Regards
    TD

  • My iPod screen broke and I bought a new one, how do I get iTunes to un-recognize the old one (i heard you can only have 5 devices).

    I have  new iPod Nano.  I want to set it up w/ the same name as my old one.  I heard you can only hve 5 devices, so since I'll never use the original one again, how do I get iTunes to know that it is no longer?

    You do not need to do anyhting.
    You can sync as many devices as you like.

  • Depreciation run problem."You can only post in new year after closing the"

    Hi,
    We are implementing Asset accounting to one of our co code.New Assets were created in Jan and when I tried to Post depreciation for Jan, I get an error log that says "You can only post in new year after closing the previous year."
    When i double click on error message.
    Diagnosis
    You want to post in a new fiscal year. However, a posting must have been made in the last period in the previous fiscal year before you can do this.
    Procedure
    Post to the last period in the previous year first.
    So I went ahead and opened the previous year, posted the depreciation, closed the year and tried to post Period 1 again, but still get the same error.
    Why do I need to post the previous period if I just created the assets in this period?
    I Have completed AJRW, AJAB also.
    I think it may be a problem with Table. Please suggest me.
    Thank you

    Hi,
    Please check the following :-
    1. Check the Last Closed year in your Asset Accounting.
    2. Check the Last Depreciation Posted in Your Asset Accounting.
    These 2 menus are available in "Data Transfer in Fixed Asset Accounting".
    revert back to me for further actions,
    regards
    N.Kumar

Maybe you are looking for

  • New feature in CS-4

    A few mont ago I saw a new feature in cs4, I'm not sure if it is here in dreamweaver or in photoshop itself... I'll try to explain. This device gives to the people on a website the possibility to navigate into a bigger image on my server, when you zo

  • Sun Directory Server attribute userPassword and SSHA

    I am trying to write my own java code to validate an input plain text password against the corresponding encoded value as it appears on the Sun One directory server attribute 'userPassword'. For example the userPassword attribute value might look lik

  • RBL exceptions

    Hi. We are using Iplanet 5.2 p2 on Solaris 8. We were using some RBL lists and everything was ok and the spam reduces like 90%. Now we have a problem, some servers are reported like spamers but we want to receive emails from them, and we want a speci

  • How do I properly set up a config file?

    Sorry if this question is trivial but I'm new to SSIS. I have a DLL that I'm linking to my SSIS application.  When I try to read Configuration settings from my Config file via code in my DLL such as below:   Config.MHLServiceSettings MHLSettings = (C

  • Customize Single sign on

    I tried the metalink note for customizing single sign on and when i run the custom login it doest redirect to the users home page, its simply dies. Can some explain the parameters in the package portal30_sso.wwsso_app_admin. ls_login site2pstoretoken