What does it mean when the usecounts of Parse Tree for a view is incrementing when a select query is issued against the view?

I'm using SQL Server 2008 R2 (10.50.4033) and I'm troubleshooting an issue that a select query against a specific view is taking more than 30 seconds consistently.   The issue just starts happening this week and there is no mass changes in data.  
The problem only occur if the query is issued from an IIS application but not from SSMS.  One thing I noticed is that sys.dm_exec_cached_plans is returning 2 Parse Tree rows for the view -  one created when the select query is issued
1st time from the IIS application and another one created when the same select query is issued 1st time from SSMS.   The usecounts of the Parse Tree row for the view (the IIS one) is increasing whenever the select query is issued.  The
usecounts of the Parse Tree row for the view (the SSMS one) does not increase when the select query is issued again. 
There seems to be a correlation between the slowness of the query and the increasing of the usecounts of the Parse Tree row for the view.  
I don't know why there is 2 Parse Tree rows for the view.  There is also 2 Compiled Plan rows for the select query.  
What does the Parse Tree row mean especially the usecounts column?

>> The issue just starts happening this week and there is no mass changes in data.  
There might be a mass changes in the execution plan for several reason without mass changes in data
If you have the old version and a way to check the old execution plan, and compare to the new one, that this should be your starting point. In most cases you don't have this option and we need to monitor from scratch.
>> The problem only occur if the query is issued from an IIS application but not from SSMS.
This mean that we know exactly what is the different and you can compare both execution plan. once you do it, you will find that they are no the same. But this is very common issue and we can know that it is a result of different SETting while connecting
from different application. SSMS is an external app like any app that you develop in Visual studio but the SSMS dose not use the Dot.Net default options.
Please check this link, to find the full explanation and solutions:
http://www.sommarskog.se/query-plan-mysteries.html
Take a look at sys.dm_exec_sessions for your ASP.Net application and for your SSMS session.
If you need more specific help, then we need more information and less stories :-)
We need to see the DDL+DML+Query and both execution plans
>> What does the Parse Tree row mean
I am not sure what you mean but the parse tree represents the logical steps necessary to execute the query that has been requested. you can check this tutorial about the execution plan: https://www.simple-talk.com/sql/performance/execution-plan-basics/ or
this one: http://www.developer.com/db/understanding-a-sql-server-query-execution-plan.html
>> regarding the usecount column or any other column check this link:
https://msdn.microsoft.com/en-us/library/ms187404.aspx?f=255&MSPPError=-2147217396.
  Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]

