Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2004, 11:39 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default My size of database is too large

Hi All,

I Export data from DB2 and convert it to SQL server.

My data in DB2 about 12MB, but when I import to SQL Server, after I backup data from SQL Server then my data file was over 500MB or 1GB.

Why is it that? Could you help me?

Thank you so much.

Best regard,

Minh Phan Xuan
 
Old October 18th, 2004, 12:14 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Try to truncate your log file. This could be because of the logfile size. Also check the File Growth Properties of both the mdf and the ldf

Regards
Ganesh
 
Old October 18th, 2004, 02:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Do a shrink database / shrink file, that should reduce the DB size and free up the unused space. Check for DBCC in Books online or you can do that from Enterprise manager.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old October 19th, 2004, 04:39 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

Try BACKUP LOG FOR TRUNCATE ONLY. If it doesn't work then

Use DBCC SHRINKDATABASE / DBCC SHRINKFILE. U can see the physical file name through Enterprice manager.

Also create a DB Maintanace plan which should take Transaction Log Backup frequently. Otherwise u will again find ur DB file large after some times.

See books on line for details related to these.


B. Anant





Similar Threads
Thread Thread Starter Forum Replies Last Post
Large Access Database Help NationwideSrBA Access 4 October 31st, 2006 04:12 PM
Access Database and Large Excel Table xpromac MySQL 1 October 24th, 2006 05:38 PM
Quick Webpage access with large data in database madhusrp ASP.NET 1.0 and 1.1 Professional 2 March 14th, 2006 04:11 AM
Query database with large number of records andyj00 ASP.NET 1.0 and 1.1 Professional 6 June 27th, 2005 08:47 PM
Compacting a large database takabyte Classic ASP Databases 1 February 5th, 2004 12:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.