473,503 Members | 13,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mutli Email

I'm writting a page to send multi emails (just a few at a time, max 100) once
a day.
should this be done using just a reader, or is there a way to do this with a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
Nov 19 '05 #1
6 991

If all you are doing is reading from the database and not updting it then
the reader is the fastest (one way) and most simple data aquisistion.
HTH
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max 100)
once
a day.
should this be done using just a reader, or is there a way to do this with
a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes

Nov 19 '05 #2
Kes,

That depends. A reader will keep a connection to the database open while
you're looping through the records. If you have a delay built into the loop
that connection may be open a long time.

I would probably put the records directly into a datatable (you shouldn't
need the overhead of a dataset) then the connection will close right away
while your loop runs.

If this is being triggered from a website and is going to take a while to
run you will probably run into timeout issues. You may want to think about
starting up a new thread to run this send routine and then poll that thread
to see when it finishes.

Here's an article on multi-threading in web apps that I think will help you:
http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max 100)
once
a day.
should this be done using just a reader, or is there a way to do this with
a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes

Nov 19 '05 #3
I see your logic regarding loop action extending the time the loop takes to
complete, but my understanding is that the DataReader is quicker natively at
getting the data in that using the full compliment of data objects. I cant
substantiate this with impirical data but I have read as much in several
articles over the last few years.

Am I wrong in this assertion ?, and if so, then why ?

Regards - Mr N
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:eF**************@tk2msftngp13.phx.gbl...
Kes,

That depends. A reader will keep a connection to the database open while
you're looping through the records. If you have a delay built into the
loop that connection may be open a long time.

I would probably put the records directly into a datatable (you shouldn't
need the overhead of a dataset) then the connection will close right away
while your loop runs.

If this is being triggered from a website and is going to take a while to
run you will probably run into timeout issues. You may want to think about
starting up a new thread to run this send routine and then poll that
thread to see when it finishes.

Here's an article on multi-threading in web apps that I think will help
you: http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max 100)
once
a day.
should this be done using just a reader, or is there a way to do this
with a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes


Nov 19 '05 #4
You are correct.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.

"Mr Newbie" <he**@now.com> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
I see your logic regarding loop action extending the time the loop takes to
complete, but my understanding is that the DataReader is quicker natively
at getting the data in that using the full compliment of data objects. I
cant substantiate this with impirical data but I have read as much in
several articles over the last few years.

Am I wrong in this assertion ?, and if so, then why ?

Regards - Mr N
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:eF**************@tk2msftngp13.phx.gbl...
Kes,

That depends. A reader will keep a connection to the database open while
you're looping through the records. If you have a delay built into the
loop that connection may be open a long time.

I would probably put the records directly into a datatable (you shouldn't
need the overhead of a dataset) then the connection will close right away
while your loop runs.

If this is being triggered from a website and is going to take a while to
run you will probably run into timeout issues. You may want to think
about starting up a new thread to run this send routine and then poll
that thread to see when it finishes.

Here's an article on multi-threading in web apps that I think will help
you: http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max 100)
once
a day.
should this be done using just a reader, or is there a way to do this
with a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes



Nov 19 '05 #5
Yes,

It will really depend on how many emails are being sent. A connection
shouldn't be opened for a long time, and therefore it's possible that a
datatable may be the better vehicle in this case.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Mr Newbie" <he**@now.com> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
I see your logic regarding loop action extending the time the loop takes to
complete, but my understanding is that the DataReader is quicker natively
at getting the data in that using the full compliment of data objects. I
cant substantiate this with impirical data but I have read as much in
several articles over the last few years.

Am I wrong in this assertion ?, and if so, then why ?

Regards - Mr N
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:eF**************@tk2msftngp13.phx.gbl...
Kes,

That depends. A reader will keep a connection to the database open while
you're looping through the records. If you have a delay built into the
loop that connection may be open a long time.

I would probably put the records directly into a datatable (you shouldn't
need the overhead of a dataset) then the connection will close right away
while your loop runs.

If this is being triggered from a website and is going to take a while to
run you will probably run into timeout issues. You may want to think
about starting up a new thread to run this send routine and then poll
that thread to see when it finishes.

Here's an article on multi-threading in web apps that I think will help
you: http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max 100)
once
a day.
should this be done using just a reader, or is there a way to do this
with a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes



Nov 19 '05 #6
Thanks for the validation on that point.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:e2***************@TK2MSFTNGP10.phx.gbl...
You are correct.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Big things are made up of
lots of little things.

"Mr Newbie" <he**@now.com> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
I see your logic regarding loop action extending the time the loop takes
to complete, but my understanding is that the DataReader is quicker
natively at getting the data in that using the full compliment of data
objects. I cant substantiate this with impirical data but I have read as
much in several articles over the last few years.

Am I wrong in this assertion ?, and if so, then why ?

Regards - Mr N
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:eF**************@tk2msftngp13.phx.gbl...
Kes,

That depends. A reader will keep a connection to the database open while
you're looping through the records. If you have a delay built into the
loop that connection may be open a long time.

I would probably put the records directly into a datatable (you
shouldn't need the overhead of a dataset) then the connection will close
right away while your loop runs.

If this is being triggered from a website and is going to take a while
to run you will probably run into timeout issues. You may want to think
about starting up a new thread to run this send routine and then poll
that thread to see when it finishes.

Here's an article on multi-threading in web apps that I think will help
you: http://www.ftponline.com/vsm/2002_11...tures/chester/

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"WebBuilder451" <We***********@discussions.microsoft.com> wrote in
message news:A7**********************************@microsof t.com...
I'm writting a page to send multi emails (just a few at a time, max
100) once
a day.
should this be done using just a reader, or is there a way to do this
with a
dataset?
thanks
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes



Nov 19 '05 #7

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

Similar topics

12
8745
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
4
3003
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
88
12319
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
1
1273
by: Steven Thomas | last post by:
I have a windows service that uses office xp automation. Here is the code --------------------------------------- Public Sub CAccessSnapShot() Try Dim objAccess As New Access.Application() Dim...
2
2209
by: BSG-SMTP-Gateway | last post by:
The following message sent by this account has violated system policy: Connection From: 64.253.55.90 From: python-list@python.org To: terriss@birdsall.com, q4dzsAEAAAAA@birdsall.com,...
26
2648
by: libsfan01 | last post by:
Hi all! Can anyone show me how to check and email field on a form for the existence of these two characters. Kind regards Marc
3
2852
by: g0c | last post by:
hi, how to hide or replace email addresses in php mail function with something like "group" so the email addresses to which email is sent are not visible ? i have : $subs = "email1@dot.com,...
3
2504
by: Erik Johnson | last post by:
THE GOAL: I need to send an email with a simple ASCII text body and an attached HTML file. I have scripts that send basic emails via the smtplib module that don't have any attachements and that...
1
1627
by: theSquid | last post by:
I am trying to sort through data in one table using the criteria selected on a form in a few multi-select list boxes. Each list box would be used to sort a different field in the table. The...
15
15138
by: Craig Hurley | last post by:
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact, with the exception of adding "X-Forwarded-For". ...
0
7212
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
7098
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
7364
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...
0
7470
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
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.