Execute the Query with new connection to DB

  • Thread starter Thread starter Priya Bange
  • Start date Start date
P

Priya Bange

Guest
Hi Experts,

I have data table like below inside SQL Server. I need to run them on other SQL_Instance independently for the listed execute_count with a wait for delay of 5 sec per execution with in its own session. Let say all 3 query will run in its dedicated/shared connection whatever helps to achieve it.

Query 1 -- > Execute 25 times --> wait for delay 5 second after every execution

Query 2 -- > Execute 15 times --> wait for delay 5 second after every execution

Query 3 -- > Execute 20 times --> wait for delay 5 second after every execution

SQL_Query Execute_Count SQL_Instance
Insert into table1
25
LocalHost
Insert into table2
15
LocalHost
Insert into table 3
20
LocalHost


The count of SQL_Query request can increase/decrease but it need to run independently not executing in sequence and wait for each query to meet respective execute_count. Please help , as how to achieve this requirement.


Thanks

Priya

Continue reading...
 

Similar threads

Back
Top