ms access - create database using C#? -


is possible create access database on c:\ drive on click event of button ???

yes can. duplicate.

to create access database c# code use adox: - how create access database using adox , visual c# .net:

using system; using adox;  namespace consoleapplication1 {     class class1     {         [stathread]         static void main(string[] args)         {             adox.catalogclass cat = new adox.catalogclass();              cat.create("provider=microsoft.jet.oledb.4.0;" +                    "data source=d:\\accessdb\\newmdb.mdb;" +                    "jet oledb:engine type=5");              console.writeline("database created successfully");              cat = null;          }     } } 

[to create sql server database c# code use sql server management objects (smo).]


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -