Re: insert into error
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 17:23:24 -0400
Jim in Arizona wrote:
> Granted, I'm a bit rusty with this stuff but looking at everything
> else i've done for an example, I see no errors but I'm still getting
> one.
> Here is the error I'm getting in IE:
>
> Error Type:
> Microsoft JET Database Engine (0x80040E14)
> Syntax error in INSERT INTO statement.
> /nogo.asp, line 19
>
> I've done a response.write with the SQL statement and I get this
> (wordwrap):
>
> INSERT INTO master (UserName, WorkstationIP, datetime) VALUES
> ('domain\jim','192.168.1.3','5/10/2005 2:08:54 PM')
>
Date/Time literals need to be delimited with #'s in JetSQL.
Of course, it's silly to be forced to worry about delimiters (let alone
unsafe) ...
http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=e6lLVvOcDHA.1204%40TK2MSFTNGP12.phx.gbl
or, if you don't want to deal with saved queries:
http://groups-beta.google.com/group/microsoft.public.inetserver.asp.db/msg/72e36562fee7804e
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: insert into error
- From: Jim in Arizona
- Re: insert into error
- From: Jim in Arizona
- Re: insert into error
- References:
- insert into error
- From: Jim in Arizona
- insert into error
- Prev by Date: insert into error
- Next by Date: Re: insert into error
- Previous by thread: insert into error
- Next by thread: Re: insert into error
- Index(es):
Relevant Pages
|
|