elloco999
Well-known member
- Joined
- Dec 21, 2004
- Messages
- 49
- Programming Experience
- 5-10
Hi,
I have written a small program that gets some data from a SQL Server and uses this data to create and send an email for each record.
I use a datareader to get the data from the DB (using a stored procedure). Then reading the datareader line by line I put the data in an array. After that, I close the datareader and create and send the emails. For each email a record is added to another table in the DB (again using a stored procedure).
I would prever to use a dataset to store the data, instead of the array. I tried this when I wrote the program, but couldn't get it to work. Now I want to change the program to use a dataset (or something else if someone knows anything that would do the trick .
If anyone can help me gettting started... The MSDN isn't very clear on this subject. Last time I didn't even get the dataset properly initialized. Any help would be welcome.
Greetz,
El Loco
I have written a small program that gets some data from a SQL Server and uses this data to create and send an email for each record.
I use a datareader to get the data from the DB (using a stored procedure). Then reading the datareader line by line I put the data in an array. After that, I close the datareader and create and send the emails. For each email a record is added to another table in the DB (again using a stored procedure).
I would prever to use a dataset to store the data, instead of the array. I tried this when I wrote the program, but couldn't get it to work. Now I want to change the program to use a dataset (or something else if someone knows anything that would do the trick .
If anyone can help me gettting started... The MSDN isn't very clear on this subject. Last time I didn't even get the dataset properly initialized. Any help would be welcome.
Greetz,
El Loco