Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Years ago a client of mine had to do this on a fairly regular basis. The server was taken off line to users and the process took about an hour. The process was

    1. remove all indexes
    2. shrink the db
    3. rebuild the indexes



    Maybe they used a different process and didn't use the 'shrink' option but all databases leave empty spaces when records are deleted or modified and in time you then either need a bigger server of you need to compact it is some way. It wasn't my area but that was what I was told.

  2. #17
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    I agree with madpiet, shrinking a SQL database is something you only do as a last resort after running into trouble. If you see that your database is getting too large and growing very fast, check if you're not in full recovery mode. If you're working in full recovery mode without taking log back-ups at regular intervals (in most cases this is every 15 minutes, but depends on your situation) the log file will blow up and eventually take all available space on your drive. If this is the case: schedule regular log back-ups or, if you are happy with 1 back-up/day: set the recovery model to simple and just take a daily full backup.

  3. #18
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Quote Originally Posted by CJ_London View Post
    Years ago a client of mine had to do this on a fairly regular basis. The server was taken off line to users and the process took about an hour. The process was

    1. remove all indexes
    2. shrink the db
    3. rebuild the indexes
    This is very bad, just use normal index maintenance (reorganize/rebuild options), the Ola Hallegren method is widely recognized as one of the best. https://ola.hallengren.com/sql-serve...intenance.html

  4. #19
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    This is very bad
    it was a number of years ago and I’m not a dba. As far as I’m concerned not my problem then and certainly isn’t now

  5. #20
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    We went a little off topic in the best kind of way Thanks for the information everyone! I'm not a 'real' DBA either so this is all great info.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-30-2021, 11:53 AM
  2. Read a sql server database outside of SQL Server
    By RayMilhon in forum SQL Server
    Replies: 6
    Last Post: 01-28-2020, 03:56 PM
  3. Upgrade from SQL Server 2008 to SQL Server 2014
    By RayMilhon in forum SQL Server
    Replies: 4
    Last Post: 07-12-2017, 04:54 PM
  4. Mailing works for PRD server but not for DEV server
    By violeta_barajas in forum Access
    Replies: 0
    Last Post: 11-09-2016, 12:34 PM
  5. Replies: 0
    Last Post: 12-20-2012, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums