Re: Defragmentation of database file
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 06/18/04
- Next message: Hari: "Re: 1105 - log file getting full - SQL Server 6.5"
- Previous message: Paul S Randal [MS]: "Re: Clean checkdb & checkcatalog - why is "Attempt to repair any minor problems" kicking in ?"
- In reply to: SY: "Re: Defragmentation of database file"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 09:33:25 +0530
Hi,
Check the fragmentation for those tables using the below command
dbcc showcontig('table_name')
If the scan desity is too bad then execute
DBCC DBREINDEX('table_name')
for those table with high fragmentation.
Note:
It is not required to export and import data for tables.
-- Thanks Hari MCDBA "SY" <SY@discussions.microsoft.com> wrote in message news:B95EB230-210D-4B40-96B6-5B7C05CACA7C@microsoft.com... > We are using database having a current size of over 300GB to store attachment files in an image column of a table. is the approach of exporting and importing data records from the table a good way to defragment the table? if so, is it possible to export the data records as a flat file to a tape drive. > > thanks. > > > "Tibor Karaszi" wrote: > > > http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx > > > > -- > > Tibor Karaszi, SQL Server MVP > > http://www.karaszi.com/sqlserver/default.asp > > http://www.solidqualitylearning.com/ > > > > > > "SY" <SY@discussions.microsoft.com> wrote in message > > news:19838AE1-9327-49D1-BCE1-135AABE88F53@microsoft.com... > > > Can I do the defragmentation of database file in SQL Server 2000, not for indexes? > > > > > > Is the only way to export data from the database and then import back into the database? If so, > > how to do it? > > > > > > thanks. > > > > > >
- Next message: Hari: "Re: 1105 - log file getting full - SQL Server 6.5"
- Previous message: Paul S Randal [MS]: "Re: Clean checkdb & checkcatalog - why is "Attempt to repair any minor problems" kicking in ?"
- In reply to: SY: "Re: Defragmentation of database file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|