Similar Messages

  • TS4006 when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"

    when using iCloud between mac and pad, what does this mean - "your iPad will  no longer back up to your computer automatically when you sync with iTunes"
    DONT WORRY EVERYONE, FOUND THE ANSWER I NEEDED FROM ANOTHER POSTING - THANK YOU

    Welcome to the Apple Community.
    You don't need to do anything, you have chosen to back up to iCloud instead of iTunes.
    Being able to back up to the cloud can be very useful, especially if you don't have access to a computer or have infrequent access to one, however unless you specifically need to use iCloud for back up, you will find backing up to iTunes significantly more convenient and possibly more reliable.
    More about iCloud v iTunes Back Up

  • On my iPhone I have downloaded 2 songs when it gets to near the processing bit it says unable to download song?? What does this mean and will I still be charger for it? Thanks

    On my iPhone I have downloaded 2 songs when it gets to near processing stage it says unable to download what does this mean and will I still get charged and I have full connection
    Thanks

    Hey xemily92!
    Try using the information in this link to resume this interrupted download:
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    If you cannot resume the download, you can re-download past purchases using this article:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • What does it mean on itunes to reset all warnings for buying and downloading

    on itunes, what does it mean to "reset all warnings for buying and downloading"

    After you click to make a purchase there can be another pop-up asking to confirm your actions and warning that you playment option will be charged. This box has a "Do not ask me again" option which you may have selected at some point. Reset all warnings should make such suppressed warnings appear once again.
    tt2

  • HT201210 What does this mean? "This device isn't eligible for the requested build"

    the phone and message part of my iphone went down today.  I tried to restore my contactes and this is what I got!

    Can you get a Wi-Fi connection on your iPhone?
    I got an Internet connection on my phone, went to SETTINGS --> GENERAL --> SOFTWARE UPDATE and updated my Software wirelessly (no iTunes involved).
    When I connected my phone to my Computer again and iTunes popped up, it showed that my iPhone software was up to date. Then I could restore to an old back-up.

  • Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What does this mean? I have had this phone for over a year..

    Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What is the issue, had this phone over a year??

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • What does it mean If you reset your content and settings to your iPhone and when you turn it on all it says is iTunes and shows a USB port

    Please help i was trying to erase all of the content and memory off of my old iPhone 4 because I a giving it to my sister because hers broke and I went to settings in my I phone and then I went to general then reset then I selected erase all content and settings and then it turned off put her sim card in turned it back on and and won't go to the home screen all it shows is a USB cord and it says iTunes

    Read http://support.apple.com/kb/ht1808

  • When I try to send photos in email, it fails saying "rejected by the server."  What does that mean and how do I fix it?

    When I try to send photos or anymail, it fails saying...."rejected by the server."
    What does that mean and how do I fix it?

    Please see this article on setting up an email account using the shaw mail server.
    https://community.shaw.ca/docs/DOC-2181
    Good luck Friend.

  • I can't log in to my computer- when it turns on it has a white/gray screen with a flashing folder with a question mark in it.  What does this mean and how can I get it to stop to log in?

    Hi
    I dropped my macbook yesterday and it turned itself off. When I tried to turn it back on all I got was a white/gray screen with a flash folder with a ? in the middle of it?  What does this mean and how do I get it to stop so I can log onto my laptop?

    Deev
    Normally the question mark on the gray screen means it can't find the operating system. Have you tried booting up from the installation DVD? Do that, and when you come to the screen where it wants to begin a system installation you'll notice in the menubar where it say's utilites. Click on that and choose disk utility. from there choose your disk and try to verify and repair the disk. If you can you may want to also try and new install of the system. I don't know how much critical data you have, but reinstalling is an option. did you purcahse you from an Apple store? If you did you may want them to look at it. Hope this helps.
    Regards,
    Joseph

  • What does this mean?  This computer's local hostname "Linda-Daviss-iMac-4.local" is already in use on this network. The name has been changed to "Linda-Daviss-iMac-5.local".

    What does this mean: This computer’s local hostname “Linda-Daviss-iMac-4.local” is already in use on this network. The name has been changed to “Linda-Daviss-iMac-5.local”.
    When I came back to my computer this message was on the screen.  Should I be concerned ? or doing something?

    Sometimes this message means that you have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. Disconnect the Ethernet cable or turn off Wi-Fi.
    Sometimes it happens because a device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    Rename the computer in the Sharing preference pane.

  • When I first plug in my power cord it lights up green and then after a few seconds changes to red.  What does this mean and how do I fix it?

    When I first plug in my power cord it lights up green and then after a few seconds changes to red.  What does this mean and how do I fix it?

    Apple systems in MBP have self-maintaining charging systems.  If the battery is less than 95%, the charger light turns orange when plugged it.  It will charge to 100% and stay green then will hold on charging until the battery drops to 95% again.

  • What does it mean when it is disable for like 22,000,000 minutes?

    when i turned on my ipod for the first time for 3 months it have said it was disable for 20,000,000 minutes what does that mean can i reset it or do i have to get a new one? please i really need the help
    -Thnx
    Victoria Kolasinski

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • So my Ipod will no longer turn on. i leave it on my Ihome and nothing happens. whenever i try to turn it on i get the Apple logo and then it dies and says i should charge it, so i do and it does it again. What does this mean? is my battery totally dead?

    So my Ipod will no longer turn on. i leave it on my Ihome and nothing happens. whenever i try to turn it on i get the Apple logo and then it dies and says i should charge it, so i do and it does it again. What does this mean? is my battery totally dead? please i really need help

    Did you try to charge it using the adapter or your computer?
    If you can, let it charge for about 15min, then connect in recovery mode, described in this article:
    iOS: Unable to update or restore
    If still not luck, your battery might have to be replaced:
    Apple - Support - Service Answer Center

  • I keep receiving an error message when i try to sync my phone of : 1450 What does this mean?

    I keep receiving an error message when I try to Sync my I phone 4.  It says Can't Sync 1450.  What does this mean?  I've had this phone for over a year with no problems.

    Yep. Tried that. And just did it again.
    Still no joy.

  • Icloud encountered an error while trying to connect to the server' what does that mean?

    icloud encountered an error while trying to connect to the server' what does that mean?
    I am trying to get my contacts back by following a step by step guide online, but the falling at the first hurdle! trying to get into my icloud account on my pc?
    Can anyone help?

    never mind the problem is gone this morning.

Maybe you are looking for

  • When I add a folder to my library it doesn't add the song information

    I had to do a factory reset on my Laptop. I had all my music backed up and when I added it to iTunes it was mostly fine but for some reason a handful of albums import into iTunes with little or no track information as show in the picture. The file it

  • Calling a method in AbstractPortalComponent from JSP

    Hi, I have an abstract portal component with 2 methods: 1. doContent - in this, I specify the name of the jsp to be included in the response - umlogonPage, and am setting a portal event named 'fireCRMRFC'. 2. dofireCRMRFC - in this, I specify the cod

  • Purchase Order - Incidental Cost

    Hi there I would like to seek help from you guys. We have read already our config script and other resources here but to no avail. Our problem is after incidental cost is IR (but not yet GR - material and incidental cost) condition tab line items lik

  • How do I fill the center of this in??

    Hi folks, Attached is a backing for a logo I am using. It is swirls that I then put text in the middle. Works and looks fine when I place text and have the middle transparent however I need the middle to be a solid colour also. I may be a little dim

  • Change Retina Mac pro's display to Negative?

    How can I change my new macbook pro retina's screen to negative resolution? i tried control alt command 8. didnt work. I even went to "display" in system preferences. hoping they haven't gotten rid of the function all together. Edit: I just figured i