473,387 Members | 1,481 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,387 software developers and data experts.

DataBase

Hi,

I need to create a small application that uses a file to write and
store some data and then uses this data. What I actually need to know
is it posible to create this as a database and create tables in it,
and then read info from this tables with "select" - some kind of a
database, but I need it not to use any SQl server. Just a file to
write in. May be some kind of a .dat file. I heard the Windows has
samething like that build in. So if I uses C# may be I will be able to
use it?
Can someone help me with that.

Thankes.
Nov 16 '05 #1
5 1084
John,

You should be able to make it an MDB file (an access database file). As
long as you have MDAC installed on the machine (which most machines do), you
should be able to access the file through the OleDb data provider in the
System.Data.OleDb namespace.

You should also be able to rename your file to whatever extension you
want, and use that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8**************************@posting.google.c om...
Hi,

I need to create a small application that uses a file to write and
store some data and then uses this data. What I actually need to know
is it posible to create this as a database and create tables in it,
and then read info from this tables with "select" - some kind of a
database, but I need it not to use any SQl server. Just a file to
write in. May be some kind of a .dat file. I heard the Windows has
samething like that build in. So if I uses C# may be I will be able to
use it?
Can someone help me with that.

Thankes.

Nov 16 '05 #2
You can use XML to store the data pretty easily. If you build the tables
with ADO.net you can import or export the data to XML. For a small
application without a real db I think it is better than a flat file.

--
Andrew J. Kelly SQL MVP
"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8**************************@posting.google.c om...
Hi,

I need to create a small application that uses a file to write and
store some data and then uses this data. What I actually need to know
is it posible to create this as a database and create tables in it,
and then read info from this tables with "select" - some kind of a
database, but I need it not to use any SQl server. Just a file to
write in. May be some kind of a .dat file. I heard the Windows has
samething like that build in. So if I uses C# may be I will be able to
use it?
Can someone help me with that.

Thankes.

Nov 16 '05 #3

I am preaty new to ADO.NET, so let me see if I get it right.
So if I have some kind of a DataSet I will be able to save it in a
XML.Next time I start the aplication I will be able to load it in the
DataSet, so whe whole data will be in the memory.
But how I will run a select query against this data set?

And do you know something a databse that comes directly with windows. I
heard something that dbase in the newest version of windows is fully
suported.

Thankes.

Andrew J. Kelly wrote:
You can use XML to store the data pretty easily. If you build the tables with ADO.net you can import or export the data to XML. For a small
application without a real db I think it is better than a flat file.

--
Andrew J. Kelly SQL MVP
"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8**************************@posting.google.c om...
Hi,

I need to create a small application that uses a file to write and
store some data and then uses this data. What I actually need to know is it posible to create this as a database and create tables in it,
and then read info from this tables with "select" - some kind of a
database, but I need it not to use any SQl server. Just a file to
write in. May be some kind of a .dat file. I heard the Windows has
samething like that build in. So if I uses C# may be I will be able to use it?
Can someone help me with that.

Thankes.


Nov 16 '05 #4
It's been a while since I did that but I don't believe you even need a
dataset. I think you can just create a datatable with the columns the way
you want. Then if you populate it with some rows you can save the data as
an XML document (I will look up the method when I get back) on your hard
drive. And later on you can import it back into the datatable. Once it is
in the datatable you can do anything you normally can against it such as
selects, filters etc. It does not matter where the data came from, the
databale behaves pretty much the same. Sorry I don't know anything about
dbase being supported with windows other than there are odbc and possibly
oledb drivers for it now,

--
Andrew J. Kelly SQL MVP
<Jo*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

I am preaty new to ADO.NET, so let me see if I get it right.
So if I have some kind of a DataSet I will be able to save it in a
XML.Next time I start the aplication I will be able to load it in the
DataSet, so whe whole data will be in the memory.
But how I will run a select query against this data set?

And do you know something a databse that comes directly with windows. I
heard something that dbase in the newest version of windows is fully
suported.

Thankes.

