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. Database & SysAdmin
  3. Database
  4. ODBC Connection and Excel Spread Sheet

ODBC Connection and Excel Spread Sheet

Scheduled Pinned Locked Moved Database
databasequestiontutorial
7 Posts 3 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.
  • C Offline
    C Offline
    Cristoff
    wrote on last edited by
    #1

    Sorry to bother you with this question. I'm totally new to this and I don't know what I'm doing :) I want to use an Excel spread sheet as a database. Any ideas how to do it? I think I have to use ODBC but I have no idea how to write the appropriate connection string and how to write a query? I've been googling for some time but I cannot find any information on this topic. Where should I look?

    F 1 Reply Last reply
    0
    • C Cristoff

      Sorry to bother you with this question. I'm totally new to this and I don't know what I'm doing :) I want to use an Excel spread sheet as a database. Any ideas how to do it? I think I have to use ODBC but I have no idea how to write the appropriate connection string and how to write a query? I've been googling for some time but I cannot find any information on this topic. Where should I look?

      F Offline
      F Offline
      Frank Kerrigan
      wrote on last edited by
      #2

      Search codeproject for Excel ADO. It may be better to use Access if you can, then use Excel to pull updated data from the access db.


      Blog Have I http:\\www.frankkerrigan.com

      C 1 Reply Last reply
      0
      • F Frank Kerrigan

        Search codeproject for Excel ADO. It may be better to use Access if you can, then use Excel to pull updated data from the access db.


        Blog Have I http:\\www.frankkerrigan.com

        C Offline
        C Offline
        Cristoff
        wrote on last edited by
        #3

        Thank you for your advice. I've found some information that might be useful. I want to make an application that uses a simple database that does not need SQL server, Access or MS Office installed on the computer. I currently use Excel to do my work but I wan't to be able to do it without it.

        F S 2 Replies Last reply
        0
        • C Cristoff

          Thank you for your advice. I've found some information that might be useful. I want to make an application that uses a simple database that does not need SQL server, Access or MS Office installed on the computer. I currently use Excel to do my work but I wan't to be able to do it without it.

          F Offline
          F Offline
          Frank Kerrigan
          wrote on last edited by
          #4

          You don't need MS access or office on a machine to use an access database with a website.


          Blog Have I http:\\www.frankkerrigan.com

          1 Reply Last reply
          0
          • C Cristoff

            Thank you for your advice. I've found some information that might be useful. I want to make an application that uses a simple database that does not need SQL server, Access or MS Office installed on the computer. I currently use Excel to do my work but I wan't to be able to do it without it.

            S Offline
            S Offline
            Scott Serl
            wrote on last edited by
            #5

            Using an access database is preferable to Excel, and you don't need Access or Office installed. But if you must use Excel, here is an example connection string for you: Provider=Microsoft.Jet.OLEDB.4.0;Data Source="Path\MyExcelFilename.xls";Extended Properties="Excel 8.0;HDR=NO;IMEX=1;ImportMixedTypes=Text" I can't remember what IMEX is, but HDR is whether the first row of data is a header row or not.

            C 1 Reply Last reply
            0
            • S Scott Serl

              Using an access database is preferable to Excel, and you don't need Access or Office installed. But if you must use Excel, here is an example connection string for you: Provider=Microsoft.Jet.OLEDB.4.0;Data Source="Path\MyExcelFilename.xls";Extended Properties="Excel 8.0;HDR=NO;IMEX=1;ImportMixedTypes=Text" I can't remember what IMEX is, but HDR is whether the first row of data is a header row or not.

              C Offline
              C Offline
              Cristoff
              wrote on last edited by
              #6

              Thank you very much for your advice. I've found a sample on this site that seems as an excellent starting point. I'll think about the access database too but creating an sample access database (or anyone) does require MS Access?

              S 1 Reply Last reply
              0
              • C Cristoff

                Thank you very much for your advice. I've found a sample on this site that seems as an excellent starting point. I'll think about the access database too but creating an sample access database (or anyone) does require MS Access?

                S Offline
                S Offline
                Scott Serl
                wrote on last edited by
                #7

                I have not created Access databases fom code in a long time, but it can be done. I think you have to add a reference to ADOX library. Yes, here is a link http://www.freevbcode.com/ShowCode.asp?ID=5797[^] to an example.

                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