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 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
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
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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.
|
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...
|
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,...
| |
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
|
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,...
|
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...
|
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...
|
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". ...
|
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,...
| |
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: 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...
|
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: 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...
|
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...
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |