Results 1 to 8 of 8

Thread: Database in application EXE file

  1. #1

    Thread Starter
    Lively Member sinchan's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    106

    Resolved Database in application EXE file

    Is there any way to store a database in EXE file?
    Last edited by sinchan; Dec 16th, 2004 at 07:43 AM.
    i love VB more than BV(means wife in our language)

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Database in application EXE file

    The answer is NO.

  3. #3

    Thread Starter
    Lively Member sinchan's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    106

    Re: Database in application EXE file

    Quote Originally Posted by RhinoBull
    The answer is NO.
    i love VB more than BV(means wife in our language)

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Database in application EXE file

    If you just need to store the blank database for the first time youur exe runs
    and you are using Access then you could just create one on the fly. In my
    code located here it uses Access and DAO to create a new db, two tables, and a
    relationship between the two.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Database in application EXE file

    sinchan,

    Why would you want to do that In other than a .zip (exe) file?

  6. #6
    Addicted Member
    Join Date
    Nov 2004
    Posts
    171

    Re: Database in application EXE file

    Much thanks to RobDog888.
    I have a project I am working on that required me to create a relationship between two tables through code, and I was totally lost. The code was exactly what I needed.
    Sherminator ~ I'll be back.

  7. #7

    Thread Starter
    Lively Member sinchan's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    106

    Red face Re: Database in application EXE file

    Quote Originally Posted by randem
    sinchan,

    Why would you want to do that In other than a .zip (exe) file?
    DOS based ZIP (PKZIP.EXE, PKUNZIP.EXE) with password protection is stable? I faced lots of problem in past like password courreption.

    But how can I convert ZIP to EXE through VB? Is there any utility which can run through VB?

    This can be very helpful to me, please reply
    i love VB more than BV(means wife in our language)

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Database in application EXE file

    sinchan,

    You don't use DOS based zip files. But if the only thing you want to do is to create a database then the code RodDog888 gave you is fine. The other way to include your database in a exe file is to create a install package to distribute your app with all the items it need to run (including database). In that case try ********** and Inno Setup to create your setup application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width