Hi,
I hava a JAVA application that updates a SQL2000 (SP3a)database.
The application handles different types of "jobs" which effectively update the DB.
One job in particular appears to block all subsequent jobs. It comprises of a large amount of inserts/updates in a single transaction. This is necessary as it is an "all or nothing" scenario - so we cannot break the transaction into smaller ones. The transaction appears to succeed as it reaches the COMMIT TRAN statement without error.
However the records do not get written to the database.
EM indicates a large number of locks held on the tables accessed by the transaction and these do not get released.
Using the SP sp_blocker_pss80, the blocking SPID has a waittime of 0 and a waittype of 0x0000 - the lastwaittype is WRITELOG and its status is AWAITING COMMAND
I am using MS SQLSERVER JDBC Driver SP2 (considering using jTDS)
I have tried
- increasing Transaction Log size
- Moving Transaction Log to a separate Disk
- Reducing Isolation Mode to Read Uncommitted
- Set AutoCOMMIT to true
- set Close Cursor on COMMIT
- set SelectMethod to Direct - (we use Cursor by default)
None of these have succeeded in fixing the issue.
The job will succeed if it is the first/only job to access the database.
But if another job precedes it - then the blocking occurs.
I have verified that the preceding job only holds shared dataabase locks
before the blocking job is run.
Each job will use its own JDBC connections to access the database for reading
purposes, but all of the writing goes through the blocking SPID.
Any ideas?
Thanks, LiamIf you close the JDBC connection (when the transaction is complete), does that fix the problem?
-PatP|||I wonder if it is not a deadlock situation. By default deadlocks are not logged. Try running the following:
dbcc traceon (-1, 1205)
then run the big update process. This should start logging deadlock information to the SQL Errorlog.
Except for the data not being written at the end, you have described exactly what locking is designed to do. While someone is writing data to the database, no one else can read that data until they are done. You can potentially try to reduce table locks by checking that the update process is using an appropriate index. Try running the Index Tuning Wizard, and see if it makes any suggestions. This should, of course, be done on a test box first.|||Hi,
Thanks for replies.
1) Connections cannot be terminated after batch jobs complete due to nature of the application
2) DBCC TRACEON resulted in a number of the following entries in the SQL Log
Starting deadlock search 5306
Target Resource Owner:
ResType:LockOwner Stype:'OR' Mode: S SPID:57 ECID:0 Ec:(0x484D9510) Value:0x4b0eb320
Node:1 ResType:LockOwner Stype:'OR' Mode: S SPID:57 ECID:0 Ec:(0x484D9510) Value:0x4b0eb320
Node:2 ResType:LockOwner Stype:'OR' Mode: S SPID:53 ECID:0 Ec:(0x42ECD510) Value:0x4b103b00
End deadlock search 5306 ... a deadlock was not found.
3) Index tuner - havent tackled yet|||I thought 1205 gave you information about deadlocks in progress. I was apparently wrong. Try this:
dbcc traceoff (-1, 1205)
go
dbcc traceon (-1, 1204)
Showing posts with label jobs. Show all posts
Showing posts with label jobs. Show all posts
Sunday, March 11, 2012
Thursday, March 8, 2012
Blocking by sp_sqlagent_log_jobhistory
Hi ,
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
Arshad
arshadmd-nospam@.gmail.com
Arshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
Arshad
arshadmd-nospam@.gmail.com
Arshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
Blocking by sp_sqlagent_log_jobhistory
Hi ,
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
--
Arshad
arshadmd-nospam@.gmail.comArshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
--
Arshad
arshadmd-nospam@.gmail.comArshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
Blocking by sp_sqlagent_log_jobhistory
Hi ,
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
--
Arshad
arshadmd-nospam@.gmail.comArshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
morning hours when we have lot of jobs to be executed. When I do DBCC
INPUTBUFFER for the process id's blocking/blocked I am getting
EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
Nothing changed with the job schedules and we never had the problem but
since couple of week things are running slower and processes are being
blocked .
Since all the blocked/blocking process id's are by
sp_sqlagent_log_jobhistory I think there is something going wrong with my
agent when it is trying to log the success/faliure of the job completion.
Any solutions/suggestions will be helpful.
Thanks,
--
Arshad
arshadmd-nospam@.gmail.comArshad wrote:
> Hi ,
> We have chain of blocking caused by sp_sqlagent_log_jobhistory in the
> morning hours when we have lot of jobs to be executed. When I do DBCC
> INPUTBUFFER for the process id's blocking/blocked I am getting
> EXECUTE msdb.dbo.sp_sqlagent_log_jobhistory @.job_id = some hex id .
> Nothing changed with the job schedules and we never had the problem but
> since couple of week things are running slower and processes are being
> blocked .
> Since all the blocked/blocking process id's are by
> sp_sqlagent_log_jobhistory I think there is something going wrong with my
> agent when it is trying to log the success/faliure of the job completion.
> Any solutions/suggestions will be helpful.
first, defrag the msdb database, especially the sysjobhistory table.
see if that fixes it.
next, go to sqlagent properties and see how many job histories it's
configured to keep. maybe you have it set too high, i think 1000 is the
default, i often run mine at 100,000 with 10,000 per job and have no
problems, but i rarely have 2 or 3 jobs running at the exact same time.
you could also try clearing the log on that same tab where you tell it
how many histories to keep.
maybe you have your msdb database on a bad/slow disk?
Sunday, February 12, 2012
bizarre job behavior
Look in the 'sysjobs' table of the msdb database. See if
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...[vbcol=seagreen]
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> Server to a new
> scripting. Since then,
> problems. The one thing
> DTS Packages that
> has full control over
> account, I can
> Packages manually.
> jobs.
> read/ write to the
> Job... nothing
> time are not
> forever. I found
> other issues.
> greatly appreciated.
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...[vbcol=seagreen]
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> Server to a new
> scripting. Since then,
> problems. The one thing
> DTS Packages that
> has full control over
> account, I can
> Packages manually.
> jobs.
> read/ write to the
> Job... nothing
> time are not
> forever. I found
> other issues.
> greatly appreciated.
bizarre job behavior
Over the weekend I transferred our non Clustered SQL Server to a new
Clustered environment. I moved the jobs by method of scripting. Since then,
serveral of my jobs have been failing with different problems. The one thing
all of these jobs have in common is that they all call DTS Packages that
read/ write to files. (.txt, .xls, etc.)
For the record, the account that the SQL Agent runs in has full control over
these files. If I log directly onto the console with this account, I can
create/ edit/ drop anything I want.
Another fun fact is that I can run all of these DTS Packages manually.
Now here is all of the problems I'm having with these jobs.
1. Access denied for the account that SQL runs in to read/ write to the
file.
2. I start the job manually, it never runs. RClick/ Start Job... nothing
ever happens.
3. Although the job has a schedule, it shows (Date and time are not
available.) under the Next Run Date column.
4. Jobs have a staus of "Performing completion actions" forever. I found
this one in KB, but think its really a by product of the other issues.
Something is obviously very wrong here. Any ideas are greatly appreciated.
--
SQL2K SP3
TIA, ChrisRLook in the 'sysjobs' table of the msdb database. See if
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>|||No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> >--Original Message--
> >Over the weekend I transferred our non Clustered SQL
> Server to a new
> >Clustered environment. I moved the jobs by method of
> scripting. Since then,
> >serveral of my jobs have been failing with different
> problems. The one thing
> >all of these jobs have in common is that they all call
> DTS Packages that
> >read/ write to files. (.txt, .xls, etc.)
> >
> >For the record, the account that the SQL Agent runs in
> has full control over
> >these files. If I log directly onto the console with this
> account, I can
> >create/ edit/ drop anything I want.
> >
> >Another fun fact is that I can run all of these DTS
> Packages manually.
> >
> >Now here is all of the problems I'm having with these
> jobs.
> >
> >1. Access denied for the account that SQL runs in to
> read/ write to the
> >file.
> >2. I start the job manually, it never runs. RClick/ Start
> Job... nothing
> >ever happens.
> >3. Although the job has a schedule, it shows (Date and
> time are not
> >available.) under the Next Run Date column.
> >4. Jobs have a staus of "Performing completion actions"
> forever. I found
> >this one in KB, but think its really a by product of the
> other issues.
> >
> >Something is obviously very wrong here. Any ideas are
> greatly appreciated.
> >
> >
> >
> >--
> >SQL2K SP3
> >
> >TIA, ChrisR
> >
> >
> >.
> >
Clustered environment. I moved the jobs by method of scripting. Since then,
serveral of my jobs have been failing with different problems. The one thing
all of these jobs have in common is that they all call DTS Packages that
read/ write to files. (.txt, .xls, etc.)
For the record, the account that the SQL Agent runs in has full control over
these files. If I log directly onto the console with this account, I can
create/ edit/ drop anything I want.
Another fun fact is that I can run all of these DTS Packages manually.
Now here is all of the problems I'm having with these jobs.
1. Access denied for the account that SQL runs in to read/ write to the
file.
2. I start the job manually, it never runs. RClick/ Start Job... nothing
ever happens.
3. Although the job has a schedule, it shows (Date and time are not
available.) under the Next Run Date column.
4. Jobs have a staus of "Performing completion actions" forever. I found
this one in KB, but think its really a by product of the other issues.
Something is obviously very wrong here. Any ideas are greatly appreciated.
--
SQL2K SP3
TIA, ChrisRLook in the 'sysjobs' table of the msdb database. See if
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>|||No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> >--Original Message--
> >Over the weekend I transferred our non Clustered SQL
> Server to a new
> >Clustered environment. I moved the jobs by method of
> scripting. Since then,
> >serveral of my jobs have been failing with different
> problems. The one thing
> >all of these jobs have in common is that they all call
> DTS Packages that
> >read/ write to files. (.txt, .xls, etc.)
> >
> >For the record, the account that the SQL Agent runs in
> has full control over
> >these files. If I log directly onto the console with this
> account, I can
> >create/ edit/ drop anything I want.
> >
> >Another fun fact is that I can run all of these DTS
> Packages manually.
> >
> >Now here is all of the problems I'm having with these
> jobs.
> >
> >1. Access denied for the account that SQL runs in to
> read/ write to the
> >file.
> >2. I start the job manually, it never runs. RClick/ Start
> Job... nothing
> >ever happens.
> >3. Although the job has a schedule, it shows (Date and
> time are not
> >available.) under the Next Run Date column.
> >4. Jobs have a staus of "Performing completion actions"
> forever. I found
> >this one in KB, but think its really a by product of the
> other issues.
> >
> >Something is obviously very wrong here. Any ideas are
> greatly appreciated.
> >
> >
> >
> >--
> >SQL2K SP3
> >
> >TIA, ChrisR
> >
> >
> >.
> >
bizarre job behavior
Look in the 'sysjobs' table of the msdb database. See if
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>
No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...[vbcol=seagreen]
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> Server to a new
> scripting. Since then,
> problems. The one thing
> DTS Packages that
> has full control over
> account, I can
> Packages manually.
> jobs.
> read/ write to the
> Job... nothing
> time are not
> forever. I found
> other issues.
> greatly appreciated.
the there is an entry for the jobs. If there is, check
the 'originating_server' column. It may still have the old
server name in it......
>--Original Message--
>Over the weekend I transferred our non Clustered SQL
Server to a new
>Clustered environment. I moved the jobs by method of
scripting. Since then,
>serveral of my jobs have been failing with different
problems. The one thing
>all of these jobs have in common is that they all call
DTS Packages that
>read/ write to files. (.txt, .xls, etc.)
>For the record, the account that the SQL Agent runs in
has full control over
>these files. If I log directly onto the console with this
account, I can
>create/ edit/ drop anything I want.
>Another fun fact is that I can run all of these DTS
Packages manually.
>Now here is all of the problems I'm having with these
jobs.
>1. Access denied for the account that SQL runs in to
read/ write to the
>file.
>2. I start the job manually, it never runs. RClick/ Start
Job... nothing
>ever happens.
>3. Although the job has a schedule, it shows (Date and
time are not
>available.) under the Next Run Date column.
>4. Jobs have a staus of "Performing completion actions"
forever. I found
>this one in KB, but think its really a by product of the
other issues.
>Something is obviously very wrong here. Any ideas are
greatly appreciated.
>
>--
>SQL2K SP3
>TIA, ChrisR
>
>.
>
No, it has the correct server name since I scripted/ created the jobs
instead of moving them.
"Coskun" <anonymous@.discussions.microsoft.com> wrote in message
news:157b01c51ab8$685e91e0$a601280a@.phx.gbl...[vbcol=seagreen]
> Look in the 'sysjobs' table of the msdb database. See if
> the there is an entry for the jobs. If there is, check
> the 'originating_server' column. It may still have the old
> server name in it......
>
> Server to a new
> scripting. Since then,
> problems. The one thing
> DTS Packages that
> has full control over
> account, I can
> Packages manually.
> jobs.
> read/ write to the
> Job... nothing
> time are not
> forever. I found
> other issues.
> greatly appreciated.
Subscribe to:
Posts (Atom)