Click here to Skip to main content
13,293,126 members (97,211 online)
Rate this:
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.

Solution 1

Here is the sample code:

using System;
using ADOX;
namespace ConsoleApplication1
    class Class1
        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;
sandeep nagabhairava 14-Jun-12 21:41pm
hi thanks for ur reply... im using vs2010 in my libraries i unable to find using.ADOX;

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 |
Web04 | 2.8.171207.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2017
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