shrinking journals

Can someone assist me in shrinking the jounals tables?

Dexter

Reply to
dexter
Loading thread data ...

Run this SQL statement in Administrator

DELETE Journal WHERE time < getdate()-365

The above statement will delete all journals over 12 months old (alter the number of days as required)

and then run this SQL statement

dbcc shrinkdatabase (DatabaseName)

Reply to
Michael

Michael

Thanks for your help. This is the statement i tried to run- dbcc shrinkdatabase (7-11dataHigh). I got an error. what am i doing wrong.

Please assist.

Dexter

"Michael" wrote:

Reply to
dexter

Do not put the database name in parentheses.

Reply to
Jason

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.