thread102-747014
I wish to parameterise a TADOCommand on a table with spaces in the field names (e.g. 'Well Test Type'). For a SQL Server query I have used the following CommandText:
INSERT INTO table "Well Test Type" VALUES
"Well Test Type");
However, when I try to get a value for the field using:
Parameters.ParamByName('Well Test Type').Value := SomeValue;
I get the following error:
ADOCommand: Parameter 'Well Test Type' not found.
Everything works fine if no spaces in the field name. I have tried a range of delimiters but no success to date. Any ideas?
I wish to parameterise a TADOCommand on a table with spaces in the field names (e.g. 'Well Test Type'). For a SQL Server query I have used the following CommandText:
INSERT INTO table "Well Test Type" VALUES
However, when I try to get a value for the field using:
Parameters.ParamByName('Well Test Type').Value := SomeValue;
I get the following error:
ADOCommand: Parameter 'Well Test Type' not found.
Everything works fine if no spaces in the field name. I have tried a range of delimiters but no success to date. Any ideas?