Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello I'm developing project that will use online hosted database .
in my windows forms app , I have some kind of schedule maker which makes notes and schedules based on user . I want to provide login form in this application which will be passed by registered ones and then edit their own notes and information which will be also hosted on online server

I will need :

1 DB for usernames and passwords
and another for personal notes and info , I am not professional with SQL Server , but I will learn , so I need your plans and advices how to complete this part of the project , thanks in advance .

I want DB to be hosted on online server , and how my program will access it ? (also)

OP's additional content moved from non-solution below
as I know MVC needs Windows serverto be hosted , and in my country it's problem , but is it possible to host on free server ?

and also , user need to open browser to look and use my MVC app , needn't they ?

plus in MVC how can I improve design ? like webpage ?
Posted
Updated 25-Nov-12 0:14am
v3

I would suggest entity framework.

However, why use winforms? you could just as easily exapand the range and accessibility of the application, but simple using an MVC web app, coupled with Entity framework.

You could knock up something like this relatively easily using those technologies.

I would suggest you look at http://www.asp.net/mvc[^] and watch the pluralsight videos on the right of the page as well as go through the tutorials.
 
Share this answer
 
Hi as you are using windows application and you want to access DB which is hosted on Server
means if your want to Login then they should have internet connection which can access this account simply in app.config file you need to add DB connection with user name and Password credentials which will authorize user to access that DB from server. before that you need to check for Internet connection available at user machine or not then only he/she would be able to access DB. For Net Connection Check you can use below Code.
C#
public static bool HasConnection()
{
    try
    {
        System.Net.IPHostEntry i = System.Net.Dns.GetHostEntry("www.google.com");
        return true;
    }
    catch
    {
        return false;
    }
} 

Add Db Connection in app Config like Below.
HTML
<connectionstrings>
    <add name="ApplicationServices" connectionstring="Data Source=;Initial Catalog=;Integrated Security=True;username=;password=;">
      providerName="System.Data.SqlClient"  />
  </add></connectionstrings>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900