Im starting a project of my own, its a simple forum. I know therere tons out there, but I just wanna polish my skills a bit. Anyways, in my forum, when user registers they will have to give a valid email address. To verify this email address, Ill send them an email, and if they click on the link on that email, itll activate their accout. If the user does NOT activate his account in 48hrs. His account will be deleted from the database.
Here is the question: Since I Saved the info the user provided to a dbase in SQL Server 2k before I sent the email for verification, If the user does not activate the account in 48hrs, I need some way to remove that ROW in the database table. How can I do this automaticlly? There is actually 2 tables, one table is the MEMBERS table and it is in relation with another table call Verification (this is where I stores the verification string and the Time(smalldatetime) that account is created). the common key is the username.
If the user activated his account within 48hrs, the entry in the Verification table will be removed by the verification page.
is there a function or a way to write a script in SQL Server 2k to automate this task?
this is my first time working with SQL Server, any good book recommandations (ones with lots of examples with TSQL and some basic functions I can use with SQL Server)?
TIA
aak97
Here is the question: Since I Saved the info the user provided to a dbase in SQL Server 2k before I sent the email for verification, If the user does not activate the account in 48hrs, I need some way to remove that ROW in the database table. How can I do this automaticlly? There is actually 2 tables, one table is the MEMBERS table and it is in relation with another table call Verification (this is where I stores the verification string and the Time(smalldatetime) that account is created). the common key is the username.
If the user activated his account within 48hrs, the entry in the Verification table will be removed by the verification page.
is there a function or a way to write a script in SQL Server 2k to automate this task?
this is my first time working with SQL Server, any good book recommandations (ones with lots of examples with TSQL and some basic functions I can use with SQL Server)?
TIA
aak97