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. How to build my own database?

How to build my own database?

Scheduled Pinned Locked Moved C#
databasetutorialquestion
3 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.
  • F Offline
    F Offline
    fu0
    wrote on last edited by
    #1

    many anti-virus softwares have they own virus database for scaning. also i want to build my own database for scaning. But i dont know how to build one. and how to search items quickly in the database?

    A H 2 Replies Last reply
    0
    • F fu0

      many anti-virus softwares have they own virus database for scaning. also i want to build my own database for scaning. But i dont know how to build one. and how to search items quickly in the database?

      A Offline
      A Offline
      Aryadip
      wrote on last edited by
      #2

      hi, You can build your own database using datset object. Create a table and clolumns as you require and then populate the dataset as and when required with the necessary data. You can persist the dataset as an XML file and reinitialize it by reading from XML file. In dataset it is possible to run a "select" query and retrieve the data like anyother databases. If your database is simple name-value collection then you might think of using or extending HashTable class... Hope this answers your query. regards, Aryadip. Cheers !! and have a Funky day !!

      1 Reply Last reply
      0
      • F fu0

        many anti-virus softwares have they own virus database for scaning. also i want to build my own database for scaning. But i dont know how to build one. and how to search items quickly in the database?

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        What Aryadip suggested is hardly quick, depending on the volume you expect to fill your data structure. A virus definitions database, for example, would be far too much for a local DataSet. Designing your own database requires a good working knowledge of data structures. I suggest you get a good book from Amazon or a university near you about data structures, or take a class if possible. This is well beyond the scope of this or any forum, since some knowledge is required. There are file-based alternatives out there that would be quicker. The Jet Database (aka - though incorrectly - as Access databases) provides a file-based relational database management system (RDBMS) where you can use ADO.NET. Using an MDB doesn't require that you have Access installed (though it's handy to design the empty database). Access is just an application that uses Jet databases. There's several other file-based databases as well - just http://www.google.com[^].

        Microsoft MVP, Visual C# My Articles

        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