SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql agent job
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pnpsql
Posting Yak Master

India
246 Posts

Posted - 04/18/2013 :  11:51:26  Show Profile  Reply with Quote
hi team,

i have procedure "proc_daily_end " that we executed daily at night to generate bills and contains multiple procs in it. due to huge data it takes time and irretaes us. there is procedure that we used to reconfigure indexes this is taking too much of time.

Now my boss command me to run the re-configure index program by sql server job. the "proc_daily_end" proc will execute the job that contains the reconfigure index proc and execute in the way that "proc_daily_end" will not wait for reconfigure index proc.


Kindly suggest me the best practices in doing this and considerations.



challenge everything

Lamprey
Flowing Fount of Yak Knowledge

4614 Posts

Posted - 04/18/2013 :  12:17:03  Show Profile  Reply with Quote
I'm not 100% clear on what you want, but can you jsut run two jobs that execute at the same time?

I admit that doesn't sound like a good idea if you are trying to update statistics and indexes at the same time as an intensive process is running,but I'mnot your boss.. :)
Go to Top of Page

pnpsql
Posting Yak Master

India
246 Posts

Posted - 04/18/2013 :  23:06:20  Show Profile  Reply with Quote
Lamprey, request you to suggest what is best way that both of my task done when i run only first process.

challenge everything
Go to Top of Page

ahmeds08
Aged Yak Warrior

India
675 Posts

Posted - 04/19/2013 :  02:34:47  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
Index reconfgure job may lock the tables during the process..so, a better way would be create a job with 2 steps.
step1:run your proc_daily_end
step2:run index recongigure proc.

Thanks,
Javeed.

mohammad.javeed.ahmed@gmail.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000