Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ViperPit
  • Order by date
  1. ViperPit

    Need opinion on this logic

    django, You are right, I left a critical piece out of the code I wrote here (I didn't copy and paste the actual code, but just wrote psuedo code here that would be simpler and more understandable to someone without knowledge of our real structure). The initial lock update query is actually...
  2. ViperPit

    Need opinion on this logic

    We have about 1000 client machines that need regular processing performed, which is done by a bank of 20 servers. We have a table that lists all the client ids, a flag that indicates whether they need processing, and field indicating which server is currently working with that client. A client...
  3. ViperPit

    Datasets cause SMTP Mail to hang?

    Does anyone know of any other ways to send email through .Net that doesn't use the built-in System.Web.Mail I was thinking I could try another mailing technique and see if that fixes the problem. Thanks
  4. ViperPit

    Datasets cause SMTP Mail to hang?

    Well, add to the weirdness... I thought the only thing different between running the code straight through and breaking it between hours was the amount of time. So before the "Next mTemplateHour" line, I put a line to wait for 5 seconds "Sleep (5000)". Ran it straight through and it sent the...
  5. ViperPit

    Datasets cause SMTP Mail to hang?

    Alright, I stepped through the code, going farther each time. I have reached a point where I can replicate the error, but this makes no sense whatsoever! Look for the For loop at the top of the Template_Picker code: For mTemplateHour = 1 To 3 ..... Next mTemplateHour CType(fMainForm...
  6. ViperPit

    Datasets cause SMTP Mail to hang?

    Well, here's an interesting test... Leaving my old SMTP code in place, I stepped into the Template_Picker procedure and this time I executed the first opening of a Dataset, then I skipped down to the line where I dispose of the adaptor and set, and then call the email function. It sent the...
  7. ViperPit

    Datasets cause SMTP Mail to hang?

    To make sure there was not a problem with the server, I replaced your new SMTP code with my old code and then ran the project, skipping the Dataset operations, and it sent the email fine.
  8. ViperPit

    Datasets cause SMTP Mail to hang?

    I read that message about the default of localhost. Since we are specifying a real SMTP server IP address, that shouldn't apply here. Although I did try replacing the IP address with the localhost of 127.0.0.1 and it still got the same error. I also tried a suggestion from that site of changing...
  9. ViperPit

    Datasets cause SMTP Mail to hang?

    It worked yesterday with my old code when I would skip the Dataset part. And it is still working with the VB6 project that is running live on all our servers.
  10. ViperPit

    Datasets cause SMTP Mail to hang?

    Christiaan, I found a really good site with info about System.Web.Mail at http://www.systemwebmail.com They have a section about the "Could not access CDO.Message" error. The first thing they suggest doing is finding the "Inner Exceptions": http://www.systemwebmail.com/faq/4.1.aspx I put the...
  11. ViperPit

    Datasets cause SMTP Mail to hang?

    Christiaan, First off, thank you for putting so much effort into helping me. :) I implemented the changes that you provided. Unfortunately the mail still fails to send. But the good news is that instead of hanging in oblivion, it actually returns and error message! :) When the following line...
  12. ViperPit

    Datasets cause SMTP Mail to hang?

    Look like I finally got it all!! Must be a limit to the number of characters you can post! LOL! Anyway, I duplicated the last line of each post in the first line of the next post. If you copy it all out to paste into an editor so it is readable, you can cut out the extra lines. And that "&n" at...
  13. ViperPit

    Datasets cause SMTP Mail to hang?

    More that got cut of... varFrom = "playlist@clubcom.com" varTo = "brandonmurray@clubcom.com,aljones@clubcom.com" varCC = "blakekercovich@clubcom.com,georgedumaine@clubcom.com,victorwashy@clubcom.com"...
  14. ViperPit

    Datasets cause SMTP Mail to hang?

    It looks like my post got cut off, here is the rest of it from where it left off... varMessage = varMessage & "Channel ID# " & pChannelID varMessage = varMessage & vbCrLf varMessage = varMessage &...
  15. ViperPit

    Datasets cause SMTP Mail to hang?

    Chrissie, here is the code that sends the emails... Option Strict Off Option Explicit On Option Compare Text Imports System Imports System.IO Imports System.Text Imports System.Web Friend Class SMTPMailer Public Sub SendMail(ByRef pFromDisplay As String, ByRef pFrom As String, ByRef pTo...
  16. ViperPit

    Datasets cause SMTP Mail to hang?

    This is really odd, and I'm not how it could even be possible, but here goes... I have a project that was using ADO Recordsets to perform database tasks, and when the procedure completed it would send an email using the built in System.Web.Mail namespace. Now the email does not reference any...
  17. ViperPit

    Can multiple datasets be used with one SQL connection?

    I messed up something in the above post, and don't see a way to edit it, so here is the change... Where it says: ************************************************************ MySQL = "UPDATE tbl_clients SET locked_by_server = " & varServerID WHERE process_flag <> 0 AND locked_by_server Is Null"...
  18. ViperPit

    Can multiple datasets be used with one SQL connection?

    We have a bank of 20 servers that are constantly processing records. Tables that deal with billions of rows. The servers work at the saem time to process batches for hundreds of client machines. One server needs to know if another server has worked on a record while it was processing another...
  19. ViperPit

    Can multiple datasets be used with one SQL connection?

    Sounds good Rick. I saw how to Dispose of individual datatables as well as the whole dataadaptor after you are done with them too. My only other question now, is how do you see if another user has made changes to data, after your initial Fill of the dataset? In old ADO, you would use...
  20. ViperPit

    Can multiple datasets be used with one SQL connection?

    Thanks Rick. I also found something that said it can be done like this: Dim MyDataRow As DataRow For Each MyDataRow In MyDataset.Tables("DataTable").Rows 'Do other code here 'And you can reference fields by their name here using: MyDataRow("field_name") Next MyDataRow That answered both...

Part and Inventory Search

Back
Top