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

Writing from database to file

Hi,

I'm using a SQL 2000 DataBase in my program, and in some cases i need to
bring some information from my dataBase and write it in specific way to a
file. i know how to write to a file, but i wonder which way is the best to do
it? i need to edit the information before i write it to the file, so i guess
i have to store it somewhere, the question is if i'll use a dataSet could i
get to the information directly or should i enter it to a temp DataTable or
DataGrid, or maybe there is another way....

Thanks,
Gidi.
Nov 17 '05 #1
2 1098
Hi Gidi,

Do you need to edit the data via code or via a UI?

Christiaan

"Gidi" <sh*****@hotmail.com.dontspam> schreef in bericht
news:E3**********************************@microsof t.com...
Hi,

I'm using a SQL 2000 DataBase in my program, and in some cases i need to
bring some information from my dataBase and write it in specific way to a
file. i know how to write to a file, but i wonder which way is the best to
do
it? i need to edit the information before i write it to the file, so i
guess
i have to store it somewhere, the question is if i'll use a dataSet could
i
get to the information directly or should i enter it to a temp DataTable
or
DataGrid, or maybe there is another way....

Thanks,
Gidi.

Nov 17 '05 #2
Gidi,

Al you need is

ds.WriteXml(path);
and if you need the schema when readed back (this cost more bytes)
ds.WriteXml(path,XmlWriteMode.WriteSchema);

I hope this helps,

Cor

"Gidi" <sh*****@hotmail.com.dontspam> schreef in bericht
news:E3**********************************@microsof t.com...
Hi,

I'm using a SQL 2000 DataBase in my program, and in some cases i need to
bring some information from my dataBase and write it in specific way to a
file. i know how to write to a file, but i wonder which way is the best to
do
it? i need to edit the information before i write it to the file, so i
guess
i have to store it somewhere, the question is if i'll use a dataSet could
i
get to the information directly or should i enter it to a temp DataTable
or
DataGrid, or maybe there is another way....

Thanks,
Gidi.

Nov 17 '05 #3

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

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
4
by: George Stout | last post by:
First off I do not know alot about writing queries to an Access Database from an ASP page. This is why I need help. I have an Events database for 6 colleges in our metro area. On the homepage I...
0
by: JC | last post by:
I am using Mysql version: 4.0.18-max-log and trying to populate a database from a text file using source option from inside the mysql environment. The population run OK but when creating the...
12
by: Chris Springer | last post by:
I'd like to get some feedback on the issue of storing data out to disk and where to store it. I've never been in a production environment in programming so you'll have to bear with me... My...
7
by: John Pote | last post by:
Hello, help/advice appreciated. Background: I am writing some web scripts in python to receive small amounts of data from remote sensors and store the data in a file. 50 to 100 bytes every 5 or...
2
by: darrel | last post by:
Our production web site went down today. We discovered that it was because the XML file we use to create the site navigation (most all of the controls on every page rely on this XML file) was only...
5
by: UJ | last post by:
I have a system that has five programs that all communicate with each other via Message Queues. Works well. One program is a watchdog that will make sure the others are up and going. Currently I...
16
by: Claudio Grondi | last post by:
I have a 250 Gbyte file (occupies the whole hard drive space) and want to change only eight bytes in this file at a given offset of appr. 200 Gbyte (all other data in that file should remain...
4
by: jackpod | last post by:
Hi, I have been trying to write an image to a database table BLOB field in MySQL but when I try to retrieve the image to display it, it shows as being empty. Are there any special considerations I...
10
by: ConfusedAlot | last post by:
I am having difficulty defining the function prototypes and corresponding parameters when the function is called from main. Any help is greatly appreciated. //The database struct OpAmps { ...
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...
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
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...
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...

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.