This query eithr has a syntax error or is using features of the langauage not suported in design view

can anybody tell me what's wrong with this, please:
SELECT DISTINCT SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client FROM sms_r_system inner join SMS_UpdateComplianceStatus
ON SMS_UpdateComplianceStatus.machineid=sms_r_system.resourceid
WHERE SMS_UpdateComplianceStatus.LastEnforcementMessageID = 9

Line 4 should probably be
SMS_UpdateComplianceStatus.resourceid=sms_r_system.resourceid
Sorry Jason, I have to disagree. If you change that line you will get a provide error. The query is fine the way it is, I have personally test it. I didn't validate the results but it does work correct.
http://www.enhansoft.com/

Similar Messages

  • Session keeps running when the query has a syntax error

    I have a weird scenario.
    Take this query for example: select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6));
    This query has a syntax error as there is an additional bracket at the end. I know that. When I run it on STJOSE database the session keeps running and never returns. Even if I stop it, it does not. I try to disconnect, it says "Connection is currently busy. Try again?" This behavior is pretty consistent on STJOSET. If I run this query on UMASS database it gives me this error (as expected)
    ORA-00933: SQL command not properly ended
    00933. 00000 - "SQL command not properly ended"
    *Cause:   
    *Action:
    Error at Line: 1 Column: 99
    I do not know what is wrong with the STJOSE database connection that causes the session to hang and never return.
    Please help.
    -Nags
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production (both databases)
    SQL Developer Version 3.0.04 Build Main-04.34

    This does not happen in sql*plus. It does not hang. It returns a proper error message.
    HSI@stjose> select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6));
    select distinct physassignednum from hsi.docdeficiency where delinqlevel> 0 and dfcystatus in (1,6))
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    HSI@stjose>

  • Query getting  /crystal/ Program SYNTAX ERROR.

    Hi All,
    I connected to SAP BEX Query using MDX driver. when i execute query getting  /crystal/ Program SYNTAX ERROR.
    I imported these  crystal transports R21900741,786,695,754,780 .
    but got error for R71K900087 .
    MY SAP BW system version is SAP BW701 SP10 , Please suggest.
    Thanks,
    Joseph

    Thanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
    So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
    webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
    and it throws up the error
    "The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
    I have no idea why it is throwing up this errror....

  • Report RV13A032 has a syntax error

    When i try to create a Service and Maint contract, when i click Pricing Agreement, i get this error Report RV13A032 has a syntax error
    Would any one know the source

    It means that program RV13F004 has a syntax error in the ABAP code.   Is this a generated program when doing condition records?  I think yes, so you probably put some ABAP code in the condition, and it has written it to the generated program, Check the syntax of the coding that you had entered and make sure that it is correct.
    Regards,
    Rich Heilman

  • I purchased a new Lab top and try to install my CS4 software again. I get this message:Setup has encounter an error and cannot continue.

    I purchased a new Lab top and try to install my CS4 software again. I get this message:Setup has encounter an error and cannot continue

    Have a look at this: Re: CS4 Installation on Windows 8.1 Setup error
    Basically install CS4 from a new Admin account.
    Gene

  • Code syntax error in header using a template?

    Now running CS5 DW in a 32 bit Windows/Vista ultimate environment. The improved error messages have brought to light a problem that I apparently have had for a long time but didn't know it as CS4 simply flagged the line but no message.
    Many of my site pages use a template http://a0540807.uscgaux.info/Templates/A0540807_Skeleton_2010.dwt
    If I build or edit a page using this template in CS5, when in code view I see "There is a syntax error on line 57. Code hinting may not work until you fix this error.  Line 57 is within the header of the page and is simply </script>
    But if I simply detach the template from the page, the error goes away and it says no syntax errors.
    So I am confused, is there an issue with the code or is this a Dreamweaver issue dealing with template usage?
    While the error appears cosmetic, I keep wondering what to do to eliminate. Apparently, I have had this situation a long time as Line 57 is also identified back in CS4 but no error message until CS5. Any pointers are appreciated. Thanks.
    Andy

    I don't actually think there is any problem with your page...run one of your child pages through the W3C validator: http://validator.w3.org/ . I cast a page from your template and it came through with flying colors!
    Beth

  • I subscribe to Christian & Jewish Holiday - they are coming to an end this year. Has anyone seen a way to extend them into the next several years?

    I subscribe to Christian & Jewish Holiday - they are coming to an end this year. Has anyone seen a way to extend them into the next several years

    John,
    You could try: American/U.S. Holidays on iCalShare. Note that the link button is not working, but copy/paste is functioning. I just tested it.

  • WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.

    I have two forests with a transitive on-way trust between them: PROD -> TEST (test trusts PROD). I had previously had kerberos authentication working with winrm from PROD to machines in TEST. I have verified the trust is healthy, I also verified users
    in TEST can use WINRM with kerberos just fine. Users from PROD cannot connect via kerberos to machines in TEST with winrm.
    I have verified the service has registered the appropriate SPNs. I ran dcdiag against all my PROD and TEST domain controllers and didn't find anything that would prevent kerberos from happening. I even tried disabling the firewall entirely on my TEST dcs
    but that didn't gain me anything.
    I've enabled kerberos logging but only see the expected errors such as it couldn't find a PROD SPN for the machine, which it shouldn't from what I understand, it should go to the TEST domain and find the SPN from there.
    I'm really out of next steps before I call PSS and hope someone here has run into this and could provide me some next steps.
    PowerShell Error:
    Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.  
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
        + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
        + FullyQualifiedErrorId : PSSessionStateBroken
    winrs Error:
    Winrs error:
    WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.  
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config.

    Hi Adam,
    I'm a little unclear about which SPNs you were looking for, in which case could you confirm you were checking that on the computer object belonging to the actual destination host it has the following SPNs registered?
    WSMAN/<NetBIOS name>
    WSMAN/<FQDN>
    If you were actually trying to use WinRM to connect to the remote forest's domain controllers, then what you said makes sense, but I was caught between assuming this was the case or you meant another member server in that remote forest.
    Also, from the client trying to connect to this remote server, are you able to telnet to port 5985? (If you've used something other than the default, try that port)
    If you can't, then you've got something else like a firewall (be that the Windows firewall on the destination or a hardware firewall somewhere in between) blocking you at the port level, or the listener on the remote box just isn't working as expected. I
    just replied to your other winrm post with steps for checking the latter, so I won't repeat myself here.
    If you can telnet to it and the SPNs exist, then you might be up against something called selective authentication which has to do with how the trust was defined. You can have a read of
    this to learn a bit more about selective trusts and whether or not it's affecting you.
    Cheers,
    Lain

  • Error : 'RepeatingSeparator' is used but either it was not specified or it

    Hi All,
    I am trying to enqueue a EDIFACT ORDERS(version D07B) xml to the IP_OUT_QUEUE and getting the following error.
    Error : 'RepeatingSeparator' is used but either it was not specified or it was suppressed.
    Any pointers on what to check here????
    Regards,
    Praveen
    Edited by: Praveen I on Mar 22, 2010 11:37 AM

    Hi Praveen,
    Not sure if your payload has internal properties, which consists of delimiters. If so, since the delimiters are configured in B2B as well, do not provide the internal properties
    Regards,
    Dheeraj

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • Can not use SUM in a simple query because of a syntax error?

    Hi
    Thank you for reading my post.
    I am trying to execute the following query:
    q = em.createQuery("SELECT SUM((NE.pipeLength - 0.6)+((NE.networkDepth-NE.initialDepth)*0.41)+ NE.standLenght)  FROM NExpansion NE  where (( NE.contract.contractor=:contractor) AND (NE.pDiameter=:diameter))");
                  q.setParameter("contractor", contractor);
    q.setParameter("diameter", diameter);
         l =  (Long) q.getSingleResult();And I get the following error:
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [SELECT SUM((NE.pipeLength - 0.6)+((NE.networkDepth-NE.initialDepth)*0.41)+ NE.standLenght)  FROM NExpansion NE  where (( NE.contract.contractor=:contractor) AND (NE.pDiameter=:diameter))], line 1, column 12: unexpected token [(].
    Internal Exception: line 1:12: unexpected token: (
            at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:389)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.handleANTLRException(EJBQLParser.java:350)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.addError(EJBQLParser.java:278)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.reportError(EJBQLParser.java:378)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.aggregateExpression(EJBQLParser.java:1416)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectExpression(EJBQLParser.java:1158)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectClause(EJBQLParser.java:403)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:178)
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:135)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.parse(EJBQLParser.java:166)
            at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.buildParseTree(EJBQLParser.java:127)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:215)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:189)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:153)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:114)
            at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:99)
            at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:204)
            ... 30 more
    Caused by: line 1:12: unexpected token: (
            at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.aggregateExpression(EJBQLParser.java:1365)
            ... 43 morePlease let me know what am I doing wrong?
    Thanks.

    Hello,
    From the grammar in the JPA spec, SUM only takes a state_field_path_expression which is defined as
    state_field_path_expression := {identification_variable | single_valued_association_path_expression}.state_field
    Please feel free to file an enhancement to have this expanded upon.
    Best Regards,
    Chris

  • Can I prevent the rapid flashing which occurs when testing a Flash movie which has a syntax error?

    I teach games development using Flash Professional CS6, and one of my students has photosensitive epilepsy. He is finding that the 'strobing' effect which occurs when he executes Test Movie on a movie with errors in its script is triggering headaches which can be a precursor to a fit. Obviously this is making it very difficult for him to complete his lab and assignment work. Is there any way of preventing a Flash movie from running if it contains a syntax error?
    I have created a workaround by adding a bunch of extra frames to the start of the movie which will display a "SYNTAX ERROR" message if the script doesn't run - this gives my student a few seconds margin to quite the movie before the strobing begins. I have a single frame at the start with a goto statement which jumps over those error frames if the code doesn't have any syntax errors.
    This seems to be working ok, but it's an ugly solution - does anyone know of a better way to deal with this?
    Thanks.

    1.In Preferences you can check "open test-movie in tabs".
    2. Having done that you could write a jsfl-script which switches the focus (immeadiately after you test the movie) to another tab in the same register card, thus, forcing the possible "corrupt" testmovie in the background. If are no compiler errors , the testmovie can be made available by simply switching to the test-movie tab, if there are compiler errors, you can close it without having to look at it.
    Another option would be to setup FlashDevelop as compiler trigger of Flash.
    You have to change these basic properties in your project:
    FlashDevelop will only launch the test movie if it compiles flawless, inside Flash.
    FlashDevelop will act as a "bouncer" to Flash.

  • Can I prevent the rapid flashing which occurs when testing a Flash movie which has a syntax error in

    I teach games development using Flash Professional CS6, and one of my students has photosensitive epilepsy. He is finding that the 'strobing' effect which occurs when he executes Test Movie on a movie with errors in its script is triggering headaches which can be a precursor to a fit. Obviously this is making it very difficult for him to complete his lab and assignment work. Is there any way of preventing a Flash movie from running if it contains a syntax error?

    Ask in the Flash forums.
    Mylenium

  • Is anyone else surprised that this doesn't throw a syntax error?

    SQL> select d.c1, d.c2 from
      2    ( select dummy c1 from dual ) d,
      3    ( select dummy c2 from dual ) d
      4   where d.c1 = d.c2;
    C C
    X XWorks in 10.1.0.5, 10.2.0.5 and (shame on me) 8.1.7.4 - I don't have an 11.x to try
    Before you ask ...
    This is a distillation from a large query I was looking at where I discovered that I had (by mistake) used the same alias twice in the same where clause - seems like that is legal (and works) provided you don't reference any columns which have the same name in the two objects - in that case you get ORA-00918: column ambiguously defined.
    It sems to me that duplicating an alias like this should be a syntax error.

    Hi,
    It is not an error, Oracle can distinguish the tables because the column names are different. It doesn't use the alias then at all. Read this also: [url http://it.toolbox.com/blogs/oracle-guide/ambiguity-in-sql-42366]Ambiguity.
    Herald ten Dam
    http://htendam.wordpress.com

  • "There is a syntax error on line .. Code hinting may not work untill you fix this error"

    Hi guys, i hope your are all well and happy.
    i have syntax error on new pages created from template  (no errors in template) I use Dreamweave CS5
    Thiis is part of my code:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>| Building and Construction services | Maintenance services | Cleaning services | Buildant Ltd |</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="file:///D|/Local Sites/Buildant/CSS/buildant.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    I have highlited line with red (the dreamweaver telling me that syntax error is on this line)
    Could anybody please help mw with this one
    Thank you

    I copy and pasted your code and got the error. I rewrote the code and it went away. I have had problems in DW with templates that gave me errors when everything was good but the only way to fix it was to redo the template from scratch. Sounds stange, but true. The only other thing, and the experts here might chime in is to put the scripts in comment tags like below.
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>| Building and Construction services | Maintenance services | Cleaning services | Buildant Ltd |</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="file:///D|/Local Sites/Buildant/CSS/buildant.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    I don't get the error now, so I am unsure what to do.
    Jim

Maybe you are looking for

  • Stolen technology

    Hi I have a problem. I know nothing about Java servlets to start with. I am in the process of trying to start a business. I hired someone to work on programming part of the site and this person is making demands on me and has taken the programming wo

  • Coldfusion wont start

    i am using mac os 10.4 with the latest version of coldfusion. I am having problems with starting the server i get a message that says quote: Running command: /Applications/ColdFusionMX7/bin/coldfusion start Starting ColdFusion MX 7... The ColdFusion

  • Function which converts number 1 to √

    Hello people, I recently started Numbers  and I'm in the process of creating a spreadshit to organice various important data concerning my music compositions. I've been trying the following for some days now without any success and I would really apr

  • Limit on Number of Characters in a Cell

    All - I'm new to the iWork suite. Anyway, in MS Excel, there is a limit to the number characters a cell can hold. Something like 256 I think. While you can add more than that to a cell, the text that exceeds the 256 limit will be lost if you try to c

  • Standard Hgrid region

    hi All, i thk previously i confused u ppl a lot....thats why im not getting any replies... im now tryng to tell my problem in a simple way....please help guys..... there is a Hgrid region . when we click on a "GO" button some results for pricelists a