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 996
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
"WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message
news:A7******** *************** ***********@mic rosoft.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
"WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message
news:A7******** *************** ***********@mic rosoft.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******** ******@tk2msftn gp13.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 "WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message news:A7******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP15.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******** ******@tk2msftn gp13.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 "WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message news:A7******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP15.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******** ******@tk2msftn gp13.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 "WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message news:A7******** *************** ***********@mic rosoft.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***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:e2******** *******@TK2MSFT NGP10.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******** ******@TK2MSFTN GP15.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******** ******@tk2msftn gp13.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 "WebBuilder 451" <We***********@ discussions.mic rosoft.com> wrote in message news:A7******** *************** ***********@mic rosoft.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 will probably use a hyperlink with a unique ID, but I also want to
know how to go about reading from a mailbox with Php so I can use an
email reply...
|
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
User1@here.whatever and User4@here.whatever but if "Loaded" is chosen
it needs to email User2@here.whatever and User3@here.whatever, etc,
etc...
...
|
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 vSQLText, vThreadName As String
Try
vThreadName = Thread.CurrentThread.Name
cFunctions.WriteEventLog("starting report on thread: "
|
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, zSbxT7FSCIAEAAAAA@birdsall.com, rQEAAAAA@birdsall.com, 20a.9ea7bfe.306372db@birdsall.com, Gslotnick@birdsall.com, chrisbaker@birdsall.com, mshawver@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, emai2@dot.com, email3@dot.com"
$header .= "To : email@notset.com\r\n";
|
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 seems to work fine. I first looked at the
mimetools modules but it says it is depreceated since 2.3, so I started
trying to use the email module. ...
|
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 criteria would always be used as ANDs and never ORs. I am not sure what the best method would be to do this. I can use one mutli-select list box to run a...
|
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". In other words, when
user@y.com received the email, it will be from user@a.com, but will
contain a reference that it was forwarded by user@x.com.
...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |