Click here to Skip to main content
16,005,038 members
Home / Discussions / Database
   

Database

 
GeneralSQL Server 7.0 SP3 and money datatype Pin
Michael Martin21-Oct-01 20:46
professionalMichael Martin21-Oct-01 20:46 
GeneralRe: SQL Server 7.0 SP3 and money datatype Pin
Wanderley M22-Oct-01 3:32
Wanderley M22-Oct-01 3:32 
GeneralRe: SQL Server 7.0 SP3 and money datatype Pin
Michael Martin22-Oct-01 15:32
professionalMichael Martin22-Oct-01 15:32 
GeneralMSDE 2000 Question Pin
John M. Drescher21-Oct-01 8:57
John M. Drescher21-Oct-01 8:57 
GeneralRe: MSDE 2000 Question Pin
John M. Drescher22-Oct-01 5:48
John M. Drescher22-Oct-01 5:48 
GeneralADO DataGrid, MS Access & Server-side cursors Pin
Jim Stim18-Oct-01 22:53
Jim Stim18-Oct-01 22:53 
GeneralRe: ADO DataGrid, MS Access & Server-side cursors Pin
Rashid Thadha21-Oct-01 22:40
Rashid Thadha21-Oct-01 22:40 
QuestionHow to age out subscribers accounts? Pin
Jason Jystad18-Oct-01 9:37
Jason Jystad18-Oct-01 9:37 
I have a web classifieds system that I wrote for a client and I am having some trouble with the aging out of accounts. THis system is built with ASP and interfaces with MSSQL Server 7.0.

What happens is this, a person subscribes for a period of 90 days. They pay their fee and get the run of the system for 90 days. When the 90 days are up they are no longer allowed access. They can still log in, but they are only given access to the pay area so they can re-up their subscription. If they do not re-up then after a while their account goes away entirely.

So I have three states of user:
Non-Subscriber
Subscriber
Expired Subscriber

Non-subscribers become subscribers by entering their user info and paying, that is simple enough and it works fine.

Subscribers last for 90 days and then they become Expired Subscribers. (They get flagged in the database as expired)

Expired Subscribers last for another 30 days and then they go away. (They are deleted from the database)

So my question:
What is the most efficient way to test for the age of the accounts? (I am comfortable with databases, but I do not claim to be an expert so I am curious about what you guys think SQL wise)

Also, how would you guys get the system to run the check routine regularly? Say once a day. This is an ASP based system and it is hosted on a virtual hosting provider so I cannot just set up a scheduled job to run on the server like I normally would. I am going to have to find a tricky way to do it.

TIA!

Jason Jystad
Cito Technologies
www.citotech.net

>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
AnswerRe: How to age out subscribers accounts? Pin
Wanderley M19-Oct-01 8:42
Wanderley M19-Oct-01 8:42 
GeneralRe: How to age out subscribers accounts? Pin
Jason Jystad22-Oct-01 7:15
Jason Jystad22-Oct-01 7:15 
GeneralRe: How to age out subscribers accounts? Pin
Wanderley M22-Oct-01 7:49
Wanderley M22-Oct-01 7:49 
GeneralRe: How to age out subscribers accounts? Pin
Jason Jystad23-Oct-01 7:40
Jason Jystad23-Oct-01 7:40 
GeneralFinding duplicate records Pin
James Spibey17-Oct-01 22:39
James Spibey17-Oct-01 22:39 
GeneralRe: Finding duplicate records Pin
Wanderley M17-Oct-01 22:57
Wanderley M17-Oct-01 22:57 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 4:10
James Spibey18-Oct-01 4:10 
GeneralRe: Finding duplicate records Pin
Wanderley M18-Oct-01 9:07
Wanderley M18-Oct-01 9:07 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 10:43
James Spibey18-Oct-01 10:43 
GeneralRe: Finding duplicate records Pin
Wanderley M18-Oct-01 11:53
Wanderley M18-Oct-01 11:53 
GeneralRe: Finding duplicate records Pin
James Spibey18-Oct-01 22:22
James Spibey18-Oct-01 22:22 
GeneralQuery to retrive table structure from sybase databae Pin
Renu17-Oct-01 21:29
Renu17-Oct-01 21:29 
GeneralCreating dBase files (tables) with ADO Pin
17-Oct-01 2:53
suss17-Oct-01 2:53 
GeneralRe: Creating dBase files (tables) with ADO Pin
Rashid Thadha20-Oct-01 12:39
Rashid Thadha20-Oct-01 12:39 
GeneralRe: Creating dBase files (tables) with ADO Pin
Mike Eriksson5-Nov-01 2:23
Mike Eriksson5-Nov-01 2:23 
GeneralRe: Creating dBase files (tables) with ADO Pin
DonBush7-Nov-03 3:13
DonBush7-Nov-03 3:13 
GeneralOrdering of rows Pin
16-Oct-01 18:14
suss16-Oct-01 18:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.