Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL help
#2
You haven't enabled the autoshrink setting have you?

1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
2. Expand the Databases, and then right-click the database that you want to shrink.
3. Point to Tasks > Shrink > Database.
4. Optionally, select the Reorganize files before releasing unused space check box. If selected, a value must be specified for Maximum free space in files after shrinking.

Selecting this option is the same as specifying a target_percent value when executing DBCC SHRINKDATABASE. Clearing this option is the same as executing DBCC SHRINKDATABASE using the TRUNCATEONLY option. TRUNCATEONLY reduces the file size without moving any data. By default, the option is cleared.
5. Enter the maximum percentage of free space to be left in the database files after the database has been shrunk (use numbers 0-99 since they are valid entries). This option is only available when Reorganize files before releasing unused space is selected, and click Ok.

The transaction log might be filling up too quickly, or staying far too large, which is why your database is large.
Reply


Messages In This Thread
SQL help - by DAMINK™ - 12-04-2010, 12:42 AM
RE: SQL help - by AceInfinity - 12-04-2010, 01:20 AM
RE: SQL help - by DAMINK™ - 12-04-2010, 01:34 AM
RE: SQL help - by AceInfinity - 12-04-2010, 01:43 AM
RE: SQL help - by DAMINK™ - 12-04-2010, 01:45 AM
RE: SQL help - by MarkW7 - 12-05-2010, 06:33 AM
RE: SQL help - by AceInfinity - 12-05-2010, 07:46 PM
RE: SQL help - by DAMINK™ - 12-07-2010, 01:05 PM
RE: SQL help - by Solidus - 12-07-2010, 05:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SQL Query help (vbulletin) DAMINK™ 2 1,236 02-25-2012, 07:27 PM
Last Post: DAMINK™
  Securing your PHP script Part 1 [SQL Injection] 0xE9 9 2,957 06-11-2011, 03:50 PM
Last Post: 0xE9

Forum Jump:


Users browsing this thread: 1 Guest(s)