vanisudha2000
Programmer
Hello,
I have written a stored procedure where I have set the status = open, this stored procedure runs on click of the insert button , it inserts the record taking all the fields entered from the detailsview.
in the data base i have currentdate that is the systemdate and datewhich is 2 hours later than the currentdate.
I have to change the status in the database from Open to Close if the current time is greater than the timestamp when 2 hours were added to the sysdate earlier.
But how can I make that check as this insert stored procedure is only executed when the insert button is clicked. I dont know where, how and what to do to make that time check and change the status to Close depending on the time check.
I am calling this stored procedure using
InsertCommand = "Insertproc" InsertCommandtype = "storedprocedure"
in ASP.net2.0
I have written a stored procedure where I have set the status = open, this stored procedure runs on click of the insert button , it inserts the record taking all the fields entered from the detailsview.
in the data base i have currentdate that is the systemdate and datewhich is 2 hours later than the currentdate.
I have to change the status in the database from Open to Close if the current time is greater than the timestamp when 2 hours were added to the sysdate earlier.
But how can I make that check as this insert stored procedure is only executed when the insert button is clicked. I dont know where, how and what to do to make that time check and change the status to Close depending on the time check.
I am calling this stored procedure using
InsertCommand = "Insertproc" InsertCommandtype = "storedprocedure"
in ASP.net2.0