Autor Beitrag
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Fr 02.05.03 07:39 
Hi,
ich krieg ne Krise. Folgendes Statement:
Zitat:
insert into db_content (subID,inhalt,datum,crc32) values (%d, @binmemo, %s, %s)


[Inhalt ist ein Blob (Ole-Objekt)]

Der Parameter wird wir folgt erstellt:
cmd ist vom Typ TAdoCommand auf eine Access-DB. Connection u.s.w. alles ok.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  myDB.cmd.Parameters.Clear;
  TP1:=MyDB.cmd.Parameters.AddParameter;
  TP1.Name:='@binmemo';
  TP1.DataType:= ftBlob;
  TP1.DisplayName:='@binmemo';
  TP1.Attributes:=[paLong];
  TP1.Direction:=pdInputOutput;
  TP1.LoadFromFile('C:\test.txt',ftBlob);


mit dem obigen Statement schiesst sich das ganze mit einer Exception ab wenn ich myDB.cmd.execute aufrufe.

hlp pls

thx
MSch