Is it possible to create an Access database in C# using ADO.NET?
Yes you can by adding ADOX reference and : Code: ADOX.CatalogClass cat = new ADOX.CatalogClass(); cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\dbase.mdb;Jet OLEDB:Engine Type=5");
ADOX.CatalogClass cat = new ADOX.CatalogClass(); cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\dbase.mdb;Jet OLEDB:Engine Type=5");
Thanks ledaker; this post provides discussion of the code you have just provided: http://vbadud.wordpress.com/2007/11/...lly-using-ado/ In addition, you can query MASTER and create your database using SQL statements.
Mohammad Elsheimy [email protected] [email protected] Just Like a Magic the magic inside the machine http://JustLikeAMagic.Wordpress.com
Forum Rules