August 2, 2012 at 11:57 am
Hi every one ,
we have a job for DBReindex on the databse everyday.
I am using this store proc
ALTER procedure [dbo].[usp_SysStarsReIndexAll] as
declare @TableName varchar(75)
declare c_tblName cursor for
select name
from sysobjects
where type = 'U'
open c_tblName
fetch c_tblName into @TableName
while @@FETCH_STATUS = 0
begin
Dbcc DBReindex (@TableName,'',0/*, SORTED_DATA_REORG -- SQL 2005 change no longer an option*/)
fetch c_tblName into @TableName
end
close c_tblName
deallocate c_tblName
I got this error
Executed as user: PPSCENTRAL\mrcluster. ...ntact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed error messages, contact your system administrator. [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
August 2, 2012 at 12:09 pm
What happens when you execute the proc outside of a sql job?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 2, 2012 at 12:16 pm
SQLRNNR (8/2/2012)
What happens when you execute the proc outside of a sql job?
It runs successfully outside the sql job
August 2, 2012 at 12:19 pm
was the password recently changed for the user PPSCENTRAL\mrcluster , and the job not updated withthe updated password, maybe?
Lowell
August 2, 2012 at 12:19 pm
If it runs successfully outside of the job, then we will need more info from the error output of the job. Output all job step history to a text file and give us the full error from that file.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 2, 2012 at 12:21 pm
Lowell (8/2/2012)
was the password recently changed for the user PPSCENTRAL\mrcluster , and the job not updated withthe updated password, maybe?
I think the account is working since the dbcc command is working for the most part. One of the indexes is failing on the reindex though.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 2, 2012 at 12:21 pm
SQLRNNR (8/2/2012)
If it runs successfully outside of the job, then we will need more info from the error output of the job. Output all job step history to a text file and give us the full error from that file.
sorry , but can you please tell me where i find the log error files in system.
August 2, 2012 at 12:23 pm
yogi123 (8/2/2012)
SQLRNNR (8/2/2012)
If it runs successfully outside of the job, then we will need more info from the error output of the job. Output all job step history to a text file and give us the full error from that file.sorry , but can you please tell me where i find the log error files in system.
You need to set that in the advanced options. You configure the location.
Here is an article on how to get there. You should see the location to set the values once you get to the right place.
http://msdn.microsoft.com/en-us/library/ms191142.aspx
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 2, 2012 at 12:31 pm
a post here by Gail Shaw(Gilamonster) says it might be the log has filled up on the database:
http://www.sqlteam.com/forums/topic.asp?topic_id=132921
Lowell
August 2, 2012 at 12:33 pm
yogi123 (8/2/2012)
SQLRNNR (8/2/2012)
If it runs successfully outside of the job, then we will need more info from the error output of the job. Output all job step history to a text file and give us the full error from that file.sorry , but can you please tell me where i find the log error files in system.
Thanks, I set up for error log file. and this schedule job running tonight so i will provide the error log file tomorrow . thanks again.
August 2, 2012 at 12:35 pm
Lowell (8/2/2012)
a post here by Gail Shaw(Gilamonster) says it might be the log has filled up on the database:
Log backup successfully executed every 15 min everyday.
so i guess log backup might not be issue.
August 2, 2012 at 12:40 pm
the reindexing can be a huge operation; 1.5x the size of the indexes being rebuilt, as i seem to remember it. so the reindexing of a bunch of indexes that take say, a 500meg table needs 750meg.
it would be very easy for the reindexing operaiton to bloat the database.
Lowell
August 2, 2012 at 12:49 pm
Lowell (8/2/2012)
the reindexing can be a huge operation; 1.5x the size of the indexes being rebuilt, as i seem to remember it. so the reindexing of a bunch of indexes that take say, a 500meg table needs 750meg.it would be very easy for the reindexing operaiton to bloat the database.
ok, so it mean I am doing re-indexing for my DATABASE, which is 90GB so i need 140GB to reindex?
August 2, 2012 at 12:57 pm
yogi123 (8/2/2012)
Lowell (8/2/2012)
the reindexing can be a huge operation; 1.5x the size of the indexes being rebuilt, as i seem to remember it. so the reindexing of a bunch of indexes that take say, a 500meg table needs 750meg.it would be very easy for the reindexing operaiton to bloat the database.
ok, so it mean I am doing re-indexing for my DATABASE, which is 90GB so i need 140GB to reindex?
books online has some better examples than the way i explained it, but if your db was 90 gig, you might need as much as 90+90+45 = 225 total disk space to support it, or 1.5x the db in additional space.
http://msdn.microsoft.com/en-us/library/ms191183.aspx
Lowell
August 3, 2012 at 10:25 am
yogi123 (8/2/2012)
SQLRNNR (8/2/2012)
If it runs successfully outside of the job, then we will need more info from the error output of the job. Output all job step history to a text file and give us the full error from that file.sorry , but can you please tell me where i find the log error files in system.
Hello
I attach error file so please find an attachment and give me some possible solution
Thanks
Viewing 15 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic. Login to reply