SQL connection in windows form in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maddy07
    New Member
    • May 2008
    • 5

    SQL connection in windows form in C#

    Hi!!!!!!


    How to store the values entered in text box to the Sql Server.
    And how to retrieve that........... .....
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you need to connect to database for that.

    Comment

    • vanc
      Recognized Expert New Member
      • Mar 2007
      • 211

      #3
      1. Include namespace
      2. Instantiate connection and command
      3. Compose sql insert query
      4. Execute query
      5. Compose sql select query
      6. Instantiate reader
      7. Execute query and store result in reader
      8. Run through reader to get values from database

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        There is a great article on this forum about using a database in your program. Please read through it, try it out, and then if you have problems come back and ask some specific questions.

        Comment

        Working...