I'm just evaluating SDAC in order to switch from the current components we're using to SDAC.
The speed is really good, but we still have problems with the usage of blobfields.
The definition in the database is "text" and I tried all kind of solutions, I could find here in the forum. Mostly I get the Error, that the statement couldn't be prepared, sql_variant is incompatible with text...
The SQL statement looks like this
Code: Select all
'UPDATE Generic_Templates SET Template_Data=:Template_Data WHERE TemplateID=:TemplateID';
The code to set the blob parameter for the query looks like :
Code: Select all
Query.ParamByName('Template_Data').ParamType := ptInput;
Query.ParamByName('Template_Data').LoadFromStream(aStream, ftMemo);