String concated from right
From: Bolla Sándor (bolla_at_mkmcom.hu)
Date: 03/17/05
- Next message: Richard Caruana: "Re: How to re-populate DBgrid after doing a search"
- Previous message: Jeff Howard: "Ado Query Inner Join"
- Next in thread: Brian Bushay TeamB: "Re: String concated from right"
- Reply: Brian Bushay TeamB: "Re: String concated from right"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 17 Mar 2005 17:44:33 +0100
Hi folks,
I have a strange problem, I want to copy some records from a FoxPro
database into a MSSQL database using ADO (ODBC) and D7, I wrote the code
but in some cases I get the ODBC error that the string was concatenated
from the right (something like this in hungarian language), but the
record was not saved in the MSSQL table. What could cause the problem?
is there a limitation of ODBC using streams, or delphi limitations on
strings?
I have a sample code: qFox and ADOQ are TADOQuery components of a kind:
var ss : TStream;
...
with ADOQ do begin
...
ss := qFox.CreateBlobStream(qFox.FieldByName('memo'), bmRead);
ss.Seek(0,soFromBeginning);
Parameters.ParamByName('MEMO').LoadFromStream(ss, ftString);
..
ExecSQL;
bye
Sanyi
- Next message: Richard Caruana: "Re: How to re-populate DBgrid after doing a search"
- Previous message: Jeff Howard: "Ado Query Inner Join"
- Next in thread: Brian Bushay TeamB: "Re: String concated from right"
- Reply: Brian Bushay TeamB: "Re: String concated from right"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|