Problem with bit field using MS Sql server and Turbo Delphi 2006
- From: Andy Stephenson <info2004@xxxxxxxxxxxxx>
- Date: Mon, 25 Feb 2008 18:57:17 +0000
Hi,
Using ado to connect to this database, I am getting an error when executing a procedure.
EOleException: Error converting data type varchar to bit
There is only one bit field, and it is being set as:
ThisValid : boolean;
if (something) <> 0) then
ThisValid := true
else
ThisValid := false;
Parameters.ParamByName('@gps_validity').Value := ThisValid;
There are lots more parameters than this one in the stored proc.
I noticed that the parameter list did not match the order as defined in the stored proc, so I cleared the list and re added them. Now the list matched the order in the stored proc, and I don't get the error now!
So, is the ADO implementation sensitive to order of the parameters? Could it be that one parameter is stamping on another if the types are not identical?
Any ideas please.
Thanks,
Andy
.
- Follow-Ups:
- Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- From: Joachim Uersfeld
- Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- Prev by Date: Used a reserved word in a field name.....
- Next by Date: Re: Used a reserved word in a field name.....
- Previous by thread: Used a reserved word in a field name.....
- Next by thread: Re: Problem with bit field using MS Sql server and Turbo Delphi 2006
- Index(es):
Relevant Pages
|