DMV quesiton. Can not run the DMV query in non system database.

As the title .I can run following query when I use  'use master' , But don't work at the DB which be created my myself.
--Error massage
Msg 208, Level 16, State 1, Line 1
Invalid object name 'SYS.DM_EXEC_QUERY_STATS'.
--SQL Version : 2005
--compatibility level : 90
--The query
SELECT TOP 10
QT.TEXT AS STATEMENT_TEXT,
QP.QUERY_PLAN,
QS.TOTAL_WORKER_TIME AS CPU_TIME
FROM SYS.DM_EXEC_QUERY_STATS QS
CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT
CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP
ORDER BY TOTAL_WORKER_TIME DESC

Yes, you can run the query under none system database.... Make sure that  your db is set 90.....
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

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • Can not run the J2EE application on webless iAS

    Hi:
    I have installed iAS on Salaris, and installed a webconnector on IIS which
    hosted on different machine.
    Now I can run the simple servlet sample, but I can not run the Helloworld
    application that I deployed follow the guide. The error message was: socket
    receive error (RecvBuffer 1)

    Don wrote:
    Hi:
    I have installed iAS on Salaris, and installed a webconnector on IIS which
    hosted on different machine.Wow, I did not know that iAS support IIS as the web server. I think SP3
    will
    allow you to use Apache as well as iPlanet's web server, but I not think
    IIS is
    supported. Perhaps you should use a supported web server.
    Kent

  • PP Procedure is Missing, Can not Run the Preprocessor

    hi experts,
    while executing some module program through TCODE. I got this error  PP Procedure is Missing, Can not Run the Preprocessor
    can any one help me ?
    thanks,
    nag.

    Hello,
    What I thought you meant when you said "Port" was that you were using a Distribution project to move it to other machines.  Therefore you have two options to proceed.
    1)  Copy the nicppaiu.dll from the system folder on your machine to the system folder on another machine you are "Porting" to.
    2)  Add a project to your solution that is a Setup project.  Then add the output of your application to this project and add the MSM discussed earlier.  This will create a MSI that can be used to install your application on multiple machines (it still requires a NI-DAQmx install).
    There is a good topic in our help named "Deploying Measurement Studio Applications" that tells you everything you need to know.
    Regards,
    Jeff

  • Can not run the test form using servlet (patch 8)

    Installed 9I AS 1.0.2.2.1 and forms patch 8 on Windows 2000.
    Configured the Forms Listener Servlet by following the white paper "Forms 6i Patch 8: Oracle Forms Listener Servlet for Deployment of Forms on the Internet".
    I can get the page titled Forms 6i Listener Servlet using URL: http://myserver/servlet/oracle.forms.servlet.ListenerServlet.
    However, I can not run the test form using the servlet by the url:
    http://myserver/servlet/f60servlet?config=servlet. In the formsweb.cfg file I also added a section
    [servlet]
    serverURL=/servlet/oracle.forms/servlet.ListenerServlet
    No meaningful error message. At first it seems very slow, and then shows the "The page can not be displayed" page.
    Please advise.
    Thanks.

    u must add "Script Alias ifcgi60 "$ORACLE_HOME/forms60/cgi" in confirguration.

  • I can not run the account Administrator show me this letter Please help :

    I can not run the account Administrator show me this letter Please help
    http://im40.gulfup.com/4AXHK.png

    Hi,
    You need the administrator permission to enable the built-in administrator account.
     For secure concern, there is no other way to do this.
    Alex Zhao
    TechNet Community Support

  • Can not run the calc scripts by mxl, if the first character is Number

    I found that if you create the calc scrpt like 1abc.csc. You can not run it by mxl. I tried for times but do not know the reason for that. I found that you can use number in the name of the calc scripts(like abc1.csc, a1bc.csc), but not for the first character(like 1abc.csc).
    Below is my mxl scripts:
    ×××××××××××××××××××××××××××××××××××
    login admin identified by password on localhost;
    spool on to 'C:\abc.log' ;
    execute calculation sample.basic.1abc;
    spool off;
    logout;
    ×××××××××××××××××××××××××××××××××××
    I write a bat file below:
    ×××××××××××××××××××××××××××××××××××
    D:\Hyperion\AnalyticServices\bin\essmsh C:\abc.mxl
    ×××××××××××××××××××××××××××××××××××
    I can run the scripts if I change the name "1abc" to "abc1"or "a1bc".
    Of course I can run this calc in EAS, no matter the name is "1abc" or "abc1".
    Anybody find the same problem with me?

    I agree, if ever there was a "best practice" to developing scripts (especially when using variables) it is to enclose in single quotes. I actually use double quote, single quote.
    execute calculation "'$4'"."'$5'"."'$6'";

  • I can not run the depreciation for particular asset which was not acqustion

    Hi Masters,
                     I have created asset master in july 2010 when i did purchase that asset, but i did not post  the asset aqusistion in f-90 up to january. but on remianing all assets i did run the depreciation job  on every month.  Now in january ,  i have openend the posting periods from july to march and post that asset aqusisition f-90 in july psoting period., we are using april to march fiscal year.
                      when i am trying to  run depreciation job repeat run in  afab in test mode from july to december   it showing the error message that, depreciation already done for that proper periods. But in janauary when i am trying to run in test mode, It showing total depreciation amount from july to january , and it hit to only in january month but not to july to december each months.
    Now i want to psot the deprectiation for each month of july onwards to january 2010.
        pelase reply how to do run deprecaiton for that particular asset for each month for july to january

    Hi
    Repeat run you can do only for the last depreciation period. For the asset which you are tryin to post depreciation from July to Jan, please check the asset value date which you have given while posting the transactions or in the asset master.
    If the asset value date is in July, then deprecaition from July - Jan will get posted in the current month depreciation in total. You will not be able to post depreciation individually month wise using AFAB.
    REgards
    Malathi

  • After compile can not run the program

    package MyPack;
    class Balance
    String name;
    double bal;
    Balance(String n,double b)
    name=n;
    bal=b;
    void show()
    if(bal<0)
    System.out.println("--->");
    System.out.println(name+" " +bal);
    class Account
    public static void main(String args[])
    Balance current[] = new Balance[3];
    current[0]= new Balance("xxx", 2500);
    current[1]= new Balance("yyy", 1500);
    current[2]= new Balance("zzz", 3500);
    for(int i=0;i<3;i++)
    current.show();
    here i have written a program on using package after complieing this program, and run this program i get the error of file not found. can u please gide to run this program.

    after writing this program i saved in the folder c:\MyPack\ and run the program from the same folder by using this command first by javac Accounts.java. then, java MyPack.Accounts and i get this error
    exception in thread "main" java.lang. No ClassDefFoundError:MyPack/Accounts. even though i made sure i have the java class file in the same folder.

  • Can we Run the same Query on Infocube and ODS?

    Hi all,
    There is an ODS A, Currently Query_ABC is created on the ODS A,
    The InfoObjects available in the ODS A are also available in the INFOCUBE B.
    I want to delete the ODS A, So can we create the Query_ABC on INFOCUBE B.
    If so, should i create the Query from scratch or is there any other way to copy the Query_ABC from ODS A to INFOCUBE B.
    Please provide your valuable suggestions.
    Thanks,
    Sowrabh

    HI,
    Actually, Structures appear to be "Global" only within a specifi InfoProvider. If you are using RSZC then you are copying betwee providers, so I would expect that the copy may be having a problem wit the internal ID's associated to the Cells, which are probably derive based on the ID's of the rows and columns.
    Since the Structures don't exist in the destination, or don't have the sam ID's then these pieces cannot be rebuilt in the copied query.
    You could try this to get around having to rebuild:
    1) In your source query make a copy in the same provider and remove the Ro and/or Column Named structure references (you don't delete the structure just make the query so it doesn't reference it). You do this b right-clicking on the structure name in the query, and chose the optio 'Remove reference'. This will make your query as if these details wer built directly in the query. Save this revised query.
    2) Copy the revised query to your destination. Since all components wil contain internal ID's without reference to any external component (Structures) it should be able to copy everything.
    You can then re-save the Row and/or Column definitions as structure associated to the destination InfoProvider, if you wish.
    Thanks
    Sreenu

  • Can Not Run the Reprot over the web

    I have this code to run a reprot from a form over the web but i get this error.
    The Report is already added to the reports node in the form moudule.
    In Alert :
    REP-0503 You did not specify the name of a report
    In status Bar:
    Frm-40738 Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null
    My Code:
    DECLARE
    rep_id REPORT_OBJECT;
    rep_server VARCHAR2(40);
    rep_job_id VARCHAR2(200);
    rep_status VARCHAR2(100);
    BEGIN
    rep_id:=FIND_REPORT_OBJECT('report');
    set_report_object_property (rep_id,report_destype,cache);
    rep_job_id:=RUN_REPORT_OBJECT(rep_id);
    rep_status:=REPORT_OBJECT_STATUS(rep_job_id);
    Message('after reprot job status--> report_job_id:= '||rep_job_id);
    if REP_STATUS = 'FINISHED' then
    WEB.Show_Document('http://jalal:8888/reports/rwservlet?Getjobid='||rep_job_id||'&server=test&','_blank');
    -- WEB.Show_Document('http://jalal:8888/reports/rwservlet?report=test.rdf&userid=vmsuser/oracle@orcl&destype=cache&desformat=html&pagestream=yes&server=test&','_blank');
    else
    message('report failed with error message:'||rep_status);
    end if;
    END;
    why i am getting this error message ?

    The problem is that the FIND_REPORT_OBJECT call is not finding the report object. Do you already have this object defined in the Form?
    Regards,
    Danny

  • Re: "Fireworks can not run.The resource files are missing ordamaged"

    Hi,
    I had the same problem on Win XP (Home) and Firework MX after
    a
    complete reinstall of my system.
    There might be two triggers for the problem
    1. I used my regular user account to install most of the
    programs and
    downgraded it afterwards to a limited user account! This
    seems to be a
    bad idea at all!!! Several programs (incl. Outlook, etc.)
    failed to
    start afterwards, because of corrupted user rights (i.e. no
    read/write
    access even for the owner of the files). Allways use an admin
    account
    for installing - don't change the rights of your regular
    account for
    that.
    2. I restored my old macromedia configuration files (located
    in "Lokale
    Einstellungen\<user>\Anwendungsdaten\Macromedia\Fireworks
    MX") by
    copying them directly or using the windows "sicherung"
    (ntbackup). I
    found that the user and group information for that files were
    empty!
    Solution:
    - I completely uninstalled the mx suite (probably fireworks
    would be
    enough) and in addition to that
    - removed all directories not deleted by the installer and
    - cleaned the registry manually from some "Fireworks"
    entries. !!Be
    careful with that!! Have a look at this reg-key first:
    HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\Fireworks
    You probably don't have to delete all the "Edit with
    Fireworks" entries
    and file associations.
    I hope this might help a little.
    By the way - I used the cygwin shell and the "ls", "chmod"
    and "chusr"
    commands to detect and change the user rights of files. This
    was the
    appropriate solution for the problems with all other
    programs.

    New Window:  "Windows Installer:  The feature you are trying to use is on a network resource that is unavailable.  Click OK to try again or enter an alternate path to a folder containing the installation package iTunes.msi in the box below."  (Tried all listed files - non work - same message comes up)
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Can not run the java

    It is very annoying when I type java at the prompt. It gives the following error.
    Error: could not open `C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
    Initially, a variable, qtjava was pointing to this path.
    There was an entry i classpath for qtjava and there was a variable qtjava as well. I removed both of these. There is not qtjava in the list of set now but still when I type java, it displays the above error.
    how this is being invoked when I try to run java?
    Can any one give me some idea why this is hapening? and how to remove? the new java\jdk\bin is in the path? does it have to be in classpath ?
    thanks
    kiran
    Edited by: xmlcrazy on Aug 23, 2009 2:07 PM

    Thank you very much for your reply and link. There was an entry in registry. I am not sure how and why. Once I clean that and reboot the laptop, it is working now.
    I have a few more questions. I am kind of new to java. In fact I have worked a bit in the past but have left for long. So, I am now trying to revive and plannign to go in it as java technology alludes me always. It is not affected due to econymy or other technology.
    I am trying to test generics. When I tried to compile the following code
    import java.util.*;
    public class ArrayListGenericDemo {
    public static void main(String[] args) {
    ArrayList<String> data = new ArrayList<String>();
    data.add("hello");
    data.add("goodbye");
    // data.add(new Date()); This won't compile!
    Iterator<String> it = data.iterator();
    while (it.hasNext()) {
    String s = it.next();
    System.out.println(s);
    I got this error. Why generics does not work in eclipse?
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         The type ArrayList is not generic; it cannot be parameterized with arguments <String>
         Syntax error, parameterized types are only available if source level is 5.0
         The type ArrayList is not generic; it cannot be parameterized with arguments <String>
         Syntax error, parameterized types are only available if source level is 5.0
         The type Iterator is not generic; it cannot be parameterized with arguments <String>
         Syntax error, parameterized types are only available if source level is 5.0
         at ArrayListGenericDemo.main(ArrayListGenericDemo.java:5)
    any suggestion would be highly appreciated

  • Can not run the Business rules with Hyperion Business Rules Desinger

    <p>I created  a business rules with Business Rules Designer,and validate is ok, but when I run it, pop a blank window withtitle "Run Error", how to solve it ?</p><p> </p><p>Thanks</p>

    I would export the rule to essbase and test it there. I should run and the log will tell you something. I would also look at the business rules log to see what it says. <BR><BR>

Maybe you are looking for

  • Background jobs

    Hi,         We can schedule the programs or transactions in background through SM36 and we can see the status through SM37.Then what is the use of FM's JOb_open,Job_submit and Job_close.When we will use these FM's. Can anybody tell me the difference

  • Printer install, test print ok, will not print anything else, cannot select as default printer

    Printer installs fine, test pages, alignment pages, colour print pages all test fine, they are selected to print from the option on control panel. Trying to print from any other program, the printer is not listed as an option. Going through control p

  • HT1473 My iTunes just started not burning my playlists to a CD saying it needs to be reinstalled.  What is wrong?

    My iTunes just started not burning my playlists to a CD saying iTunes needs to be reinstalled.  I do not  know how to reinstall with out that pop-up request.  I checked the latest version under help and I have the latest version.  I do not know how i

  • S10e users, careful how you back up

    Hi folks, first post for me on here. Found this forum after running into trouble with my S10e, ie no recovery program, or at least no access to it!. This may be of help to us in Europe who don't have recovery disks supplied with their Lenovos. Troubl

  • A cobol application and linux driver

    Hi, I'm trying to make work a tiny-cobol application that has embeded sql senteces and queries data from an Oracle Database 9.2, on the same machine with a Linux Advanced Server 8.2 platform. If these two were intalled on a Windows platform, an ODBC