473,659 Members | 2,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stored procedure works, Agent job aborts

One of my clients has a stored procedure on their secondary server that
copies a bunch of data from the production server. (Replication will
break the accounting software, according to its authors. The production
server generates a nightly full backup, so if the secondary can be
scripted to do a nightly restore from that same file, then that would
probably be a Big Win.)

Anyway, if I execute the stored procedure from Query Analyzer, it
finishes (after nearly 24 hours) - tested once recently, and I'm sure
at least a few times at some point in the past. If I run a SQL Server
Agent job that executes the stored procedure, then it gets cut off after
about 15-20 minutes - tested once recently with a manual run, and for
several weeks of scheduled runs before that. (This being a secondary
server, it took a while for the problem to be noticed.) What are the
likely causes of this?

Both servers are running SQL 2K with SP3, and limited to TCP/IP and
named pipes. RPC is allowed, with a 600-second timeout, but that
doesn't seem relevant, since both the successful and unsuccessful
methods go well past that length. The production server is a recent
purchase, and works well for their daily operations; the secondary
server and/or its network connection might be flaky for all I know,
but that doesn't seem relevant either, since success appears to
depend consistently on method of execution.
Oct 5 '06 #1
1 1640
MC
Have you considered log shipping? If servers are Enterprise edition, it is
fairly easy to set up.

MC
"Ed Murphy" <em*******@soca l.rr.comwrote in message
news:wr******** *******@tornado .socal.rr.com.. .
One of my clients has a stored procedure on their secondary server that
copies a bunch of data from the production server. (Replication will
break the accounting software, according to its authors. The production
server generates a nightly full backup, so if the secondary can be
scripted to do a nightly restore from that same file, then that would
probably be a Big Win.)

Anyway, if I execute the stored procedure from Query Analyzer, it
finishes (after nearly 24 hours) - tested once recently, and I'm sure
at least a few times at some point in the past. If I run a SQL Server
Agent job that executes the stored procedure, then it gets cut off after
about 15-20 minutes - tested once recently with a manual run, and for
several weeks of scheduled runs before that. (This being a secondary
server, it took a while for the problem to be noticed.) What are the
likely causes of this?

Both servers are running SQL 2K with SP3, and limited to TCP/IP and
named pipes. RPC is allowed, with a 600-second timeout, but that
doesn't seem relevant, since both the successful and unsuccessful
methods go well past that length. The production server is a recent
purchase, and works well for their daily operations; the secondary
server and/or its network connection might be flaky for all I know,
but that doesn't seem relevant either, since success appears to
depend consistently on method of execution.

Oct 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1842
by: Alexander Korovyev | last post by:
hello, I have a bunch of stored procedures which are run for some background processing. In effect they are launched at random. At any given time point only one of the stored procedures is allowed to execute. If a stored procedure is launched while another one is still running the launched stored procedure must not wait for the running one to finish and return immediately. What are the possible ways to achieve this?
5
3387
by: Rhino | last post by:
I am trying to determine the behaviour of stored procedures in DB2 V8.2.x in Windows/Unix/Linux and how I can control that behaviour. Some documentation in the manuals is confusing the issue somewhat. First, am I right in understanding that the normal behaviour of a stored procedure, fenced or unfenced, is to only go into memory when it is invoked and to be swapped out of memory when it is not needed any more? Second, am I right in...
9
7666
by: vikram.mankar | last post by:
I have a stored procedure thats transferring/processing data from one table to two different tables. The destination tables have a unique value constraint as the source tables at times has duplicate records and this will prevent the duplicates from being reported. When the stored procedure (which includes a cursor) is executed through query analyzer, it runs fine, and reports an error everytime it sees a duplicate value (as expected). It...
2
4079
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges the right to run the stored procedure but not the rights to directly access either the referenced tables or the extended stored procedure. TIA!
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8629
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.