Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# and databases

C# and databases

Scheduled Pinned Locked Moved C#
csharpdatabasehelptutorial
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Star09
    wrote on last edited by
    #1

    Hello, I have basic knowledge when programming with C#. And I need help in how to connect and access a database such as MS Access to retrieve data. Please show me a sample code, or point me to any resources that explain this simply. Thank you.

    R C 2 Replies Last reply
    0
    • S Star09

      Hello, I have basic knowledge when programming with C#. And I need help in how to connect and access a database such as MS Access to retrieve data. Please show me a sample code, or point me to any resources that explain this simply. Thank you.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      This[^] is an excellent resource. /ravi

      My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

      S 1 Reply Last reply
      0
      • R Ravi Bhavnani

        This[^] is an excellent resource. /ravi

        My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

        S Offline
        S Offline
        Star09
        wrote on last edited by
        #3

        Thank you, sometimes google confuses me rather than helping me.

        R V 2 Replies Last reply
        0
        • S Star09

          Thank you, sometimes google confuses me rather than helping me.

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Note, I wasn't trying to be facetious. Because your question is so general, Googling for a tutorial on accessing databases with .NET is a good way to get started. /ravi

          My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

          S 1 Reply Last reply
          0
          • S Star09

            Thank you, sometimes google confuses me rather than helping me.

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Star08 wrote:

            google confuses me rather than helping me

            It would confuse you but it would not leave you in a lurch. It is a test of endurance and perseverance. Refining your queries should bring you some light at the end of tunnel.

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            1 Reply Last reply
            0
            • R Ravi Bhavnani

              Note, I wasn't trying to be facetious. Because your question is so general, Googling for a tutorial on accessing databases with .NET is a good way to get started. /ravi

              My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

              S Offline
              S Offline
              Star09
              wrote on last edited by
              #6

              I know you weren't. And I really meant thank you. I would've googled c# db ms access and added + and "" and I would've probably confused myself and won't reach a satisfying search result.

              R 1 Reply Last reply
              0
              • S Star09

                I know you weren't. And I really meant thank you. I would've googled c# db ms access and added + and "" and I would've probably confused myself and won't reach a satisfying search result.

                R Offline
                R Offline
                Ravi Bhavnani
                wrote on last edited by
                #7

                See these 2 articles (esp. the first one):

                • Using ADO.NET for beginners[^]
                • MS Access Application With C#[^]

                Hope this helps! /ravi

                My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

                S 1 Reply Last reply
                0
                • S Star09

                  Hello, I have basic knowledge when programming with C#. And I need help in how to connect and access a database such as MS Access to retrieve data. Please show me a sample code, or point me to any resources that explain this simply. Thank you.

                  C Offline
                  C Offline
                  cycnus
                  wrote on last edited by
                  #8

                  One of the cool things with Visual Studio is that you can just drag and drop an Access database (either MDB or the new ACCDB format for Access 2007) to the solution explorer to add the database to your project. After a few seconds you will be presented with a wizard to help you through the steps of importing the tables from your database into typed datasets to use in your code or to bind to controls. It's great for experimenting and get you started with databinding. Renaud

                  Blog blog.nkadesign.com Articles etc.nkadesign.com

                  1 Reply Last reply
                  0
                  • R Ravi Bhavnani

                    See these 2 articles (esp. the first one):

                    • Using ADO.NET for beginners[^]
                    • MS Access Application With C#[^]

                    Hope this helps! /ravi

                    My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

                    S Offline
                    S Offline
                    Star09
                    wrote on last edited by
                    #9

                    The first one is exactly what I'm looking for, thank you very much!

                    R 1 Reply Last reply
                    0
                    • S Star09

                      The first one is exactly what I'm looking for, thank you very much!

                      R Offline
                      R Offline
                      Ravi Bhavnani
                      wrote on last edited by
                      #10

                      Awesome - glad to be of help! /ravi

                      My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups