Results 1 to 3 of 3

Thread: VB 2010 and database on website

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2011
    Posts
    25

    VB 2010 and database on website

    I have an application that connects to a database on my computer. What I want to do is host this database on my website. How would I go about changing the Data Source from a local file on my computer to a database on my personal website (hosted by GoDaddy)? The database is basically for saving the data of a character. The vb application will be the game that a user can install. I just want the data saved to a database on the website instead of on their local machine. Is this easily doable? It is an Access database(.accdb). Thank you.

  2. #2
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: VB 2010 and database on website

    yes you can

    here is a link that might help you

    http://www.codeproject.com/Questions...rom-VB-NET-app

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

    Re: VB 2010 and database on website

    Having looked at it, I'm not sure that biilboy's link will be of use to you. While it is possible to connect directly from a desktop app to a database on the internet (definitely with SQL Server, definitely NOT with Access, maybe with MySQL) it is generally not done because it is rightly considered a security risk. As such, many web hosts simply won't allow it. What you should do is create a web service that will be hosted and connect to the database internally. Your app can then communicate with that web service. You would still not use an Access database, which should really just be used in local, single-user scenarios.
    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

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