Truncation of Argument with ADo Components
From: Norman McFarlane (normanATredpointDOTcoDOTza)
Date: 01/19/05
- Next message: Jeff Howard: "TAdoCommand1 Create Table"
- Previous message: JMG: "Re: oncalcfield event handler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Jan 2005 17:35:11 +0200
Hi all,
I have encountered and interesting and frustrating problem with the ADO
components in D7.
Specifically, when I pass a string argument which is destined for an image
column in the DB into a parameterised INSERT query, only the first character
finds its way into the column. I am using a TADOCommand component to do the
insert. I've had this problem in the past, and overcome it by using a stored
proc which accepts a VRCHAR input parameter, the argument of which is posted
into an image column. I would, however, like to solve this problem without
resorting to using a stored proc.
I have taken a look at the value of the parameter in the IDE before I
execute the INSERT statement, and it is complete, but only the first
character ends up in the DB.
Does anybody have any ideas?
The DB backend is MS SQL 2000 Enterprise.
Regards,
Norman
- Next message: Jeff Howard: "TAdoCommand1 Create Table"
- Previous message: JMG: "Re: oncalcfield event handler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|