Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maintenance plan shrink DB job fails

Status
Not open for further replies.

maswien

Technical User
Joined
Sep 24, 2003
Messages
1,286
Location
CA

We have some jobs created by maintenence plan, one of the them is shrink the database on daily basis, it used to be work fine, but recently it fails, I don't know the reason.
Where can I get the error of the failure? Thanks
 
You would need to look at the log from the job.

What are you trying to accomplish by shrink the database daily?

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Thanks denny,

since the database increase the size every day, so we want remove unused space to protect the database grow too fast, can you give me some advice on this issue?
 
The database only grows when the file is full. If you grow the file to have 100 Megs free and the file grows at the rate of 10 Megs per day, then the database won't grow for 10 days.

I'd remove the shrink command, and let the database grow as it needs to.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
if you are worried about it growing to fast, change the increments of the increase. be warned that by doing this will create a fragmented file. The only reason you really need to shrink a db file is if things are being delete from it on a large basis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top