Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2006, 02:43 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permanent Loops...

I'm trying to code an application that sits and checks tables for new entries, and then generates a report that is mailed out based on the new entries. This would require the app to run permanently on the database server, and 'sniff' for want of a better word, the tables.

I'm having all these problems with connection timeouts, runtime errors and the lot and i'm convinced my concept/architecture/flow is incorrect.

My objects are being set to nothing, every one, I've checked. The app has a timer-controlled Sub-Routine which literally loops through the work required.

Can anyone recommend an architecture for setting up this sort of application?

that's how you make it go badeesh!
 
Old September 12th, 2006, 07:10 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Why dont you place a trigger on the table and when data is inserted into the table, have the SQL Server send out the email?

"The one language all programmers understand is profanity."
 
Old September 13th, 2006, 04:50 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What is you database management system?





Similar Threads
Thread Thread Starter Forum Replies Last Post
break for-each loops, or limit amount of loops warhero XSLT 2 July 4th, 2007 02:18 AM
Loops deontae45 VB.NET 2002/2003 Basics 2 September 28th, 2006 03:48 PM
Two Loops iloveoatmeal Classic ASP Basics 5 September 26th, 2005 09:59 AM
While loops and For loops in XSLT spencer.clark XSLT 1 August 5th, 2005 09:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.