Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 6 of 6

Thread: Stored Queries more than 200 chrs in length.

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    4

    Default Stored Queries more than 200 chrs in length.

    There appears to be a limit of about 200 chrs in the Query field of 'Stored Query Maintenance'. Also one cannot use '..and Field1 in ('val1', 'Val2', ..)' as one might in standard SQL.

    Together, these restrictions means that I cannot enter a complex query that I required.

    Is there any way around this ???

  2. #2
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Did You try escaping the ' ?

    \'
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Posts
    4

    Default

    Thanks for response.

    Not sure what ' symbol you are suggesting I escape.

    The query I want to store is:

    flag=true and category#"Fault" and ((flag.noc="NOC LHR" or flag.noc="NOC" or flag.noc#"NOC Shift")
    or assignment="NOC LHR" or assignment="NOC" or assignment#"NOC Shift") or (secondary.assignment="NOC LHR" or secondary.assignment="NOC" or secondary.assignment#"NOC Shift"))

  4. #4
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Sorry misread. Try "isin" and then the list.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  5. #5
    Junior Member
    Join Date
    Oct 2002
    Posts
    4

    Default

    Sorry, still won't parse:

    (flag=true and category#"Fault" and flag.noc isin ("NOC LHR", "NOC Shift Leader"))

    (apm.list.problems,select)
    Invalid syntax for query. Failed parsing (apm.list.problems,select)
    Unrecoverable error in application: apm.list.problems on panel site.test

  6. #6
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    Quote Originally Posted by msimonis
    Sorry, still won't parse:

    (flag=true and category#"Fault" and flag.noc isin ("NOC LHR", "NOC Shift Leader"))

    (apm.list.problems,select)
    Invalid syntax for query. Failed parsing (apm.list.problems,select)
    Unrecoverable error in application: apm.list.problems on panel site.test
    try

    Code:
    (flag=true and category#"Fault" and flag.noc isin {"NOC LHR", "NOC Shift Leader"} )
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts