By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,939 Members | 1,670 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,939 IT Pros & Developers. It's quick & easy.

pls help me its urgent.....

P: 1
Hello All,
I m trying to write stored procedure that will add or delete records in a table. so i have to maitain date and time whenever record is added or deleted.
so pls tell me the right procedure for this.
Thanking You
Jan 25 '08 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
Hello All,
I m trying to write stored procedure that will add or delete records in a table. so i have to maitain date and time whenever record is added or deleted.
so pls tell me the right procedure for this.
Thanking You
insert 2 fields...INSERT_DATE and DELETED_DATE...by default INSERT_DATE is system date...every time a delete happens, populate your DELETED_DATE....to retrieve all active records include a WHERE DELETED_DATE is NULL condition...

-- ck
Jan 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.