473,511 Members | 11,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set time to execute the commond

4 New Member
In asp page after inserting the records am trying to execute the proceudre below.

I need to set excute time for that procedure to run after specified seconds/minutes once the insert statement executed.

Please help me out, its really very urgent.


Expand|Select|Wrap|Line Numbers
  1. sql_insert = "insert into owf_mgr.request_forms (request_no, request_type, request_date, ustatus, emp_id, user_name,branch,department,job_title,email_id,joining_date,mobile,gender,work_type,manager_email,hardware,email,internet) values ('" & r_new_req_id & "' ,'" & emp_request_type & "',sysdate,'" & _
  2. empstatus & "', '" & empid & "','" & empname & "','" & branch & "','" & divisions & "','" & jobtitle & "','" & emailid & "','" & joiningdate & "','" & mobile & "','" & gender & "','" & worktype & "','" & mgremail & "','" & hardware & "','" & email & "','" & internet & "')"
  3.  
  4. 'response.write sql_insert
  5. 'response.end
  6. 'dim r_new_req_id
  7.  
  8. Set con = Server.CreateObject("ADODB.connection")
  9. con.Open data_source
  10.  
  11. Set Cmd = Server.CreateObject("ADODB.Command")
  12. Set objRs = Server.CreateObject("ADODB.Recordset") 
  13. set Cmd.ActiveConnection = con
  14. Cmd.CommandType = 4
  15. Cmd.CommandText = "MCMSREQ.start_mcms_wf('" & r_new_req_id & "')"
  16. Set objRs = Cmd.Execute
Aug 1 '12 #1
3 1925
Rabbit
12,516 Recognized Expert Moderator MVP
Please use code tags when posting code.

Just put your program into a loop until said time arrives.
Aug 1 '12 #2
syedraoof
4 New Member
Thanks for the response, as am a newbie to asp will be really thankful if you could please show me the sample script.
Aug 1 '12 #3
Rabbit
12,516 Recognized Expert Moderator MVP
A loop is a basic concept that all programmers should know. If you don't know how to implement a loop, you should take a class or read a tutorial before tackling a project like this.
Aug 1 '12 #4

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

Similar topics

1
1897
by: TheDustbustr | last post by:
<code> from __future__ import generators from time import time threads= def sleep(n): print "In Sleep" t=time() while (t+n>time()): yield None
5
3633
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
4
1609
by: John A Fotheringham | last post by:
I've probably not given the best title to this topic, but that reflects my relative "newbie" status. I have a table that goes essentially TS DATETIME jobnumber VARCHAR jobentry VARCHAR ...
9
9338
by: PyPK | last post by:
Hi if I have a function called tmp=0 def execute(): tmp = tmp+1 return tmp also I have def func1(): execute() ....
2
7603
by: Norman Fritag | last post by:
Hi there The below code executes some queries. As newbie I was wondering weather you are better of using connection execute or command execute to execute queries? I am asking as...
7
4067
by: Brett Edman | last post by:
I created a UTC clock using this: UTCTime = MyTime.ToUniversalTime() Now that we've turned the clocks ahead 1 hour for daylight savings time, the clock is reporting the wrong UTC time. It is...
1
6052
by: Akinyemi | last post by:
I created a Database which I named "Address". I went through the Control Panel and created a DSN to enable me connect to the Database through ODBC. I then created a Form with the same fields as...
10
17671
by: lalnamar | last post by:
I want to execute a unix time command using perl, and capture the output (specifically, the time it takes the command to execute). i tried using the system command: system("time command ");...
3
3864
by: DontB3 | last post by:
Hi, I'm new in this forum, and i hope someone can help. I'm creating an automatic application that transfer a database from Access -> DBF -> Oracle. When My App try to execute Insert SQL...
1
2318
by: Rodney Roe | last post by:
I'm using excel 2007 vba. I'm trying to use a commond dialog control in my user form, but it says that I don't have a license for it. Yet I can select it from the additional controls list. I...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.