Re: create access tables in C# at runtime
From: Stephen Howe (stephenPOINThoweATtns-globalPOINTcom)
Date: 12/30/04
- Next message: Stephen Howe: "Re: adodb.command, adodb.parameter, date"
- Previous message: Marek: "RE: Saving a crlf in access 2003"
- In reply to: Wilfried Mestdagh: "create access tables in C# at runtime"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Dec 2004 17:46:08 -0000
> I found how to create a database in
> http://support.microsoft.com/kb/317881/EN-US/
>
> But how to create tables with fields, indexes and so at runtime? Some
> examples are very welcome...
Those examples exist under Microsofts MSDN documentation on ADOX.
See here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/admscadoapireference.asp
for ADOX overview
and here
for C++ examples (none for C# that I have found but you should be able to
adapt or translate).
The Create Method, Indexes Append Method and Primary Key properties should
be of interest to you. They all work on the example NorthWind database so
you should be able to modify and test them out.
Stephen Howe
- Next message: Stephen Howe: "Re: adodb.command, adodb.parameter, date"
- Previous message: Marek: "RE: Saving a crlf in access 2003"
- In reply to: Wilfried Mestdagh: "create access tables in C# at runtime"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|