Hello,
How would I go about creating a Microsoft Access at runtime. I want the database to be created purley in code. I dont want to embed the database into my exe. Any pointers in the right direction would be very useful :)
Printable View
Hello,
How would I go about creating a Microsoft Access at runtime. I want the database to be created purley in code. I dont want to embed the database into my exe. Any pointers in the right direction would be very useful :)
You would need to use ADOX to create the database in the first place. Once the database exists you could do some things in ADO.NET if you wanted, but it might be just as easy to stick completely with ADOX. Search MSDN and you'll get heaps of hits, but below is a link to some code examples. You've got a choice of VB.NET or C++ I'm afraid, but between them you should be able to convert to C#. There's also a link to a code converter in my signature if you need it, but don't expect it to be 100% reliable.
http://msdn.microsoft.com/library/de...dlexamples.asp
Edit:
I recommend against posting your actual e-mail address where spammers can easily find it.