10-25-04 07:46 AM
Hi Hasan,
How old is your database. I would suggest you to write a SQL script which in
a loop passes a date parameter to the pruning script. Hence if your database
is like 60 day old. write a script which loops with a counter from 60 to 10
and pass this number to determine how old dat you want to delete. Something
like this:
DECLARE @Today datetime
DECLARE @Counter int
SET @Counter=60
WHILE @Counter>10
BEGIN
SET @Today = GETDATE() - @Counter
EXEC dtasp_PruneTrackingDatabase @Today
END
This will delete the HAT data for each day since last 60 days.
Sukesh.
"hasan" wrote:
[vbcol=seagreen]
> Vladmir, how do I turn of tracking using HAT? If I do turn it of, will I b
e
> able to see suspended messages?
>
> Sukesh, I did something similar to what you said, only I did it at one mon
th
> intervals by SET @Today = 2004-10-21
> but my BizTalkDTADb.mdf is still large. It took ages to execute the whole
> procedure to the current date but my database has not reduced in size -
> infact its even grown. Its now at 11GB and I have just 2GB of space left!!
!
>
> what now??
>
> thanks,
> --hasan
>
> "Vladimir Pogrebinsky" wrote:
>
[ Post a follow-up to this message ]
|