D
Dhar Rawal
Hi,
I am using ADOX with Jet 4.0 to create a database table that has a yes/no
field. I can create the field just fine. I am using VC++ 6.0.
But I just cannot set it's required property to true.
I have tried the following:
1) spTargetColumn->Attributes =
static_cast<ColumnAttributesEnum>(adColFixed); // using attributes
=> This has absolutely no effect
2) ADODB:ropertyPtr spTargetProperty =
spTargetColumn->Properties->Item[variant_t(L"Nullable")]->PutValue(vt_Nullab
le);
=> This throws an exception with the following error description:
"Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done."
I am wondering what I could be doing wrong.
Please help!
Best Regards,
Dhar
p.s. I am a MSDN universal subscriber
I am using ADOX with Jet 4.0 to create a database table that has a yes/no
field. I can create the field just fine. I am using VC++ 6.0.
But I just cannot set it's required property to true.
I have tried the following:
1) spTargetColumn->Attributes =
static_cast<ColumnAttributesEnum>(adColFixed); // using attributes
=> This has absolutely no effect
2) ADODB:ropertyPtr spTargetProperty =
spTargetColumn->Properties->Item[variant_t(L"Nullable")]->PutValue(vt_Nullab
le);
=> This throws an exception with the following error description:
"Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done."
I am wondering what I could be doing wrong.
Please help!
Best Regards,
Dhar
p.s. I am a MSDN universal subscriber