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