I can't open a Advantage Database view with sql

Posted on 2009-04-30
Last Modified: 2012-05-06
I made a view in advantage architect, I'm able to open it in architect just fine but when I type: SELECT *
FROM view1

I get an error.

what can I do?

my other views work as normal.
AdsQuery1: Error 7200:  AQE Error:  State = 42000;   NativeError = 2228;  [iAnywhere Solutions][Advantage SQL Engine]Invalid view definition: View1. Unexpected token after the 

view statement.

Open in new window

Question by:yankel1
    LVL 22

    Accepted Solution

    Look carefully at the text of your view statement.  THe error message is indicating that something is not quite right after the view statement.  You might have a doubled up semicolon (been there, done that ;-) or something like that.  If nothing else, compare the end of the failing view with the end of a working view.  

    Author Comment

    but I'm able to open the view in architect that means the view is good!

    also this view worked in the past!
    LVL 22

    Expert Comment

    Let me repeat my point:
    The error message in you original post indicates that there is a problem with something following the end of the SQL statement in the view.  Normally, error messages such as this are generated because of extraneous (often non-displayable) characters following the desired SQL statement.  They are not randomly generated.
    Try highlightinh and copying the SQL in the View to a Notepad window, deleting the viewentirely, and then highlighting the text in the Notepad window and using it to create a new view.
    Cycling the text of the SQL through Notepad will most commonly remove any extraneous trailing (non-displayable) characters.
    also this view worked in the past!
    So, what changed?  Did you modify the view at some point (immediately prior to it starting to fail?).  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Title # Comments Views Activity
    spx for moving values to new table 5 45
    Invalid Identifier Error 3 47
    Access Webapp: Table to Query to Table 14 35
    Php Sql Query 7 19
    SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now