Insert giving message on server but not locally

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Insert giving message on server but not locally

    I am getting the following error when I try to insert a record into my database
    on the server:

    Error Executing Database Query.
    Syntax error in INSERT INTO statement.

    The error occurred in
    C:\Inetpub\vhosts\ibfonline.com\httpdocs\admin\add speaker.cfm: line 83

    81 : <cfelse>
    82 : NULL
    83 : </cfif>
    84 : )</cfquery>
    85 : <cflocation url="mainadmin.cfm">




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

    SQL INSERT INTO tblspeakers (speaker1, eventdate, day, details1, speaker2,
    details2, speaker3, sponsor) VALUES ( 'Claims Legal Management for Black Ink
    E&O Insurance' , '03/13/2006' , 'Tuesday' , 'From how to fill out the
    application to how to stay out of court. Black Ink writes policies for 13 out
    of the 14 E&O companies in California. ' , NULL , 'Broker Duty to Issue 1099''s
    for Co-operating Commissions Real estate brokers must generally file 1099-MISC
    forms for commission payments of $600 or more. However, according to
    California''s Franchise Tax Board (FTB), that 1099 reporting requirement for a
    listing broker includes not only the commission paid to the salesperson in the
    office, but also the commission paid to the cooperating broker. Come find out
    the details.' , 'John Buffington, Countrywide Home Loans' , 'Deal Making Skills
    - Using No Coast Loans to Put the Deal Together' )


    --------------------------------------------------------------------------------
    -------------------
    It works fine when I test it on my local machine. I have CFMX 7 and so does
    the server. Anyone know what is up with this? I am using Dreamweaver to
    generate the code.

    Thanks for any help.

    Terry

    hs4u Guest

  2. Similar Questions and Discussions

    1. xml works locally but not on the server
      So I have an html file with a swf in the center which loads pictures and text via XML. It works fine on my own computer but on the actual site it...
    2. SQL Insert Into Giving Me Error
      I am trying to insert a record into an access database using a flash form on the entry page and an insert into clause on the action page. I continue...
    3. INSERT statement giving me no love
      Hi, I've been trying to input data into an access database for a while now, but have had nothing but frustrating errors. I finally figured out...
    4. Setup Web Server Locally
      I'm running Windows XP Professional, have Studio MX 2004 and SQL Server2000 developer. I would like to set up the servers to run locally on my...
    5. works for me locally, not for him on his server?
      Hello. I learned some PHP in the last couple of days and wrote a trivia game and it works on my PC with XP pro and Apache and PHP but on a...
  3. #2

    Default Re: Insert giving message on server but not locally

    It looks fine. Are your development and production cold fusion pages
    connecting to the same database? If not, can you either connect to your
    production db from your development or copy it to your development machine?
    That will make troubleshooting easier.

    One thing that could look better though, is your date value. Using the
    createodbcdate function instead of formatted date strings results in more
    robust applications. That might not be what is causing your problems though.




    Dan Bracuk Guest

  4. #3

    Default Re: Insert giving message on server but not locally

    It is connecting to a copy of the same database on server. It worked on my old
    hosting company but I had to change since they went out of business. Now, the
    update for the membership works fine, just the speaker info insert is giving me
    trouble. I can't see a problem either. I am using the date to sort by so need
    it to be alphabetical. It's the only way I know how to do it.

    Guess I will have to do the page over and see if the glitch goes away.

    Thanks.

    hs4u Guest

  5. #4

    Default Re: Insert giving message on server but not locally

    day is a reserved word and should not be used as a table column name.

    The ANSI compliance options must be different between the two machines. You
    can try using as a stopgap but the best thing to do is to rename DB columns
    and tables so that they do not use
    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000189.htm[/url].

    MikerRoo Guest

  6. #5

    Default Re: Insert giving message on server but not locally

    Well, I renamed the day to dayfield and updated all. The whole site works great
    on my computer and worked fine on the old hosting company. Most things do not
    work on the new hosts server so far. My search is broken, my insert is broken.

    On my local cf server it ALL works without a hitch. I have remade the pages to
    no avail. The hosting co is looking into it as well. If anyone knows why it
    would have trouble, please let me know.

    Thanks, Terry

    hs4u 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