Andrew J. Kelly wrote:
You can use XML to store the data pretty easily. If you build the

tables
with ADO.net you can import or export the data to XML. For a small
application without a real db I think it is better than a flat file.

--
Andrew J. Kelly SQL MVP
"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8**************************@posting.google.c om...
> Hi,
>
> I need to create a small application that uses a file to write and
> store some data and then uses this data. What I actually need to know > is it posible to create this as a database and create tables in it,
> and then read info from this tables with "select" - some kind of a
> database, but I need it not to use any SQl server. Just a file to
> write in. May be some kind of a .dat file. I heard the Windows has
> samething like that build in. So if I uses C# may be I will be able to > use it?
> Can someone help me with that.
>
> Thankes.

Nov 16 '05 #5
Actualy I just took a look at one of the projects I played around with in VB
a while back and I did in fact use a DataSet. Take a look at the DataSet
methods for:

ds.ReadXmlSchema("c:\attendees_Schema.xml")

ds.ReadXml("c:\Attendees_Data.xml")

There are also equivelent Write methods as well.


--
Andrew J. Kelly SQL MVP
"Andrew J. Kelly" <sq************@shadhawk.com> wrote in message
news:eW**************@TK2MSFTNGP09.phx.gbl...
It's been a while since I did that but I don't believe you even need a
dataset. I think you can just create a datatable with the columns the way
you want. Then if you populate it with some rows you can save the data as
an XML document (I will look up the method when I get back) on your hard
drive. And later on you can import it back into the datatable. Once it
is in the datatable you can do anything you normally can against it such
as selects, filters etc. It does not matter where the data came from, the
databale behaves pretty much the same. Sorry I don't know anything about
dbase being supported with windows other than there are odbc and possibly
oledb drivers for it now,

--
Andrew J. Kelly SQL MVP
<Jo*********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

I am preaty new to ADO.NET, so let me see if I get it right.
So if I have some kind of a DataSet I will be able to save it in a
XML.Next time I start the aplication I will be able to load it in the
DataSet, so whe whole data will be in the memory.
But how I will run a select query against this data set?

And do you know something a databse that comes directly with windows. I
heard something that dbase in the newest version of windows is fully
suported.

Thankes.

Andrew J. Kelly wrote:
You can use XML to store the data pretty easily. If you build the

tables
with ADO.net you can import or export the data to XML. For a small
application without a real db I think it is better than a flat file.

--
Andrew J. Kelly SQL MVP
"John Arthur" <Jo*********@gmail.com> wrote in message
news:a8**************************@posting.google.c om...
> Hi,
>
> I need to create a small application that uses a file to write and
> store some data and then uses this data. What I actually need to

know
> is it posible to create this as a database and create tables in it,
> and then read info from this tables with "select" - some kind of a
> database, but I need it not to use any SQl server. Just a file to
> write in. May be some kind of a .dat file. I heard the Windows has
> samething like that build in. So if I uses C# may be I will be able

to
> use it?
> Can someone help me with that.
>
> Thankes.


Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cherrish Vaidiyan | last post by:
sir, The following are the steps that i followed in setting up standby database on Red hat Linux 9. i am using Oracle 9i. i have followed the steps in this site : ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
8
by: Kamlesh | last post by:
Hi, How do I know the physical database path of a database. When I goto the DB2INSTANCE users's directory (/home/db2inst1), I see following folders: /db2inst1/NODE0000/SQL00001...
1
by: pintur | last post by:
The message is: SQL1036C Errore di I/O durante l' accesso al database. SQLSTATE=58030 what is the proble? what for restore tables? thanks
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
8
by: morleyc | last post by:
Hi, until recently i was quite happy to add data sources from mssql database in visual studio and drag the datasets directly onto the form this creating a directly editable form which worked well....
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Laurynn | last post by:
# (ebook - pdf) - programming - mysql - php database applicati # (Ebook - Pdf)Learnkey How To Design A Database - Sql And Crystal Report # (ebook-pdf) E F Codd - Extending the Database Relational...
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing anything in advance about it? For example,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.