Click here to Skip to main content
Rate this: bad
good
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 16: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 at 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 at 14-Jun-12 21:58pm
   
ok ganesan i foud it..
sandeep nagabhairava at 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
0 Maciej Los 245
1 OriginalGriff 210
2 Manfred R. Bihy 190
3 CHill60 180
4 _Amy 155
0 OriginalGriff 7,445
1 Sergey Alexandrovich Kryukov 6,157
2 Maciej Los 3,774
3 Peter Leow 3,448
4 CHill60 2,702


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2014
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