Re: JET Database errors
From: Rich Palarea (nospam_at_none.com)
Date: 04/08/04
- Next message: Darrell: "Re: Email from on outgoing email forms"
- Previous message: RA: "Front Page Inventory search"
- In reply to: Kevin Spencer: "Re: JET Database errors"
- Next in thread: Kevin Spencer: "Re: JET Database errors"
- Reply: Kevin Spencer: "Re: JET Database errors"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Apr 2004 11:42:04 -0400
Kevin:
Thanks for the help.
I checked the sql of the page and it appears to be correct. The WHERE clause
specifies ID, which is my primary key for the database record. All records
in the dB have a value, including the one I'm trying to edit (all attempts
to edit any records in any databases on my server give the same error).
Since all of these sites worked before I migrated them, I thought it was
something on the server. Also, other pages with queries are working fine
(so its not a global.asa or dsn issue).
Since my other sites are now having issues, could it be server-based. I have
a copy of JET Database update 4.0, but I'm not going to install it until I
can figure out what version is on the server and what the issue is. This is
a production server...!
Thanks for any other help you can offer.
Rich
"Kevin Spencer" <uce@ftc.gov> wrote in message
news:%23fD55hXHEHA.3032@TK2MSFTNGP09.phx.gbl...
> The first thing I would check for is a syntax error in the UPDATE
statement.
> In other words, rather than not thinking that it is the ASP page that
> FrontPage created, find out. Note that a syntax error can occcur in a
> DIW-Generated ASP page when certainl form fields are not filled in, and no
> client-side validation is performed. The values from the form are
> concatenated into a SQL string, which, if they are empty, may result in a
> syntax error. Example:
>
> UPDATE myTable SET someNumericColumn = someValue WHERE someTextColumn =
> 'someOtherValue'
>
> if "someValue" is empty, the resulting SQL reads:
>
> UPDATE myTable SET someNumericColumn = WHERE someTextColumn =
> 'someOtherValue'
>
> In the case of text, the single quotes delimiting it will prevent this:
>
> UPDATE myTable SET someNumericColumn = someValue WHERE someTextColumn =
''
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Rich Palarea" <nospam@none.com> wrote in message
> news:#v4RgKXHEHA.2744@TK2MSFTNGP10.phx.gbl...
> > I've noticed that since moving a number of sites that use the DIW from
> > shared hosting to my dedicated Windwos 2003 server, I get the following
> > error when trying to update records using the DIW:
> >
> > Database Results Error
> > Description: Syntax error in UPDATE statement.
> > Number: -2147217900 (0x80040E14)
> > Source: Microsoft JET Database Engine
> >
> > I don't think the issue resides in the DIW-generated update.asp file,
> since
> > I just used the DIW to create a brand new application and tested the
> > update.asp file. Got the same error.
> >
> > I'm wondering if it has something to do with the way that my Windows
2003
> > server is setup. When I do a Windows Update on the server, I get the
"all
> > clear" and no updates are available.
> >
> > Are there JET database components that reside on the server that need to
> be
> > updated? Am I on the right track?
> >
> > Thanks,
> > Rich
> >
> >
>
>
- Next message: Darrell: "Re: Email from on outgoing email forms"
- Previous message: RA: "Front Page Inventory search"
- In reply to: Kevin Spencer: "Re: JET Database errors"
- Next in thread: Kevin Spencer: "Re: JET Database errors"
- Reply: Kevin Spencer: "Re: JET Database errors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|