Click here to Skip to main content
12,631,606 members (31,443 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET Access Microsoft
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 11-Jun-12 17:39pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Here is the sample code:

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;
 
        }
    }
}
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161205.3 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100