|
Posted by HankSmart on May 19, 2006, 2:05 pm
Please log in for more thread options Many thanks.
"dizz" wrote:
> Here is the script:
>
> USE [db_name_here]
> DBCC UPDATEUSAGE ( 0 ) WITH COUNT_ROWS
> EXEC dbo.sp_MSforeachtable 'EXEC sp_spaceused ''?'''
>
> Substitue the name of your HQ database in the brackets on the first line. I
> ran this in SQL Query Analyzer...
>
>
> "HankSmart" wrote:
>
> > Well I do not have an answer for you, I have a similiar problem. Could you
> > provide the scripts you ran to get the size of a table? Is it a simple SQL
> > statement or is it something more advanced?
> >
> > "dizz" wrote:
> >
> > > I am Running RMS HQ with 38 stores and growing. Each store has two POS lanes
> > > and we don't do a large volume of transactions in any given day. The size of
> > > my DB is concerning me, so I ran a query that returns the size of each table,
> > > and what I found is that 95% of the size of my HQ DB is contained in
> > > "HQEventLog" and "TimeStandLog". What I want to know is 1. Would there be
> > > any long term problem in periodically purging anything in either/both of
> > > these tables that is older than 30 days? 2. What would be the best way to do
> > > this (script to use and any suggestions for automation would be great). Just
> > > to give you an idea, the current size of the HQEventLog table reports at
> > > 2.2GB and the TimeStampLog at 903MB.
> > >
> > > Thanks,
> > > Brandon
|