Error Executing Database Query.

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Error Executing Database Query.

    The error occurred in
    C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\index.cfm: line 2


    2 : <cfquery name="atrwork" datasource="cftutorial">
    3 : SELECT
    FIRSTNAME,LASTNAME,ARTNAME,DESCRIPTION,PRICE,LARGE IMAGE,ISSOLD,MEDIATYPE
    4 : FROM ARTISTS,ART,MEDIA

    When i start write the <cfquery> tags the following erros appear
    Can you help me please ti silve this problem?




    Mayasa Guest

  2. Similar Questions and Discussions

    1. Error Executing Database Query
      I have a website, which is visited by 18.000 unique users a day, who view almost 900.000 pages As you can see, one user views a lot of pages....
    2. error executing database query on login
      I've noticed we started getting this message when you try to Login to the website. We have recently just installed the CF standard edition 7.0 We...
    3. Error Executing Database Query.Communication link
      Pretty much everyday when I get up now all my coldfusion sites that use MySQL just take forever to load. In fact they never load or even time out,...
    4. another Error executing database query
      Just when I thought I had all my forms finely tuned, I get the error below, which has me stumped (using DrmWeaver 2004, CF7, mysql): Error...
    5. Error Executing Access Database Query
      The query works in 5, chokes in MX7 Error Message: Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'. ...
  3. #2

    Default Re: Error Executing Database Query.

    Hi

    could you post your code and error more clearly?
    vkunirs Guest

  4. #3

    Default Re: Error Executing Database Query.

    Hi,

    I have this same error. Running through the cftutorial and get to this first
    query but getting an error. The debug report is:

    Error Executing Database Query.
    No value given for one or more required parameters.

    The error occurred in
    G:\mxcfusion\wwwroot\CFIDE\gettingstarted\tutorial \index.cfm: line 1

    1 : <cfquery name="artwork" datasource="cftutorial">
    2 : SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE, LARGEIMAGE, ISSOLD
    3 : FROM ARTISTS, ART




    --------------------------------------------------------------------------------

    SQL SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE, LARGEIMAGE,
    ISSOLD FROM ARTISTS, ART WHERE ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID
    = MEDIA.MEDIAID
    DATASOURCE cftutorial
    VENDORERRORCODE 3088
    SQLSTATE &nbsp;

    The code is exactly as per the tutorial and I can see the relevant tables from
    in DW but it appears the query cant connect?

    Any ideas would be appreciated. Is it something in the set up of the database
    connection?

    Peter

    peterdoyle Guest

  5. #4

    Default Error Executing Database Query.

    Hi:-)

    I'm getting the following error when I try to process my insert into/delete
    form:

    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft
    Access Driver] ONLY alpha/numeric characters, 'I','O', and 'Q' are NOT allowed

    The error occurred in C:\CFusionMX\wwwroot\PCNData\PCNDeleteNOW.cfm: line 101

    99 : <CFELSE>
    100 : NULL
    101 : </cfif>
    102 : )
    103 :




    --------------------------------------------------------------------------------

    SQL INSERT INTO deleted_pcn (ref, sfx, gvrn, gvcv, gvmdfr, gvmddt, cp, ci,
    genled, mfgm, mktm, surn, txt ) VALUES ( '0015' , '00' , NULL , 'T' , NULL ,
    NULL , NULL , NULL , 'ME060' , '5302' , NULL , NULL , 'DEMO -SPECIMEN DIE' )
    DATASOURCE PCN
    VENDORERRORCODE -3703
    SQLSTATE HY000

    I'm finding the wording a little obtuse--real fuzzy on where exactly I should
    look for alpha-numeric characters, can someone tell me what exactly I'm
    supposed to be looking at/for???? I've checked my spelling and cannot see any
    errors there, where else should I be looking?????

    Thank you in advance for your help.

    Red

    FusionRed Guest

  6. #5

    Default Re: Error Executing Database Query.

    It sounds like there is a "Validation Rule" on the field "gvcv" that limits the
    values that can be inserted into that column. Open up Access and look at the
    "deleted_pcn" table in design view, and adjust the validation rule as needed.

    mxstu Guest

  7. #6

    Default Re: Error Executing Database Query.

    Many, many thanks. The validation rule was the answer.

    Red;->
    FusionRed Guest

  8. #7

    Default Error Executing Database Query.

    I need help. I encountered this problem.

    The Microsoft Jet database engine cannot open the file '(unknown)'. It is
    already opened exclusively by another user, or you need permission to view its
    data.

    spotrun Guest

  9. #8

    Default Re: Error Executing Database Query.

    Not sure from info but you may need to add a user with appropriate rights to the service on the CF server.
    drforbin1970 Guest

  10. #9

    Default Re: Error Executing Database Query.

    This can happen if the MS Access Database table is open in design mode through MS Access.
    Be sure MS Access is closed and try it again.
    LL@Work Guest

  11. #10

    Default Error Executing Database Query.

    The following error is occuring when I run my file live on the web. It works
    fine on my local host.

    Error Executing Database Query.
    Too few parameters. Expected 1.

    The error occurred in
    C:\Websites\ekezud\wwwroot\NLSLenderLog\newsletter _form.cfm: line 12

    10 :
    11 :
    12 : <CFQUERY NAME="getLoanOfficer" DATASOURCE="lender_log">
    13 : SELECT EmployeeID, FirstName, LastName, OfficePhone, CellPhone, Email,
    Photo, & ", " & AS LoanOfficer FROM Employee ORDER BY & ", " & ;
    14 :



    lons99 Guest

  12. #11

    Default Re: Error Executing Database Query.

    My guess is the problem lies with your order by clause. One doesn't normally use amperdsands in sql.
    Dan Bracuk Guest

  13. #12

    Default Re: Error Executing Database Query.

    How about....

    --this--

    SELECT EmployeeID,
    FirstName,
    LastName,
    OfficePhone,
    CellPhone,
    Email,
    Photo,
    LastName+', '+FirstName AS LoanOfficer
    FROM Employee
    ORDER BY LastName+', '+FirstName

    --or this--

    SELECT EmployeeID,
    FirstName,
    LastName,
    OfficePhone,
    CellPhone,
    Email,
    Photo,
    LastName+', '+FirstName AS LoanOfficer
    FROM Employee
    ORDER BY 8

    Phil

    paross1 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