473,385 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Accessing data without using database (.Net 2005).

88 64KB
Is it possible to add, edit, view and delete records using a file only (instead of
a database) and .Net 2005 (VB.Net/C#)?
The concept is that a file that'll work more-or-less like a database. One can add, edit, view, delete and query data to and from the file. The file, either cannot be opened directly or data inside the file should be in some encrypted form so that even if the file is opened no one can comprehend it. Data inside the file can only be manipulated by a front end application i.e. .Net 2005.

If there's some methodology like this then please refer me some links to tutorials
and whitepapers. Thanks in advance.
Jan 31 '10 #1

✓ answered by Curtis Rutland

I would suggest using XML and encryption. Using LINQ to XML you can handle updating, inserting, and deleting very easily.

But I think your best bet would be to use a compact, portable DB. Something like sqlite.

3 1645
tlhintoq
3,525 Expert 2GB
I suppose one could use a simple text file, but encrypt the lines of data in it.

But to add, edit, view, delete, and query... That's another story.
One would have to have single-use access to the text file.
Adding is a simple file.append
Deleting would mean read it all into memory, remove the one entry, then write it all back out.
Query would mean reading it all in then search for what you want.
Edit would be much like deleting, read it all in, make a change, write it all back out.

Some of that could be avoided if every record were a fixed length. Then you could seek to a given point and write a change. But that deleting still means re-writing the entire file.

So the short answer is 'yes', it could be done. But the reality is that it would quickly become unreasonable if you had more than a simple list of delimited fields. And it is totally impractical if you need more than one person to have simultaneous access.

There are many articles on encryption. Just google for "MSDN Encryption"

http://support.microsoft.com/default.aspx/kb/307010
http://msdn.microsoft.com/en-us/maga...55.aspx?ppud=4
Jan 31 '10 #2
Curtis Rutland
3,256 Expert 2GB
I would suggest using XML and encryption. Using LINQ to XML you can handle updating, inserting, and deleting very easily.

But I think your best bet would be to use a compact, portable DB. Something like sqlite.
Feb 2 '10 #3
priyamtheone
88 64KB
Yeah XML is one of the best options. Most peers suggested this way. Sqlite is also another good option. There are certain scenarios where DBMS like MSSQL or Oracle is too expensive and needs large setup. Portable DB like Sqlite serves the purpose well indeed. Thanks anyway.
Feb 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Samuel R. Neff | last post by:
What options are available for doing full-text searches of database data without using a database-specific full-text engine? The only option I've found is Google's Search Appliance but it's an...
3
by: mamatha | last post by:
Hi I have one VB application,in that one form consits of textbox. Textbox conatains some data,i want to copy and paste that data into another application without using clipboard oprations.How...
1
by: Roy | last post by:
Hey all, Someone I know is doing a one-time job for a rent-to-own business that involves making an inventory management/order tracking tool. Only problem: the client does not have sql server....
0
by: Lemune | last post by:
Hello everyone. I'm creating windows service application to capture data from my PABX, and send the data to sql server. My question is how could my application know when that PABX is sending data...
1
by: vishuvv | last post by:
Is that possible to make a Crystal reports without using database/dataset in vb.net 2005
0
by: S_K | last post by:
Hi, I have a problem in which we need a ton of reports running against an AX system and we need allot of people building reports using SSRS (sorry Report Builder won't work for us). The problem...
1
by: lisles | last post by:
Can somebody tell me how to put values from a hidden field into a grid without using a database on click of add button.basically im entering some values into textboxes and i've to put these values...
2
by: scottb777 | last post by:
I have two MS Access 2003 databases on the same server but in separate shared folders. I’m attempting to setup up a repetitive process that will access all fields and records from a table in MS...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.