GUID Parameters
Posted: Wed 20 Aug 2008 05:42
SDAC: 4.50.0.36
Codegear C++ Builder 2007
I am using SDAC with a SQLCE 3.5 database and I am trying to fill a table that has a UNIQUEIDENTIFIER field type using parameters. I initialise the parameter by:
This gives the error: 'Requested conversion is not supported. [,,,,,]'.
As far as I can tell this is the way to handle a GUID type, or is there another way?
Thanks for any help
Steve
Codegear C++ Builder 2007
I am using SDAC with a SQLCE 3.5 database and I am trying to fill a table that has a UNIQUEIDENTIFIER field type using parameters. I initialise the parameter by:
Code: Select all
exec->SQL->Text = "INSERT INTO Element (guid) VALUES (:GUID)";
exec->ParamByName("GUID")->DataType = ftGuid;
exec->ParamByName("GUID")->ParamType = ptInput;
exec->ParamByName("GUID")->AsString = Sysutils::GUIDToString(id);
exec->Execute();As far as I can tell this is the way to handle a GUID type, or is there another way?
Thanks for any help
Steve