Viewing 4 posts - 1 through 4 (of 4 total)
I use
BACKUP LOG dbname WITH TRUNCATE_ONLY
DBCC SHRINKFILE ('dbname_log', 1)
May 26, 2004 at 5:27 am
#507820
Good,
I have one table like this:
CREATE TABLE [CUSTOMER] (
[COD] [bigint] NOT NULL,
[NAME] [VARCHAR(50)] NOT NULL,
CONSTRAINT [PK_COD] PRIMARY KEY CLUSTERED ([COD])
)
My table have 55.000 rows and my query is like this:
May 18, 2004 at 8:03 am
#506791
When i have to clear a log i use:
BACKUP LOG DBNAME WITH TRUNCATE_ONLY
DBCC SHRINKFILE ('LOGNAME', 1)
May 11, 2004 at 5:19 am
#505944
To do this you can use a 'Copy Databases Wizard' on Enterprise Manager!
January 22, 2004 at 5:59 am
#491098