Solved

Changing a Database Field on a Timer

Posted on 2011-09-25
2
144 Views
Last Modified: 2012-05-12
Hi, I need to change a field in a sql database on the 1st day of every month, bascially resetting a flag. I have 5 users in my system so after the field has been changed by the first logged in user, I need to check it doesnt get reset again until the 1st of the following month.

Hope this makes sense, any help is appreciated,

Thanks
0
Comment
Question by:SCOTT78
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 75 total points
ID: 36595774
Add a field in the same table or in another table to record the month.

When a user login, check if that if that field contains the current month.

If yes, do nothing.

If no, they this is the first logging in the month. Reset your flag and then update the month to the current one.

In fact, depending on how you use your flag, the field with the month could become your flag.
0
 

Author Closing Comment

by:SCOTT78
ID: 36598969
Simple method, just what I neeed. Many Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VS.net 2010 11 48
VB.Net Tranfer data between to VB.Net apps 8 40
VB.NET 2008 Publish Error 2 34
.NET 2008 VB and C# 6 39
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question