Is this a DW limitation?

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Is this a DW limitation?

    Hi, guys.

    I have this very long sql statement that works perfectly in Query analyzer,
    and even in the asp page I made. I added it in DW by using Bindings (Dataset).
    When I tested the query in that Bindings(Dataset) window, it showed me correct
    results and without a problem. But when I hit the OK button, it appears in the
    bindings window(small window on the right side of the screen) that there's a
    syntax error in Line 2 using ISNULL.

    I have used ISNULL twice in that query. And honestly, I dont see any problem
    with it or the query itself.

    Can anyone help me on this, please? I can post the query here if needed.

    Please reply. I really need your expert help.

    :confused;

    newbiejane Guest

  2. Similar Questions and Discussions

    1. OCR and 144 DPI limitation
      Hi, I try to do an OCR on an image but it says that it can't because the image's resolution is bellow 144 DPI, but I exported the image from Flash 8...
    2. Limitation
      Hi, Is there any limitation for the maximum number of clip and variables in Flash ? Because i wonder if it's possible to use it to handle 275000...
    3. Yon limitation
      I set my camera Yon to any huge number, and still can't see lingo-created sphere's that are a mere 30000 units away. The help says the default for...
    4. CustomValidator limitation?
      I have one CustomValidator that compares 2 password fields together, and the other that checks for a contact method and its correspoding details...
    5. TAR command 2GB limitation
      I think there is a patch (10?) for 4.3 will resolve the file size limit. Another solution is to upgrade to 5L. "Louis" <nospam@nospam.nl> wrote...
  3. #2

    Default Re: Is this a DW limitation?

    I've never known dreamweaver to give a spurious error message unless I
    edited the recordset code myself. If you haven't edited the page code at
    all, then please post the query so we can take a look.

    "newbiejane" <webforumsuser@macromedia.com> wrote in message
    news:e4hr8i$fd6$1@forums.macromedia.com...
    > I have used ISNULL twice in that query. And honestly, I dont see any
    > problem
    > with it or the query itself.

    Lionstone Guest

  4. #3

    Default Re: Is this a DW limitation?

    Here's the query.

    SELECT
    ISNULL(LEVEL1,PC) as company,
    ISNULL(BRAVO.PLEV,ALPHA.PRIORITYLEVEL) as pl,
    COUNTER,
    AGE,
    PERCENTAGE_SLA,
    WITHINSLA,
    TOTAL
    FROM
    (Select
    A.PRIORITYLEVEL,
    C.Client_Co_Name as PC,
    Count(A.client_company_ref) as Counter,
    max(A.AGE) as Age
    from
    (select
    c.call_priority as PRIORITYLEVEL,
    s.name as GROUP_NAME,
    c.call_number as CALL_NUMBER,
    datediff(mi, timedate_call_log, getdate()) as AGE,
    client_company_ref
    from logtable c join supportteam s
    on c.assign_group = s.ref
    where c.open_flag = 1 and (c.ref_composite in
    (select ref_composite from cl_problem_type where ref_1 = 1)
    And c.partition in (1,2)
    or (c.partition = 20 and c.ref_composite = 2756 and c.call_ref = 'logged
    online')))A
    Join ClientsTable B
    On A.client_company_ref = B.client_co_ref
    Join ClientsTable C
    On B.ref_1 = C.client_co_ref
    Group by C.Client_Co_Name, A.PRIORITYLEVEL) ALPHA
    FULL OUTER JOIN
    (Select
    D.CLIENT_CO_NAME as LEVEL1,
    B.call_priority as PLEV,

    CONVERT(VARCHAR,Round((Convert(float,sum(A.WITHINS LA))/Convert(float,sum(B.tot
    al)))*100,2)) +'%' as percentage_SLA,
    sum(A.WITHINSLA) as WITHINSLA,
    sum(B.total) as TOTAL
    from
    (select
    call_priority,
    c.client_company_ref as COM_REF,
    count(timedate_call_log)as WITHINSLA
    from logtable c join supportteam s
    on c.assign_group = s.ref
    where datediff(d, c.timedate_call_log, getdate())=0
    and (c.partition in (1,2) or (c.partition = 20 and c.ref_composite = 2756))
    and ((call_priority=1 and datediff(mi, timedate_call_log,
    first_call_time)<=15)
    or (call_priority=2 and datediff(mi, timedate_call_log,
    first_call_time)<=60)
    or (call_priority=3 and datediff(mi, timedate_call_log,
    first_call_time)<=120))
    group by c.client_company_ref, call_priority) A
    RIGHT OUTER JOIN
    (select
    call_priority,
    c.client_company_ref as COM_REF,
    count(timedate_call_log) as total
    from logtable c join supportteam s
    on c.assign_group = s.ref
    where datediff(d, c.timedate_call_log, getdate())=0
    and (c.partition in (1,2) or (c.partition = 20 and c.ref_composite = 2756))
    group by c.client_company_ref, call_priority) B
    on A.call_priority = B.call_priority and A.COM_REF = B.COM_REF
    Join ClientsTable C
    On B.COM_REF = C.client_co_ref
    Join ClientsTable D
    On C.ref_1 = D.client_co_ref
    Group by D.Client_Co_Name, B.call_priority)BRAVO
    ON ALPHA.PC = BRAVO.LEVEL1 AND ALPHA.PRIORITYLEVEL = BRAVO.PLEV
    order by company,pl

    As I mentioned earlier, it works perfectly in Query Analyzer and during the
    test in DW. I get the results. But when I click the Ok button in the Dataset
    window, it loads then I see an error message saying "MM_Error:Line2:Incorrect
    syntax near 'PLEV'. The only thing that comes to mind is the PLEV variable in
    The ISNULL statement.

    I am really getting confused and frustrated because i know it works. Please
    help.


    newbiejane Guest

  5. #4

    Default Re: Is this a DW limitation?

    Thats... quite a query.
    Anyway, I don't think DW itself interprets the query at all; I think it
    actually tries to run it, so what you're describing is a bit strange. I
    can't think of why the second ISNULL would trip it up, either. Do you have
    a parameter called PLEV, perhaps? That would cause problems. Or the line
    number could be wrong, and it's being tripped up by one of your table
    aliases (you have a couple with no space between the closing parenthesis and
    the alias).

    Because of the strangeness of it all, and especially because of the length
    of the query, I'd suggest transferring this to a stored procedure and then
    calling the stored procedure. It should alleviate any hiccups in the query
    interpretation.


    Lionstone Guest

  6. #5

    Default Re: Is this a DW limitation?

    Thanks for your help. As it turned out, my boss wants to change some criteria for this and I had to create a different query.
    Just wanted to say I really appreciated your help.

    newbiejane Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139