Results 1 to 3 of 3

Thread: [2008] How does this work (installing app with SQL Database?)

  1. #1

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    [2008] How does this work (installing app with SQL Database?)

    Ok, I want to know how this works, I have a database in VS (several), now what happens when I build, and install my application via a project installer, do those databases get installed? or do I have to actually manually create the database in code, so it is created when my app is installed to someone's computer.

    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] How does this work (installing app with SQL Database?)

    If you've added an MDF file to your project and you're attaching that to SQL Server Express at run time then you just distribute the MDF.

    If you have actually created a database in SQL Server then it's up to you to build that database when you install.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Frenzied Member Icyculyr's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    1,934

    Re: [2008] How does this work (installing app with SQL Database?)

    So, I need to create the database via code...

    How would one check if a database exists, I saw nothing about that in my SQL tutorial.

    Cheers

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