Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi experts
how can we create setup file for msAccess2007 accdb? and i hear that it max limit was 2gb, if our data exceeds more than 2gb how can we manage that? bcoz i developed a winform application with msAccess2007 accdb.

thanks in advance...
Posted

1 solution

Here is the sample code:

C#
using System;
using ADOX;

namespace ConsoleApplication1
{
    class Class1
    {
        [STAThread]
        static void Main(string[] args)
        {
            ADOX.Catalog cat = new ADOX.Catalog();

            cat.Create("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;");

            Console.WriteLine("Database Created Successfully");

            cat = null;

        }
    }
}
 
Share this answer
 
Comments
sandeep nagabhairava 14-Jun-12 21:41pm    
hi thanks for ur reply... im using vs2010 in my libraries i unable to find using.ADOX;

thanks...
sandeep nagabhairava 14-Jun-12 21:58pm    
ok ganesan i foud it..
sandeep nagabhairava 14-Jun-12 22:03pm    
but i want to create setup file for my existing Db

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900