Results 1 to 6 of 6

Thread: Database Confusion

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    395

    Database Confusion

    Ok so I am looking to create an online chat/messaging membership software with .net but am confused at the choices I have. In visual studio the way it is currently setup I have these options:

    Microsoft Access Database File
    Microsoft ODBC Data Source
    Microsoft SQL Server
    Microsoft SQL Server Database File
    Oracle Database
    <other>

    ok but I have always used and am familiar with mysql as this is what I use with my web hosting and wordpress so I went to mysql.com
    and it seems I have 3 choices here:

    MySQL Installer
    MySQL Connectors - Connector/NET
    MySQL for Visual Studio

    Hoping someone can kind of specify the differences and help me figure out what would be best for me in this situation, and by situation I mean an SQL database on a hosted server that will be secure and able to handle a lot of queries for a busy Chat/Messaging service. Would the other database choices offer anything different than MySQL?

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

    Re: Database Confusion

    I'm not quite sure why you need to ask here rather than read up on the MySQL web site to find out what each of those does but here goes:
    Quote Originally Posted by DreamWarrior77 View Post
    MySQL Installer
    That would install MySQL itself, i.e. the database server.
    Quote Originally Posted by DreamWarrior77 View Post
    MySQL Connectors - Connector/NET
    That provides a DLL (maybe multiple, not sure) that contains the types used to connect to and communicate with a MySQL database from .NET code. For example, it includes the MySql.Data.MySqlClient.MySqlConnection class for making a database connection that is equivalent to System.Data.SqlClient.SqlConnection for SQL Server, etc.
    Quote Originally Posted by DreamWarrior77 View Post
    MySQL for Visual Studio
    That provides tools that integrate into Visual Studio to help you develop against a MySQL database. It includes things like typed DataSet and Entity Framework support. These components used to be part of Connector/Net. I'd expect this to add MySQL to the list of data source options you posted above but I've never used it so I'm not sure.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    395

    Re: Database Confusion

    ok Thanks, I'm going to just install MySQL for Visual Studio..

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    395

    Re: Database Confusion

    Just installed and will do some research on usage in the morning but wondering about it because it asks for connection details so I am wondering if I should create an SQL database on my web host and just enter the details in visual studio OR somehow create it on my PC and then upload it to my web host? Does this matter? It seems it gives me some advanced options via visual studio that I am not sure if I have the option of setting via my web host.. I would assume this might be somewhat important.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,347

    Re: Database Confusion

    Quote Originally Posted by DreamWarrior77 View Post
    I am wondering if I should create an SQL database on my web host
    Depending on your definition, either every database is a SQL database or there's no such thing. SQL is a language that (pretty much all) databases use, not a database itself.

    If you want to develop for MySQL databases and you want actually test your code then obviously you need a MySQL database to test against. That database can be anywhere: on your machine, on a server on your network or in the cloud. As long as you can connect to it, you can test your code.

  6. #6
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,538

    Re: Database Confusion

    Quote Originally Posted by DreamWarrior77 View Post
    I am wondering if I should create an SQL database on my web host and just enter the details in visual studio OR somehow create it on my PC and then upload it to my web host? Does this matter? It seems it gives me some advanced options via visual studio that I am not sure if I have the option of setting via my web host.. I would assume this might be somewhat important.
    Yeah, it's kind of important... hosting databsases on the web is a tricky business. Depending on the host, if they've got their stuff together and know what they are doing, won't expose the database publicly to the interwebnettubes. This means you wouldn't be able to access it directly from your app. You would either need to create the databsase locally and then load it to the remote one later, but then if it's a desktop app, you'd still have the same problem, OR.... you'll need to create a set of web api services that sit on the server that you can call/invoke that will then talk to the database and return data back to your app.

    I'm guessing that since it is a chat app, the database will need to be centralized/online somewhere where all clients can access 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??? *

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