How to create Access database from C# application?

  • Thread starter Thread starter LuAnn Bradford
  • Start date Start date
L

LuAnn Bradford

Need to create an Access database from my C# application. I have tried
using ADOX, but when I have problems and submit questions to newsgroups,
I get no response. I'm thinking that maybe ADOX is not what others are
using to create Access databases from C#. What are others using? What is
the best approach?

Thanks!
LuAnn
 
¤ Need to create an Access database from my C# application. I have tried
¤ using ADOX, but when I have problems and submit questions to newsgroups,
¤ I get no response. I'm thinking that maybe ADOX is not what others are
¤ using to create Access databases from C#. What are others using? What is
¤ the best approach?

I don't see any of your questions here in this newsgroups. Perhaps you could indicate what kind of
problems you are experiencing and post a code example.

Microsoft provides a very basic example using ADOX:

HOW TO: Create an Access Database Using ADOX and Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;317881&Product=vcSnet


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
¤ Need to create an Access database from my C# application. I have tried
¤ using ADOX, but when I have problems and submit questions to newsgroups,
¤ I get no response. I'm thinking that maybe ADOX is not what others are
¤ using to create Access databases from C#. What are others using? What is
¤ the best approach?
¤

Perhaps you could indicate what kind of problems you are experiencing and post a code example.

Microsoft provides a very basic example using ADOX:

HOW TO: Create an Access Database Using ADOX and Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;317881&Product=vcSnet


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
I have backed off using ADOX for all but the initial creation of the
database. I use ADOX to create the .mdb database file. Once it is
created, I use SQL "CREATE TABLE" statements with the OleDbCommand
object to complete the database schema. I've been able to do everything
I needed to do in the schema with this approach and with less code.
Thanks for the assistance!
LuAnn
 
Back
Top