Re: ADOX - Access table creation with nullable columns.
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 07:22:07 -0400
Andy wrote:
I need to programatically create a mdb file which will contain<sniip>
nullable columns. I am using C++ with ADOX for the table creation
and ADO to perform the table update.
Although ADOX seems to create the table ok, Table->Columns->Appends
does not set the fields as adColNullable as expected.
m_pCol1->Attributes = ADOX::adColNullable; \\Does this work?
It's been a while but I think you have to use the Properties collection (not
the Attributes collection) of the Column object to set the
DBPROP_COL_NULLABLE property to true.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Prev by Date: Re: Can I append an ADO recordset to an Access table in one go?
- Next by Date: Re: ADO 'AddNew' fails to add first record.
- Previous by thread: Re: Can I append an ADO recordset to an Access table in one go?
- Next by thread: Re: ADO 'AddNew' fails to add first record.
- Index(es):
Loading