Re: Dynamically Add a column to a table
From: Frank Hickman [MVP] (fhickman_NOSP_at_M_noblesoft.com)
Date: 02/14/05
- Next message: tawright915: "Can someone help with this SQL statement"
- Previous message: Neil B: "Dynamically Add a column to a table"
- In reply to: Neil B: "Dynamically Add a column to a table"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 14:49:01 -0500
"Neil B" <NeilB@discussions.microsoft.com> wrote in message
news:5AD43F45-B46D-4E2A-8ACB-1F9FC9FD5F47@microsoft.com...
> I'm developing an app in C++ using VS.net. I've created the database for
> my
> app using MS Access. I query the database using CDataBase and CRecordSet
> classes.
> I need to add a new column to databases that were created using back level
> copies of the program. I've never done this via C++. Could you point me at
> some documentation and sample code. Or give me the class and methods to
> use
> to do this???
>
> Thanks,
> Neil
You cannot do this with CDatabase/CRecordset. You need to use ADO/ADOX.
The MSDN which came with VS.Net has multiple examples of using ADOX.
-- ============ Frank Hickman Microsoft MVP NobleSoft, Inc. ============ Replace the _nosp@m_ with @ to reply.
- Next message: tawright915: "Can someone help with this SQL statement"
- Previous message: Neil B: "Dynamically Add a column to a table"
- In reply to: Neil B: "Dynamically Add a column to a table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|