Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

C# and SQL Server Query

  • 14-01-2008 08:50PM
    #1
    Registered Users, Registered Users 2 Posts: 40


    Hi Folks,

    I've just started trying to teach myself C# programming and am trying to create a program that connects to a SQL database. i am creating the whole program, database included from with in Visual Studio 2008.

    I've created the database and a front end to connect to it. The program compiles ok and I can enter data into the database from it. However everytime i re-compile the code the data is lost and I have to start with an empty database again. Is this normal or should the data be staying in the database?

    I have been using the databinding properties of text boxes and combo boxes to make the connection to the database rather than code.

    Any help would be appreciated as it is annoying having to enter all the data everytime I compile the program to test something.


Advertisement