SQL Compact and real-type fields
Posted: Wed  09 May 2018 16:14
				
				Having problems with using real values in parameters, SDAC 8.0.5 on Delphi 7.
To reproduce the error, create this table in a SQL Server Compact database:
CREATE TABLE test (col1 nvarchar(128), col2 real)
Place this command in a TMSSQL component:
INSERT INTO test(col1, col2) VALUES (:col1, :col2)
At run time, call this:
dmlMain.Params[0].AsWideString := 'test';
dmlMain.Params[1].AsFloat := 1;
dmlMain.Execute;
This fails with the following error:
'... EOLEDBError with message Requested conversion is not supported.'
Help?
Thanks in advance.
			To reproduce the error, create this table in a SQL Server Compact database:
CREATE TABLE test (col1 nvarchar(128), col2 real)
Place this command in a TMSSQL component:
INSERT INTO test(col1, col2) VALUES (:col1, :col2)
At run time, call this:
dmlMain.Params[0].AsWideString := 'test';
dmlMain.Params[1].AsFloat := 1;
dmlMain.Execute;
This fails with the following error:
'... EOLEDBError with message Requested conversion is not supported.'
Help?
Thanks in advance.