Results 1 to 6 of 6

Thread: [RESOLVED] Creating database from vb.net and which DB to use?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Resolved [RESOLVED] Creating database from vb.net and which DB to use?

    I'm working on an application that retrieves data from a remote MS SQL database and need to store some of the information locally for offline retrieval of information later on. Would a local Access database be the best way to handle this?

    Also, where can I find information on creating the database in code?

    Thanks in advance for your help.
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Creating database from vb.net and which DB to use?

    Access would be one way, a local SQL Server (SQL Express) would be another, could also use SQL Compact Edition (SQL CE).

    In the case of Access though, you can't "just create a database" ... you would need to use an existing Access database file, which you could copy, then create tables in it. In that case, I would make an Access database and go ahead and put all the tables in it, then wouldn't have to muss with it later. Then add it as a resource to the app. then when I need to extract it from the resources, save it to the HD, open it, and start plugging data into it.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Creating database from vb.net and which DB to use?

    I would go for SQL Express.
    You would just re-create your db, have it cleared and you're set.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Creating database from vb.net and which DB to use?

    Thanks techgnome and sapator. I'm going to be messing around with the Access method first, since I already have it installed on this machine, and will look at SQL Express as well.

    As far as installing this application on a number of machines, will I have to install Access or SQL Express separately or can this be done through the installation of the application?
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Creating database from vb.net and which DB to use?

    Access would not be need to be installed on any machine, you just supply the access database that you will you. The user will never access the database directly only though ypur application. As for SQL Express yes that will have to be installed on the machine. You can include it as a pre-req so that during install it will be installed on the machine if it is not there.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Creating database from vb.net and which DB to use?

    Thanks Gary. I have a lot of testing and learning to do!
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

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