How to Create a new Access database using C#?
-
How to Create a new Access database using C#? i want create a new access database.i don't kown how to write the SQL expression. and i want to kown is there other way to create a new database not use SQL language.beacause i kown there is ADOX in ado2.5 and it can create database.but i can't find anything can create database in ado.net. thanks.
-
How to Create a new Access database using C#? i want create a new access database.i don't kown how to write the SQL expression. and i want to kown is there other way to create a new database not use SQL language.beacause i kown there is ADOX in ado2.5 and it can create database.but i can't find anything can create database in ado.net. thanks.
I'm interested in knowing too. The only other technique I know, and have used before, is to embed a blank database into the assembly and write it out to file using a binary stream whenever a new database is needed. I know, its ugly and bad, but it works. Though if you want to be able to create for different Access versions you'd need to embed each one, which is even more ugly and bad. Also, you can use Interop to access ADOX from C#.
-
How to Create a new Access database using C#? i want create a new access database.i don't kown how to write the SQL expression. and i want to kown is there other way to create a new database not use SQL language.beacause i kown there is ADOX in ado2.5 and it can create database.but i can't find anything can create database in ado.net. thanks.