2 Qs: DB Shrink and Agent step
From: AY (AY_xu_at_yahoo.com)
Date: 10/07/04
- Next message: DBA72: "Multiple Job steps using same variable or one temp table"
- Previous message: ben brugman: "Re: Text field about 9000 karakters long."
- Next in thread: Tibor Karaszi: "Re: DB Shrink and Agent step"
- Reply: Tibor Karaszi: "Re: DB Shrink and Agent step"
- Reply: Shailendra Singh Chauhan: "RE: 2 Qs: DB Shrink and Agent step"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 07 Oct 2004 00:42:43 -0700
Environment: SQL Server 2000
Q1: shrinking transaction log
db size 800 MB, db_log size 7 GB, db recovery model set to "Full". Steps
to shrinking:
1. backup log file with successfully, command: backup log db to
disk_devie
2. truncate log file, command: backup log db with TRUNCATE_ONLY
Result: db_log size still 7 GB, not shrink. Why?
Q2: SQL Server Agent only runs step 1
I created one job with two steps, step 1: backup db to local file
system, step 2: copy db file to network share using xp_cmdshell. All
step commands run successfully from Query Analyzer. Error log output to
a file.
Result: step 1 runs successfully. step 2 not run, even no error
messengers write to log file.
TIA for any help.
Zuoyin from Shanghai/China
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: DBA72: "Multiple Job steps using same variable or one temp table"
- Previous message: ben brugman: "Re: Text field about 9000 karakters long."
- Next in thread: Tibor Karaszi: "Re: DB Shrink and Agent step"
- Reply: Tibor Karaszi: "Re: DB Shrink and Agent step"
- Reply: Shailendra Singh Chauhan: "RE: 2 Qs: DB Shrink and Agent step"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|