troubleshooting Question

Can running a stored procedure too frequently cause conflict and unexpected results?

Avatar of raburk
raburkFlag for United States of America asked on
Microsoft SQL ServerSQL* stored prcedure* MICROSOFT SQL SERVER 2012 EXPRESS
4 Comments1 Solution66 ViewsLast Modified:
I have a SQL Server Agent job that runs every two minutes.  That job invokes a stored procedure which looks to see if there are any batches ready to be uploaded (STATUS = 'COMPLETE').  If there is, it decides which environment to use, and runs a function to build dynamic SQL, which it then executes at the end.

I suspect that running the procedures are conflicting with one another and causing unexpected results.  Especially if one of the runs takes longer than 2 minutes.  Could this be the case?
ASKER CERTIFIED SOLUTION
Jose Torres
Certified Database Administrator

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros