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

Integrated Database

Our .net Application requires a table with two columns.
Both columns are text of 40 chars.
The table has to be static, after reseting the application, all
records must still be available. The table could in some cases have
10.000 records, and hase to be as fast as possible (Index).
Is it possible to have a integrated small MSSQL-Database and use SQL?
Or do i have to use a hashtable or a array and load it from a file at
startup, and save it to a file when the program shuts down? If yes, in
what kind of file should i save it?
I am happy about every response!
Thanks in advance,
André
Jul 21 '05 #1
2 2014

"Andrih" <an****@gmx.de> wrote in message
news:93**************************@posting.google.c om...
Our .net Application requires a table with two columns.
Both columns are text of 40 chars.
The table has to be static, after reseting the application, all
records must still be available. The table could in some cases have
10.000 records, and hase to be as fast as possible One choice is to create a dataset and a datatable in it. Store everything
in there. At the beginning to the session, load it from dataSet.ReadXML and
write it out at the end with WriteXML. You'll need to do these frequenty
though to ensure against damage from poweroutages and unintended stuff like
that.
(Index). Is it possible to have a integrated small MSSQL-Database and use SQL? Yes, just submit your changes frequently. Or do i have to use a hashtable or a array and load it from a file at You could do this too, but using a datatable/dataset would be a little more
straightforward code wise in many cases. (I live in ADO.NET though, so I may
be slightly biased) startup, and save it to a file when the program shuts down? If yes, in
what kind of file should i save it? XML is a great choice, text delimmited is also another one without the
overhaed of the xml tags I am happy about every response!
Thanks in advance,
André

Jul 21 '05 #2
Thank you a lot for your response, William!
I understand your suggestion, but there is one thing, that i missed to
say.
There are 2 application running on the same machine at the same time,
that need to read and change the table, wich is a typical task for a
normal database like MS SQL-Server or other.
But the solution must be distributable and so i cannot use MSSQL. My
question is, whether there exists any small integrated database driver
in .net or wether there is any way to integrate a small database in my
app.
Right now my work-around is, that i use your solution with the
difference that i open (ReadXML) the Dataset before any change or read
and save it after any change. But this is very bad for performance and
therfore only works with small datatables.
I am happy every response, even if you tell me, you don´t know any
solution.
André

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message news:<ea**************@TK2MSFTNGP12.phx.gbl>...
"Andrih" <an****@gmx.de> wrote in message
news:93**************************@posting.google.c om...
Our .net Application requires a table with two columns.
Both columns are text of 40 chars.
The table has to be static, after reseting the application, all
records must still be available. The table could in some cases have
10.000 records, and hase to be as fast as possible

One choice is to create a dataset and a datatable in it. Store everything
in there. At the beginning to the session, load it from dataSet.ReadXML and
write it out at the end with WriteXML. You'll need to do these frequenty
though to ensure against damage from poweroutages and unintended stuff like
that.
(Index).
Is it possible to have a integrated small MSSQL-Database and use SQL?

Yes, just submit your changes frequently.
Or do i have to use a hashtable or a array and load it from a file at

You could do this too, but using a datatable/dataset would be a little more
straightforward code wise in many cases. (I live in ADO.NET though, so I may
be slightly biased)
startup, and save it to a file when the program shuts down? If yes, in
what kind of file should i save it?

XML is a great choice, text delimmited is also another one without the
overhaed of the xml tags
I am happy about every response!
Thanks in advance,
André

Jul 21 '05 #3

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

Similar topics

8
by: tcg_gilbert | last post by:
I'm developing a web application for our local intranet that will allow users to pull up a webpage and update or deleted or insert records into a database as well as run reports etc... Our DB...
1
by: Dave | last post by:
Hi, I've read quite a few places where it recommends you use integrated security in your connection string to SQL Server I tried this in test page to connect to the Northwind database by...
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
3
by: Patrick.O.Ige | last post by:
Hi folks, How can i pass credentials to windows integrated authentication. I want to use my credentials from windows authentication and pass it on to different asp.net and asp pages without having...
1
by: Razvan | last post by:
This problem occurs in ASP.Net application, only on Windows 2000. Everything works fine on Windows Server 2003. Here is the scenario: I configured the application to use impersonation and...
2
by: Bob | last post by:
I would like to use integrated security for DB connection for my ASP.NET applications. Since these apps have different databases (SQL Server), I want each app to be able to access its own...
7
by: Henry | last post by:
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that utilizes Crystal Reports. I want to be able to dynamically set the report data source at run time. I'm trying to change...
2
by: Andrih | last post by:
Our .net Application requires a table with two columns. Both columns are text of 40 chars. The table has to be static, after reseting the application, all records must still be available. The...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.