🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5355

Re: Empty String Parameters are Illegal in ADO?

#5355
From: J. R. Antley
Date: Sat, 09 Jun 2001 09:06
21 lines
1614 bytes
Hi Arnie,

Don't know all the internals to your setup, but I see stuff like this when
MSAccess' "Required' field is set to 'Yes.'  Could it be something so
simple?

JR

"Arnie Mauer" <arnie@marketexpert.com> wrote in message
news:3b20ed67_2@dnews...
> In a parameterized INSERT statement in a TADOQuery, when setting
> q->Parameters->ParamByName( "foo" )->Value = "";
> will cause q->ExecSQL() to throw an excpetion of: "Parameter object is
> improperly defined.  Inconsistent or incomplete information
> was provided."  Same goes for a NULL AnsiString.
>
> The TParameter Value == NULL and Length == 0.  The DataType
> has been properly set to ftString after the assignment.  What's
> wrong with a NULL string?
>
>
Technical Details
Message-ID: <3b21e6e4_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b20ed67_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,bf8db65ec424c3c9
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-09 02:13:42 PST
From: "J. R. Antley" <jantley@phoenixdsl.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b20ed67_2@dnews>
Subject: Re: Empty String Parameters are Illegal in ADO?
Date: Sat, 9 Jun 2001 03:06:40 -0600
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 199.174.228.193
Message-ID: <3b21e6e4_1@dnews>
X-Trace: dnews 992077540 199.174.228.193 (9 Jun 2001 02:05:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews