Solved

sql job timeout

Posted on 2014-01-06
5
948 Views
Last Modified: 2014-01-18
We had have a job that executes a stored proc that has been working fine
(the stored proc executes a query that involves a table on a linked server)

The job started failing saying there was a schema change

I was out of the office and a colleague said he redid the linked server connection (not sure why) which got rid of that error but now there is a time out error


What is strange is that if the stored proc executed by job  is manually executed it runs fine but when scheduled in the job it times out.  Not sure what the difference would be
0
Comment
Question by:johnnyg123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 39759781
My initial thought is that in a query browser there is no timeout, but _PERHAPS_ scheduled jobs make a connection to the server like vb apps do with a timeout in the connection string or something.
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 39759785
Check permissions.  Maybe the user the job runs as does not have the same permissions on the newly created linked server.  i.e., make sure the new setup matches what you had before.
0
 
LVL 25

Expert Comment

by:SStory
ID: 39759787
Oh, here we go:
Shutdown time-out interval (in seconds)

    Specifies the number of seconds that SQL Server Agent waits for jobs to complete before shutting down. If the job is still running after the interval specified, SQL Server Agent forcefully stops the job.

source: http://msdn.microsoft.com/en-us/library/ms189727.aspx
0
 

Accepted Solution

by:
johnnyg123 earned 0 total points
ID: 39777464
After much research I figured it out

Long story short ...the issue occurred because of the change in linked server

I was getting a sql infinite compile message

Solution was to install service pack 2 for sql server 2008 r2 and problem went away
0
 

Author Closing Comment

by:johnnyg123
ID: 39790469
None of the posted solutions was the correct answer
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question